public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance()) return this; if (other.hasTopic()) { setTopic(other.getTopic()); } if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasAuthoritative()) { setAuthoritative(other.getAuthoritative()); } if (other.hasOriginalPrincipal()) { setOriginalPrincipal(other.getOriginalPrincipal()); } if (other.hasOriginalAuthData()) { setOriginalAuthData(other.getOriginalAuthData()); } if (other.hasOriginalAuthMethod()) { setOriginalAuthMethod(other.getOriginalAuthMethod()); } return this; }
public static ByteBuf newLookup(String topic, boolean authoritative, long requestId) { CommandLookupTopic.Builder lookupTopicBuilder = CommandLookupTopic.newBuilder(); lookupTopicBuilder.setTopic(topic); lookupTopicBuilder.setRequestId(requestId); lookupTopicBuilder.setAuthoritative(authoritative); CommandLookupTopic lookupBroker = lookupTopicBuilder.build(); ByteBuf res = serializeWithSize(BaseCommand.newBuilder().setType(Type.LOOKUP).setLookupTopic(lookupBroker)); lookupTopicBuilder.recycle(); lookupBroker.recycle(); return res; }
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance()) return this; if (other.hasTopic()) { setTopic(other.getTopic()); } if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasAuthoritative()) { setAuthoritative(other.getAuthoritative()); } if (other.hasOriginalPrincipal()) { setOriginalPrincipal(other.getOriginalPrincipal()); } if (other.hasOriginalAuthData()) { setOriginalAuthData(other.getOriginalAuthData()); } if (other.hasOriginalAuthMethod()) { setOriginalAuthMethod(other.getOriginalAuthMethod()); } return this; }
public static ByteBuf newLookup(String topic, boolean authoritative, long requestId) { CommandLookupTopic.Builder lookupTopicBuilder = CommandLookupTopic.newBuilder(); lookupTopicBuilder.setTopic(topic); lookupTopicBuilder.setRequestId(requestId); lookupTopicBuilder.setAuthoritative(authoritative); CommandLookupTopic lookupBroker = lookupTopicBuilder.build(); ByteBuf res = serializeWithSize(BaseCommand.newBuilder().setType(Type.LOOKUP).setLookupTopic(lookupBroker)); lookupTopicBuilder.recycle(); lookupBroker.recycle(); return res; }