All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.nats.stan.protobuf.SubscriptionRequest Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: protocol.proto

package io.nats.stan.protobuf;

/**
 * 
 * Protocol for a client to subscribe
 * 
* * Protobuf type {@code pb.SubscriptionRequest} */ public final class SubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pb.SubscriptionRequest) SubscriptionRequestOrBuilder { // Use SubscriptionRequest.newBuilder() to construct. private SubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SubscriptionRequest() { clientID_ = ""; subject_ = ""; qGroup_ = ""; inbox_ = ""; maxInFlight_ = 0; ackWaitInSecs_ = 0; durableName_ = ""; startPosition_ = 0; startSequence_ = 0L; startTimeDelta_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); clientID_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); subject_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); qGroup_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); inbox_ = s; break; } case 40: { maxInFlight_ = input.readInt32(); break; } case 48: { ackWaitInSecs_ = input.readInt32(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); durableName_ = s; break; } case 80: { int rawValue = input.readEnum(); startPosition_ = rawValue; break; } case 88: { startSequence_ = input.readUInt64(); break; } case 96: { startTimeDelta_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.nats.stan.protobuf.Protocol.internal_static_pb_SubscriptionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.nats.stan.protobuf.Protocol.internal_static_pb_SubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.nats.stan.protobuf.SubscriptionRequest.class, io.nats.stan.protobuf.SubscriptionRequest.Builder.class); } public static final int CLIENTID_FIELD_NUMBER = 1; private volatile java.lang.Object clientID_; /** *
   * ClientID
   * 
* * optional string clientID = 1; */ public java.lang.String getClientID() { java.lang.Object ref = clientID_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientID_ = s; return s; } } /** *
   * ClientID
   * 
* * optional string clientID = 1; */ public com.google.protobuf.ByteString getClientIDBytes() { java.lang.Object ref = clientID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBJECT_FIELD_NUMBER = 2; private volatile java.lang.Object subject_; /** *
   * Formal subject to subscribe to, e.g. foo.bar
   * 
* * optional string subject = 2; */ public java.lang.String getSubject() { java.lang.Object ref = subject_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } } /** *
   * Formal subject to subscribe to, e.g. foo.bar
   * 
* * optional string subject = 2; */ public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QGROUP_FIELD_NUMBER = 3; private volatile java.lang.Object qGroup_; /** *
   * Optional queue group
   * 
* * optional string qGroup = 3; */ public java.lang.String getQGroup() { java.lang.Object ref = qGroup_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); qGroup_ = s; return s; } } /** *
   * Optional queue group
   * 
* * optional string qGroup = 3; */ public com.google.protobuf.ByteString getQGroupBytes() { java.lang.Object ref = qGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); qGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INBOX_FIELD_NUMBER = 4; private volatile java.lang.Object inbox_; /** *
   * Inbox subject to deliver messages on
   * 
* * optional string inbox = 4; */ public java.lang.String getInbox() { java.lang.Object ref = inbox_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inbox_ = s; return s; } } /** *
   * Inbox subject to deliver messages on
   * 
* * optional string inbox = 4; */ public com.google.protobuf.ByteString getInboxBytes() { java.lang.Object ref = inbox_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); inbox_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAXINFLIGHT_FIELD_NUMBER = 5; private int maxInFlight_; /** *
   * Maximum inflight messages without an ack allowed
   * 
* * optional int32 maxInFlight = 5; */ public int getMaxInFlight() { return maxInFlight_; } public static final int ACKWAITINSECS_FIELD_NUMBER = 6; private int ackWaitInSecs_; /** *
   * Timeout for receiving an ack from the client
   * 
* * optional int32 ackWaitInSecs = 6; */ public int getAckWaitInSecs() { return ackWaitInSecs_; } public static final int DURABLENAME_FIELD_NUMBER = 7; private volatile java.lang.Object durableName_; /** *
   * Optional durable name which survives client restarts
   * 
* * optional string durableName = 7; */ public java.lang.String getDurableName() { java.lang.Object ref = durableName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); durableName_ = s; return s; } } /** *
   * Optional durable name which survives client restarts
   * 
* * optional string durableName = 7; */ public com.google.protobuf.ByteString getDurableNameBytes() { java.lang.Object ref = durableName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); durableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STARTPOSITION_FIELD_NUMBER = 10; private int startPosition_; /** *
   * Start position
   * 
* * optional .pb.StartPosition startPosition = 10; */ public int getStartPositionValue() { return startPosition_; } /** *
   * Start position
   * 
* * optional .pb.StartPosition startPosition = 10; */ public io.nats.stan.protobuf.StartPosition getStartPosition() { io.nats.stan.protobuf.StartPosition result = io.nats.stan.protobuf.StartPosition.valueOf(startPosition_); return result == null ? io.nats.stan.protobuf.StartPosition.UNRECOGNIZED : result; } public static final int STARTSEQUENCE_FIELD_NUMBER = 11; private long startSequence_; /** *
   * Optional start sequence number
   * 
* * optional uint64 startSequence = 11; */ public long getStartSequence() { return startSequence_; } public static final int STARTTIMEDELTA_FIELD_NUMBER = 12; private long startTimeDelta_; /** *
   * Optional start time
   * 
* * optional int64 startTimeDelta = 12; */ public long getStartTimeDelta() { return startTimeDelta_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getClientIDBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientID_); } if (!getSubjectBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subject_); } if (!getQGroupBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, qGroup_); } if (!getInboxBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, inbox_); } if (maxInFlight_ != 0) { output.writeInt32(5, maxInFlight_); } if (ackWaitInSecs_ != 0) { output.writeInt32(6, ackWaitInSecs_); } if (!getDurableNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, durableName_); } if (startPosition_ != io.nats.stan.protobuf.StartPosition.NewOnly.getNumber()) { output.writeEnum(10, startPosition_); } if (startSequence_ != 0L) { output.writeUInt64(11, startSequence_); } if (startTimeDelta_ != 0L) { output.writeInt64(12, startTimeDelta_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getClientIDBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientID_); } if (!getSubjectBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_); } if (!getQGroupBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, qGroup_); } if (!getInboxBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, inbox_); } if (maxInFlight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, maxInFlight_); } if (ackWaitInSecs_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, ackWaitInSecs_); } if (!getDurableNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, durableName_); } if (startPosition_ != io.nats.stan.protobuf.StartPosition.NewOnly.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, startPosition_); } if (startSequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(11, startSequence_); } if (startTimeDelta_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, startTimeDelta_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.nats.stan.protobuf.SubscriptionRequest)) { return super.equals(obj); } io.nats.stan.protobuf.SubscriptionRequest other = (io.nats.stan.protobuf.SubscriptionRequest) obj; boolean result = true; result = result && getClientID() .equals(other.getClientID()); result = result && getSubject() .equals(other.getSubject()); result = result && getQGroup() .equals(other.getQGroup()); result = result && getInbox() .equals(other.getInbox()); result = result && (getMaxInFlight() == other.getMaxInFlight()); result = result && (getAckWaitInSecs() == other.getAckWaitInSecs()); result = result && getDurableName() .equals(other.getDurableName()); result = result && startPosition_ == other.startPosition_; result = result && (getStartSequence() == other.getStartSequence()); result = result && (getStartTimeDelta() == other.getStartTimeDelta()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CLIENTID_FIELD_NUMBER; hash = (53 * hash) + getClientID().hashCode(); hash = (37 * hash) + SUBJECT_FIELD_NUMBER; hash = (53 * hash) + getSubject().hashCode(); hash = (37 * hash) + QGROUP_FIELD_NUMBER; hash = (53 * hash) + getQGroup().hashCode(); hash = (37 * hash) + INBOX_FIELD_NUMBER; hash = (53 * hash) + getInbox().hashCode(); hash = (37 * hash) + MAXINFLIGHT_FIELD_NUMBER; hash = (53 * hash) + getMaxInFlight(); hash = (37 * hash) + ACKWAITINSECS_FIELD_NUMBER; hash = (53 * hash) + getAckWaitInSecs(); hash = (37 * hash) + DURABLENAME_FIELD_NUMBER; hash = (53 * hash) + getDurableName().hashCode(); hash = (37 * hash) + STARTPOSITION_FIELD_NUMBER; hash = (53 * hash) + startPosition_; hash = (37 * hash) + STARTSEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartSequence()); hash = (37 * hash) + STARTTIMEDELTA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTimeDelta()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.nats.stan.protobuf.SubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.nats.stan.protobuf.SubscriptionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.nats.stan.protobuf.SubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.nats.stan.protobuf.SubscriptionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.nats.stan.protobuf.SubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.nats.stan.protobuf.SubscriptionRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.nats.stan.protobuf.SubscriptionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.nats.stan.protobuf.SubscriptionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.nats.stan.protobuf.SubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.nats.stan.protobuf.SubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.nats.stan.protobuf.SubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Protocol for a client to subscribe
   * 
