public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.getDefaultInstance()) return this; if (other.hasTopic()) { setTopic(other.getTopic()); if (other.hasSubscription()) { setSubscription(other.getSubscription()); if (other.hasSubType()) { setSubType(other.getSubType()); if (other.hasConsumerId()) { setConsumerId(other.getConsumerId()); if (other.hasRequestId()) { setRequestId(other.getRequestId()); if (other.hasConsumerName()) { setConsumerName(other.getConsumerName()); if (other.hasPriorityLevel()) { setPriorityLevel(other.getPriorityLevel()); if (other.hasDurable()) { setDurable(other.getDurable()); if (other.hasStartMessageId()) { mergeStartMessageId(other.getStartMessageId()); if (other.hasReadCompacted()) {
@Override protected void handleSubscribe(final CommandSubscribe subscribe) { checkArgument(state == State.Connected); final long requestId = subscribe.getRequestId(); final long consumerId = subscribe.getConsumerId(); TopicName topicName = validateTopicName(subscribe.getTopic(), requestId, subscribe); if (topicName == null) { return; final String subscriptionName = subscribe.getSubscription(); final SubType subType = subscribe.getSubType(); final String consumerName = subscribe.getConsumerName(); final boolean isDurable = subscribe.getDurable(); final MessageIdImpl startMessageId = subscribe.hasStartMessageId() ? new BatchMessageIdImpl( subscribe.getStartMessageId().getLedgerId(), subscribe.getStartMessageId().getEntryId(), subscribe.getStartMessageId().getPartition(), subscribe.getStartMessageId().getBatchIndex()) : null; final String subscription = subscribe.getSubscription(); final int priorityLevel = subscribe.hasPriorityLevel() ? subscribe.getPriorityLevel() : 0; final boolean readCompacted = subscribe.getReadCompacted(); final Map<String, String> metadata = CommandUtils.metadataFromCommand(subscribe); final InitialPosition initialPosition = subscribe.getInitialPosition(); final SchemaData schema = subscribe.hasSchema() ? getSchema(subscribe.getSchema()) : null; authenticationData, subscribe.getSubscription()); } else { isProxyAuthorizedFuture = CompletableFuture.completedFuture(true);
if (!hasTopic()) { memoizedIsInitialized = 0; return false; if (!hasSubscription()) { memoizedIsInitialized = 0; return false; if (!hasSubType()) { memoizedIsInitialized = 0; return false; if (!hasConsumerId()) { memoizedIsInitialized = 0; return false; if (!hasRequestId()) { memoizedIsInitialized = 0; return false; if (hasStartMessageId()) { if (!getStartMessageId().isInitialized()) { memoizedIsInitialized = 0; return false; for (int i = 0; i < getMetadataCount(); i++) { if (!getMetadata(i).isInitialized()) { memoizedIsInitialized = 0; return false;
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.getDefaultInstance()) return this; if (other.hasTopic()) { setTopic(other.getTopic()); if (other.hasSubscription()) { setSubscription(other.getSubscription()); if (other.hasSubType()) { setSubType(other.getSubType()); if (other.hasConsumerId()) { setConsumerId(other.getConsumerId()); if (other.hasRequestId()) { setRequestId(other.getRequestId()); if (other.hasConsumerName()) { setConsumerName(other.getConsumerName()); if (other.hasPriorityLevel()) { setPriorityLevel(other.getPriorityLevel()); if (other.hasDurable()) { setDurable(other.getDurable()); if (other.hasStartMessageId()) { mergeStartMessageId(other.getStartMessageId()); if (other.hasReadCompacted()) {
public Builder clearConsumerName() { bitField0_ = (bitField0_ & ~0x00000020); consumerName_ = getDefaultInstance().getConsumerName(); return this; } void setConsumerName(org.apache.pulsar.shaded.com.google.protobuf.v241.ByteString value) {
if (!hasTopic()) { memoizedIsInitialized = 0; return false; if (!hasSubscription()) { memoizedIsInitialized = 0; return false; if (!hasSubType()) { memoizedIsInitialized = 0; return false; if (!hasConsumerId()) { memoizedIsInitialized = 0; return false; if (!hasRequestId()) { memoizedIsInitialized = 0; return false; if (hasStartMessageId()) { if (!getStartMessageId().isInitialized()) { memoizedIsInitialized = 0; return false; for (int i = 0; i < getMetadataCount(); i++) { if (!getMetadata(i).isInitialized()) { memoizedIsInitialized = 0; return false;
public Builder clearConsumerName() { bitField0_ = (bitField0_ & ~0x00000020); consumerName_ = getDefaultInstance().getConsumerName(); return this; } void setConsumerName(org.apache.pulsar.shaded.com.google.protobuf.v241.ByteString value) {