public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.getDefaultInstance()) return this; if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (!other.topics_.isEmpty()) { if (topics_.isEmpty()) { topics_ = other.topics_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTopicsIsMutable(); topics_.addAll(other.topics_); } } return this; }
public static ByteBuf newGetTopicsOfNamespaceResponse(List<String> topics, long requestId) { CommandGetTopicsOfNamespaceResponse.Builder topicsResponseBuilder = CommandGetTopicsOfNamespaceResponse.newBuilder(); topicsResponseBuilder.setRequestId(requestId).addAllTopics(topics); CommandGetTopicsOfNamespaceResponse topicsOfNamespaceResponse = topicsResponseBuilder.build(); ByteBuf res = serializeWithSize(BaseCommand.newBuilder() .setType(Type.GET_TOPICS_OF_NAMESPACE_RESPONSE) .setGetTopicsOfNamespaceResponse(topicsOfNamespaceResponse)); topicsResponseBuilder.recycle(); topicsOfNamespaceResponse.recycle(); return res; }
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.getDefaultInstance()) return this; if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (!other.topics_.isEmpty()) { if (topics_.isEmpty()) { topics_ = other.topics_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTopicsIsMutable(); topics_.addAll(other.topics_); } } return this; }
public static ByteBuf newGetTopicsOfNamespaceResponse(List<String> topics, long requestId) { CommandGetTopicsOfNamespaceResponse.Builder topicsResponseBuilder = CommandGetTopicsOfNamespaceResponse.newBuilder(); topicsResponseBuilder.setRequestId(requestId).addAllTopics(topics); CommandGetTopicsOfNamespaceResponse topicsOfNamespaceResponse = topicsResponseBuilder.build(); ByteBuf res = serializeWithSize(BaseCommand.newBuilder() .setType(Type.GET_TOPICS_OF_NAMESPACE_RESPONSE) .setGetTopicsOfNamespaceResponse(topicsOfNamespaceResponse)); topicsResponseBuilder.recycle(); topicsOfNamespaceResponse.recycle(); return res; }