* * Protobuf type {@code pb.SubscriptionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pb.SubscriptionRequest) io.nats.stan.protobuf.SubscriptionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.nats.stan.protobuf.Protocol.internal_static_pb_SubscriptionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.nats.stan.protobuf.Protocol.internal_static_pb_SubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.nats.stan.protobuf.SubscriptionRequest.class, io.nats.stan.protobuf.SubscriptionRequest.Builder.class); } // Construct using io.nats.stan.protobuf.SubscriptionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); clientID_ = ""; subject_ = ""; qGroup_ = ""; inbox_ = ""; maxInFlight_ = 0; ackWaitInSecs_ = 0; durableName_ = ""; startPosition_ = 0; startSequence_ = 0L; startTimeDelta_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.nats.stan.protobuf.Protocol.internal_static_pb_SubscriptionRequest_descriptor; } public io.nats.stan.protobuf.SubscriptionRequest getDefaultInstanceForType() { return io.nats.stan.protobuf.SubscriptionRequest.getDefaultInstance(); } public io.nats.stan.protobuf.SubscriptionRequest build() { io.nats.stan.protobuf.SubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public io.nats.stan.protobuf.SubscriptionRequest buildPartial() { io.nats.stan.protobuf.SubscriptionRequest result = new io.nats.stan.protobuf.SubscriptionRequest(this); result.clientID_ = clientID_; result.subject_ = subject_; result.qGroup_ = qGroup_; result.inbox_ = inbox_; result.maxInFlight_ = maxInFlight_; result.ackWaitInSecs_ = ackWaitInSecs_; result.durableName_ = durableName_; result.startPosition_ = startPosition_; result.startSequence_ = startSequence_; result.startTimeDelta_ = startTimeDelta_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.nats.stan.protobuf.SubscriptionRequest) { return mergeFrom((io.nats.stan.protobuf.SubscriptionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.nats.stan.protobuf.SubscriptionRequest other) { if (other == io.nats.stan.protobuf.SubscriptionRequest.getDefaultInstance()) return this; if (!other.getClientID().isEmpty()) { clientID_ = other.clientID_; onChanged(); } if (!other.getSubject().isEmpty()) { subject_ = other.subject_; onChanged(); } if (!other.getQGroup().isEmpty()) { qGroup_ = other.qGroup_; onChanged(); } if (!other.getInbox().isEmpty()) { inbox_ = other.inbox_; onChanged(); } if (other.getMaxInFlight() != 0) { setMaxInFlight(other.getMaxInFlight()); } if (other.getAckWaitInSecs() != 0) { setAckWaitInSecs(other.getAckWaitInSecs()); } if (!other.getDurableName().isEmpty()) { durableName_ = other.durableName_; onChanged(); } if (other.startPosition_ != 0) { setStartPositionValue(other.getStartPositionValue()); } if (other.getStartSequence() != 0L) { setStartSequence(other.getStartSequence()); } if (other.getStartTimeDelta() != 0L) { setStartTimeDelta(other.getStartTimeDelta()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.nats.stan.protobuf.SubscriptionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.nats.stan.protobuf.SubscriptionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object clientID_ = ""; /** *
     * ClientID
     * 
* * optional string clientID = 1; */ public java.lang.String getClientID() { java.lang.Object ref = clientID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientID_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * ClientID
     * 
* * optional string clientID = 1; */ public com.google.protobuf.ByteString getClientIDBytes() { java.lang.Object ref = clientID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * ClientID
     * 
* * optional string clientID = 1; */ public Builder setClientID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientID_ = value; onChanged(); return this; } /** *
     * ClientID
     * 
* * optional string clientID = 1; */ public Builder clearClientID() { clientID_ = getDefaultInstance().getClientID(); onChanged(); return this; } /** *
     * ClientID
     * 
* * optional string clientID = 1; */ public Builder setClientIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientID_ = value; onChanged(); return this; } private java.lang.Object subject_ = ""; /** *
     * Formal subject to subscribe to, e.g. foo.bar
     * 
* * optional string subject = 2; */ public java.lang.String getSubject() { java.lang.Object ref = subject_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Formal subject to subscribe to, e.g. foo.bar
     * 
* * optional string subject = 2; */ public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Formal subject to subscribe to, e.g. foo.bar
     * 
* * optional string subject = 2; */ public Builder setSubject( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subject_ = value; onChanged(); return this; } /** *
     * Formal subject to subscribe to, e.g. foo.bar
     * 
* * optional string subject = 2; */ public Builder clearSubject() { subject_ = getDefaultInstance().getSubject(); onChanged(); return this; } /** *
     * Formal subject to subscribe to, e.g. foo.bar
     * 
* * optional string subject = 2; */ public Builder setSubjectBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subject_ = value; onChanged(); return this; } private java.lang.Object qGroup_ = ""; /** *
     * Optional queue group
     * 
* * optional string qGroup = 3; */ public java.lang.String getQGroup() { java.lang.Object ref = qGroup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); qGroup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Optional queue group
     * 
* * optional string qGroup = 3; */ public com.google.protobuf.ByteString getQGroupBytes() { java.lang.Object ref = qGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); qGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Optional queue group
     * 
* * optional string qGroup = 3; */ public Builder setQGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } qGroup_ = value; onChanged(); return this; } /** *
     * Optional queue group
     * 
* * optional string qGroup = 3; */ public Builder clearQGroup() { qGroup_ = getDefaultInstance().getQGroup(); onChanged(); return this; } /** *
     * Optional queue group
     * 
* * optional string qGroup = 3; */ public Builder setQGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); qGroup_ = value; onChanged(); return this; } private java.lang.Object inbox_ = ""; /** *
     * Inbox subject to deliver messages on
     * 
* * optional string inbox = 4; */ public java.lang.String getInbox() { java.lang.Object ref = inbox_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inbox_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Inbox subject to deliver messages on
     * 
* * optional string inbox = 4; */ public com.google.protobuf.ByteString getInboxBytes() { java.lang.Object ref = inbox_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); inbox_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Inbox subject to deliver messages on
     * 
* * optional string inbox = 4; */ public Builder setInbox( java.lang.String value) { if (value == null) { throw new NullPointerException(); } inbox_ = value; onChanged(); return this; } /** *
     * Inbox subject to deliver messages on
     * 
* * optional string inbox = 4; */ public Builder clearInbox() { inbox_ = getDefaultInstance().getInbox(); onChanged(); return this; } /** *
     * Inbox subject to deliver messages on
     * 
* * optional string inbox = 4; */ public Builder setInboxBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); inbox_ = value; onChanged(); return this; } private int maxInFlight_ ; /** *
     * Maximum inflight messages without an ack allowed
     * 
* * optional int32 maxInFlight = 5; */ public int getMaxInFlight() { return maxInFlight_; } /** *
     * Maximum inflight messages without an ack allowed
     * 
* * optional int32 maxInFlight = 5; */ public Builder setMaxInFlight(int value) { maxInFlight_ = value; onChanged(); return this; } /** *
     * Maximum inflight messages without an ack allowed
     * 
* * optional int32 maxInFlight = 5; */ public Builder clearMaxInFlight() { maxInFlight_ = 0; onChanged(); return this; } private int ackWaitInSecs_ ; /** *
     * Timeout for receiving an ack from the client
     * 
* * optional int32 ackWaitInSecs = 6; */ public int getAckWaitInSecs() { return ackWaitInSecs_; } /** *
     * Timeout for receiving an ack from the client
     * 
* * optional int32 ackWaitInSecs = 6; */ public Builder setAckWaitInSecs(int value) { ackWaitInSecs_ = value; onChanged(); return this; } /** *
     * Timeout for receiving an ack from the client
     * 
* * optional int32 ackWaitInSecs = 6; */ public Builder clearAckWaitInSecs() { ackWaitInSecs_ = 0; onChanged(); return this; } private java.lang.Object durableName_ = ""; /** *
     * Optional durable name which survives client restarts
     * 
* * optional string durableName = 7; */ public java.lang.String getDurableName() { java.lang.Object ref = durableName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); durableName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Optional durable name which survives client restarts
     * 
* * optional string durableName = 7; */ public com.google.protobuf.ByteString getDurableNameBytes() { java.lang.Object ref = durableName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); durableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Optional durable name which survives client restarts
     * 
* * optional string durableName = 7; */ public Builder setDurableName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } durableName_ = value; onChanged(); return this; } /** *
     * Optional durable name which survives client restarts
     * 
* * optional string durableName = 7; */ public Builder clearDurableName() { durableName_ = getDefaultInstance().getDurableName(); onChanged(); return this; } /** *
     * Optional durable name which survives client restarts
     * 
* * optional string durableName = 7; */ public Builder setDurableNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); durableName_ = value; onChanged(); return this; } private int startPosition_ = 0; /** *
     * Start position
     * 
* * optional .pb.StartPosition startPosition = 10; */ public int getStartPositionValue() { return startPosition_; } /** *
     * Start position
     * 
* * optional .pb.StartPosition startPosition = 10; */ public Builder setStartPositionValue(int value) { startPosition_ = value; onChanged(); return this; } /** *
     * Start position
     * 
* * optional .pb.StartPosition startPosition = 10; */ public io.nats.stan.protobuf.StartPosition getStartPosition() { io.nats.stan.protobuf.StartPosition result = io.nats.stan.protobuf.StartPosition.valueOf(startPosition_); return result == null ? io.nats.stan.protobuf.StartPosition.UNRECOGNIZED : result; } /** *
     * Start position
     * 
* * optional .pb.StartPosition startPosition = 10; */ public Builder setStartPosition(io.nats.stan.protobuf.StartPosition value) { if (value == null) { throw new NullPointerException(); } startPosition_ = value.getNumber(); onChanged(); return this; } /** *
     * Start position
     * 
* * optional .pb.StartPosition startPosition = 10; */ public Builder clearStartPosition() { startPosition_ = 0; onChanged(); return this; } private long startSequence_ ; /** *
     * Optional start sequence number
     * 
* * optional uint64 startSequence = 11; */ public long getStartSequence() { return startSequence_; } /** *
     * Optional start sequence number
     * 
* * optional uint64 startSequence = 11; */ public Builder setStartSequence(long value) { startSequence_ = value; onChanged(); return this; } /** *
     * Optional start sequence number
     * 
* * optional uint64 startSequence = 11; */ public Builder clearStartSequence() { startSequence_ = 0L; onChanged(); return this; } private long startTimeDelta_ ; /** *
     * Optional start time
     * 
* * optional int64 startTimeDelta = 12; */ public long getStartTimeDelta() { return startTimeDelta_; } /** *
     * Optional start time
     * 
* * optional int64 startTimeDelta = 12; */ public Builder setStartTimeDelta(long value) { startTimeDelta_ = value; onChanged(); return this; } /** *
     * Optional start time
     * 
* * optional int64 startTimeDelta = 12; */ public Builder clearStartTimeDelta() { startTimeDelta_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:pb.SubscriptionRequest) } // @@protoc_insertion_point(class_scope:pb.SubscriptionRequest) private static final io.nats.stan.protobuf.SubscriptionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.nats.stan.protobuf.SubscriptionRequest(); } public static io.nats.stan.protobuf.SubscriptionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SubscriptionRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public io.nats.stan.protobuf.SubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy