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

io.nats.streaming.protobuf.ConnectResponse Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: protocol.proto

package io.nats.streaming.protobuf;

/**
 * 
 * Response to a client connect
 * 
* * Protobuf type {@code pb.ConnectResponse} */ public final class ConnectResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pb.ConnectResponse) ConnectResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ConnectResponse.newBuilder() to construct. private ConnectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConnectResponse() { pubPrefix_ = ""; subRequests_ = ""; unsubRequests_ = ""; closeRequests_ = ""; error_ = ""; subCloseRequests_ = ""; pingRequests_ = ""; publicKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConnectResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConnectResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); pubPrefix_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); subRequests_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); unsubRequests_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); closeRequests_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); subCloseRequests_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); pingRequests_ = s; break; } case 64: { pingInterval_ = input.readInt32(); break; } case 72: { pingMaxOut_ = input.readInt32(); break; } case 80: { protocol_ = input.readInt32(); break; } case 802: { java.lang.String s = input.readStringRequireUtf8(); publicKey_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.nats.streaming.protobuf.ConnectResponse.class, io.nats.streaming.protobuf.ConnectResponse.Builder.class); } public static final int PUBPREFIX_FIELD_NUMBER = 1; private volatile java.lang.Object pubPrefix_; /** *
   * Prefix to use when publishing to this STAN cluster
   * 
* * string pubPrefix = 1; */ public java.lang.String getPubPrefix() { java.lang.Object ref = pubPrefix_; 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(); pubPrefix_ = s; return s; } } /** *
   * Prefix to use when publishing to this STAN cluster
   * 
* * string pubPrefix = 1; */ public com.google.protobuf.ByteString getPubPrefixBytes() { java.lang.Object ref = pubPrefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pubPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBREQUESTS_FIELD_NUMBER = 2; private volatile java.lang.Object subRequests_; /** *
   * Subject to use for subscription requests
   * 
* * string subRequests = 2; */ public java.lang.String getSubRequests() { java.lang.Object ref = subRequests_; 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(); subRequests_ = s; return s; } } /** *
   * Subject to use for subscription requests
   * 
* * string subRequests = 2; */ public com.google.protobuf.ByteString getSubRequestsBytes() { java.lang.Object ref = subRequests_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subRequests_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UNSUBREQUESTS_FIELD_NUMBER = 3; private volatile java.lang.Object unsubRequests_; /** *
   * Subject to use for unsubscribe requests
   * 
* * string unsubRequests = 3; */ public java.lang.String getUnsubRequests() { java.lang.Object ref = unsubRequests_; 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(); unsubRequests_ = s; return s; } } /** *
   * Subject to use for unsubscribe requests
   * 
* * string unsubRequests = 3; */ public com.google.protobuf.ByteString getUnsubRequestsBytes() { java.lang.Object ref = unsubRequests_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); unsubRequests_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLOSEREQUESTS_FIELD_NUMBER = 4; private volatile java.lang.Object closeRequests_; /** *
   * Subject for closing the stan connection
   * 
* * string closeRequests = 4; */ public java.lang.String getCloseRequests() { java.lang.Object ref = closeRequests_; 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(); closeRequests_ = s; return s; } } /** *
   * Subject for closing the stan connection
   * 
* * string closeRequests = 4; */ public com.google.protobuf.ByteString getCloseRequestsBytes() { java.lang.Object ref = closeRequests_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); closeRequests_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERROR_FIELD_NUMBER = 5; private volatile java.lang.Object error_; /** *
   * err string, empty/omitted if no error
   * 
* * string error = 5; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** *
   * err string, empty/omitted if no error
   * 
* * string error = 5; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBCLOSEREQUESTS_FIELD_NUMBER = 6; private volatile java.lang.Object subCloseRequests_; /** *
   * Subject to use for subscription close requests
   * 
* * string subCloseRequests = 6; */ public java.lang.String getSubCloseRequests() { java.lang.Object ref = subCloseRequests_; 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(); subCloseRequests_ = s; return s; } } /** *
   * Subject to use for subscription close requests
   * 
* * string subCloseRequests = 6; */ public com.google.protobuf.ByteString getSubCloseRequestsBytes() { java.lang.Object ref = subCloseRequests_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subCloseRequests_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PINGREQUESTS_FIELD_NUMBER = 7; private volatile java.lang.Object pingRequests_; /** *
   * Subject to use for PING requests
   * 
* * string pingRequests = 7; */ public java.lang.String getPingRequests() { java.lang.Object ref = pingRequests_; 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(); pingRequests_ = s; return s; } } /** *
   * Subject to use for PING requests
   * 
* * string pingRequests = 7; */ public com.google.protobuf.ByteString getPingRequestsBytes() { java.lang.Object ref = pingRequests_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pingRequests_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PINGINTERVAL_FIELD_NUMBER = 8; private int pingInterval_; /** *
   * Interval at which client should send PINGs (expressed in seconds).
   * 
* * int32 pingInterval = 8; */ public int getPingInterval() { return pingInterval_; } public static final int PINGMAXOUT_FIELD_NUMBER = 9; private int pingMaxOut_; /** *
   * Maximum number of PINGs without a response after which the connection can be considered lost
   * 
* * int32 pingMaxOut = 9; */ public int getPingMaxOut() { return pingMaxOut_; } public static final int PROTOCOL_FIELD_NUMBER = 10; private int protocol_; /** *
   * Protocol version the server is at
   * 
* * int32 protocol = 10; */ public int getProtocol() { return protocol_; } public static final int PUBLICKEY_FIELD_NUMBER = 100; private volatile java.lang.Object publicKey_; /** *
   * Possibly used to sign acks, etc.
   * 
* * string publicKey = 100; */ public java.lang.String getPublicKey() { java.lang.Object ref = publicKey_; 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(); publicKey_ = s; return s; } } /** *
   * Possibly used to sign acks, etc.
   * 
* * string publicKey = 100; */ public com.google.protobuf.ByteString getPublicKeyBytes() { java.lang.Object ref = publicKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); publicKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPubPrefixBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubPrefix_); } if (!getSubRequestsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subRequests_); } if (!getUnsubRequestsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unsubRequests_); } if (!getCloseRequestsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, closeRequests_); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, error_); } if (!getSubCloseRequestsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, subCloseRequests_); } if (!getPingRequestsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pingRequests_); } if (pingInterval_ != 0) { output.writeInt32(8, pingInterval_); } if (pingMaxOut_ != 0) { output.writeInt32(9, pingMaxOut_); } if (protocol_ != 0) { output.writeInt32(10, protocol_); } if (!getPublicKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, publicKey_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getPubPrefixBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pubPrefix_); } if (!getSubRequestsBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subRequests_); } if (!getUnsubRequestsBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, unsubRequests_); } if (!getCloseRequestsBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, closeRequests_); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, error_); } if (!getSubCloseRequestsBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, subCloseRequests_); } if (!getPingRequestsBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pingRequests_); } if (pingInterval_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, pingInterval_); } if (pingMaxOut_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, pingMaxOut_); } if (protocol_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, protocol_); } if (!getPublicKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, publicKey_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.nats.streaming.protobuf.ConnectResponse)) { return super.equals(obj); } io.nats.streaming.protobuf.ConnectResponse other = (io.nats.streaming.protobuf.ConnectResponse) obj; if (!getPubPrefix() .equals(other.getPubPrefix())) return false; if (!getSubRequests() .equals(other.getSubRequests())) return false; if (!getUnsubRequests() .equals(other.getUnsubRequests())) return false; if (!getCloseRequests() .equals(other.getCloseRequests())) return false; if (!getError() .equals(other.getError())) return false; if (!getSubCloseRequests() .equals(other.getSubCloseRequests())) return false; if (!getPingRequests() .equals(other.getPingRequests())) return false; if (getPingInterval() != other.getPingInterval()) return false; if (getPingMaxOut() != other.getPingMaxOut()) return false; if (getProtocol() != other.getProtocol()) return false; if (!getPublicKey() .equals(other.getPublicKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PUBPREFIX_FIELD_NUMBER; hash = (53 * hash) + getPubPrefix().hashCode(); hash = (37 * hash) + SUBREQUESTS_FIELD_NUMBER; hash = (53 * hash) + getSubRequests().hashCode(); hash = (37 * hash) + UNSUBREQUESTS_FIELD_NUMBER; hash = (53 * hash) + getUnsubRequests().hashCode(); hash = (37 * hash) + CLOSEREQUESTS_FIELD_NUMBER; hash = (53 * hash) + getCloseRequests().hashCode(); hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (37 * hash) + SUBCLOSEREQUESTS_FIELD_NUMBER; hash = (53 * hash) + getSubCloseRequests().hashCode(); hash = (37 * hash) + PINGREQUESTS_FIELD_NUMBER; hash = (53 * hash) + getPingRequests().hashCode(); hash = (37 * hash) + PINGINTERVAL_FIELD_NUMBER; hash = (53 * hash) + getPingInterval(); hash = (37 * hash) + PINGMAXOUT_FIELD_NUMBER; hash = (53 * hash) + getPingMaxOut(); hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol(); hash = (37 * hash) + PUBLICKEY_FIELD_NUMBER; hash = (53 * hash) + getPublicKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.nats.streaming.protobuf.ConnectResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.nats.streaming.protobuf.ConnectResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.nats.streaming.protobuf.ConnectResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.nats.streaming.protobuf.ConnectResponse 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.streaming.protobuf.ConnectResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.nats.streaming.protobuf.ConnectResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.nats.streaming.protobuf.ConnectResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.nats.streaming.protobuf.ConnectResponse 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.streaming.protobuf.ConnectResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.nats.streaming.protobuf.ConnectResponse 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.streaming.protobuf.ConnectResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.nats.streaming.protobuf.ConnectResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.nats.streaming.protobuf.ConnectResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
   * Response to a client connect
   * 
* * Protobuf type {@code pb.ConnectResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pb.ConnectResponse) io.nats.streaming.protobuf.ConnectResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.nats.streaming.protobuf.ConnectResponse.class, io.nats.streaming.protobuf.ConnectResponse.Builder.class); } // Construct using io.nats.streaming.protobuf.ConnectResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); pubPrefix_ = ""; subRequests_ = ""; unsubRequests_ = ""; closeRequests_ = ""; error_ = ""; subCloseRequests_ = ""; pingRequests_ = ""; pingInterval_ = 0; pingMaxOut_ = 0; protocol_ = 0; publicKey_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectResponse_descriptor; } @java.lang.Override public io.nats.streaming.protobuf.ConnectResponse getDefaultInstanceForType() { return io.nats.streaming.protobuf.ConnectResponse.getDefaultInstance(); } @java.lang.Override public io.nats.streaming.protobuf.ConnectResponse build() { io.nats.streaming.protobuf.ConnectResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.nats.streaming.protobuf.ConnectResponse buildPartial() { io.nats.streaming.protobuf.ConnectResponse result = new io.nats.streaming.protobuf.ConnectResponse(this); result.pubPrefix_ = pubPrefix_; result.subRequests_ = subRequests_; result.unsubRequests_ = unsubRequests_; result.closeRequests_ = closeRequests_; result.error_ = error_; result.subCloseRequests_ = subCloseRequests_; result.pingRequests_ = pingRequests_; result.pingInterval_ = pingInterval_; result.pingMaxOut_ = pingMaxOut_; result.protocol_ = protocol_; result.publicKey_ = publicKey_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.nats.streaming.protobuf.ConnectResponse) { return mergeFrom((io.nats.streaming.protobuf.ConnectResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.nats.streaming.protobuf.ConnectResponse other) { if (other == io.nats.streaming.protobuf.ConnectResponse.getDefaultInstance()) return this; if (!other.getPubPrefix().isEmpty()) { pubPrefix_ = other.pubPrefix_; onChanged(); } if (!other.getSubRequests().isEmpty()) { subRequests_ = other.subRequests_; onChanged(); } if (!other.getUnsubRequests().isEmpty()) { unsubRequests_ = other.unsubRequests_; onChanged(); } if (!other.getCloseRequests().isEmpty()) { closeRequests_ = other.closeRequests_; onChanged(); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } if (!other.getSubCloseRequests().isEmpty()) { subCloseRequests_ = other.subCloseRequests_; onChanged(); } if (!other.getPingRequests().isEmpty()) { pingRequests_ = other.pingRequests_; onChanged(); } if (other.getPingInterval() != 0) { setPingInterval(other.getPingInterval()); } if (other.getPingMaxOut() != 0) { setPingMaxOut(other.getPingMaxOut()); } if (other.getProtocol() != 0) { setProtocol(other.getProtocol()); } if (!other.getPublicKey().isEmpty()) { publicKey_ = other.publicKey_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.nats.streaming.protobuf.ConnectResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.nats.streaming.protobuf.ConnectResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object pubPrefix_ = ""; /** *
     * Prefix to use when publishing to this STAN cluster
     * 
* * string pubPrefix = 1; */ public java.lang.String getPubPrefix() { java.lang.Object ref = pubPrefix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubPrefix_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Prefix to use when publishing to this STAN cluster
     * 
* * string pubPrefix = 1; */ public com.google.protobuf.ByteString getPubPrefixBytes() { java.lang.Object ref = pubPrefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pubPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Prefix to use when publishing to this STAN cluster
     * 
* * string pubPrefix = 1; */ public Builder setPubPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pubPrefix_ = value; onChanged(); return this; } /** *
     * Prefix to use when publishing to this STAN cluster
     * 
* * string pubPrefix = 1; */ public Builder clearPubPrefix() { pubPrefix_ = getDefaultInstance().getPubPrefix(); onChanged(); return this; } /** *
     * Prefix to use when publishing to this STAN cluster
     * 
* * string pubPrefix = 1; */ public Builder setPubPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pubPrefix_ = value; onChanged(); return this; } private java.lang.Object subRequests_ = ""; /** *
     * Subject to use for subscription requests
     * 
* * string subRequests = 2; */ public java.lang.String getSubRequests() { java.lang.Object ref = subRequests_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subRequests_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Subject to use for subscription requests
     * 
* * string subRequests = 2; */ public com.google.protobuf.ByteString getSubRequestsBytes() { java.lang.Object ref = subRequests_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subRequests_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Subject to use for subscription requests
     * 
* * string subRequests = 2; */ public Builder setSubRequests( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subRequests_ = value; onChanged(); return this; } /** *
     * Subject to use for subscription requests
     * 
* * string subRequests = 2; */ public Builder clearSubRequests() { subRequests_ = getDefaultInstance().getSubRequests(); onChanged(); return this; } /** *
     * Subject to use for subscription requests
     * 
* * string subRequests = 2; */ public Builder setSubRequestsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subRequests_ = value; onChanged(); return this; } private java.lang.Object unsubRequests_ = ""; /** *
     * Subject to use for unsubscribe requests
     * 
* * string unsubRequests = 3; */ public java.lang.String getUnsubRequests() { java.lang.Object ref = unsubRequests_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unsubRequests_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Subject to use for unsubscribe requests
     * 
* * string unsubRequests = 3; */ public com.google.protobuf.ByteString getUnsubRequestsBytes() { java.lang.Object ref = unsubRequests_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); unsubRequests_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Subject to use for unsubscribe requests
     * 
* * string unsubRequests = 3; */ public Builder setUnsubRequests( java.lang.String value) { if (value == null) { throw new NullPointerException(); } unsubRequests_ = value; onChanged(); return this; } /** *
     * Subject to use for unsubscribe requests
     * 
* * string unsubRequests = 3; */ public Builder clearUnsubRequests() { unsubRequests_ = getDefaultInstance().getUnsubRequests(); onChanged(); return this; } /** *
     * Subject to use for unsubscribe requests
     * 
* * string unsubRequests = 3; */ public Builder setUnsubRequestsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); unsubRequests_ = value; onChanged(); return this; } private java.lang.Object closeRequests_ = ""; /** *
     * Subject for closing the stan connection
     * 
* * string closeRequests = 4; */ public java.lang.String getCloseRequests() { java.lang.Object ref = closeRequests_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); closeRequests_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Subject for closing the stan connection
     * 
* * string closeRequests = 4; */ public com.google.protobuf.ByteString getCloseRequestsBytes() { java.lang.Object ref = closeRequests_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); closeRequests_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Subject for closing the stan connection
     * 
* * string closeRequests = 4; */ public Builder setCloseRequests( java.lang.String value) { if (value == null) { throw new NullPointerException(); } closeRequests_ = value; onChanged(); return this; } /** *
     * Subject for closing the stan connection
     * 
* * string closeRequests = 4; */ public Builder clearCloseRequests() { closeRequests_ = getDefaultInstance().getCloseRequests(); onChanged(); return this; } /** *
     * Subject for closing the stan connection
     * 
* * string closeRequests = 4; */ public Builder setCloseRequestsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); closeRequests_ = value; onChanged(); return this; } private java.lang.Object error_ = ""; /** *
     * err string, empty/omitted if no error
     * 
* * string error = 5; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * err string, empty/omitted if no error
     * 
* * string error = 5; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * err string, empty/omitted if no error
     * 
* * string error = 5; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** *
     * err string, empty/omitted if no error
     * 
* * string error = 5; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** *
     * err string, empty/omitted if no error
     * 
* * string error = 5; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } private java.lang.Object subCloseRequests_ = ""; /** *
     * Subject to use for subscription close requests
     * 
* * string subCloseRequests = 6; */ public java.lang.String getSubCloseRequests() { java.lang.Object ref = subCloseRequests_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subCloseRequests_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Subject to use for subscription close requests
     * 
* * string subCloseRequests = 6; */ public com.google.protobuf.ByteString getSubCloseRequestsBytes() { java.lang.Object ref = subCloseRequests_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subCloseRequests_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Subject to use for subscription close requests
     * 
* * string subCloseRequests = 6; */ public Builder setSubCloseRequests( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subCloseRequests_ = value; onChanged(); return this; } /** *
     * Subject to use for subscription close requests
     * 
* * string subCloseRequests = 6; */ public Builder clearSubCloseRequests() { subCloseRequests_ = getDefaultInstance().getSubCloseRequests(); onChanged(); return this; } /** *
     * Subject to use for subscription close requests
     * 
* * string subCloseRequests = 6; */ public Builder setSubCloseRequestsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subCloseRequests_ = value; onChanged(); return this; } private java.lang.Object pingRequests_ = ""; /** *
     * Subject to use for PING requests
     * 
* * string pingRequests = 7; */ public java.lang.String getPingRequests() { java.lang.Object ref = pingRequests_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pingRequests_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Subject to use for PING requests
     * 
* * string pingRequests = 7; */ public com.google.protobuf.ByteString getPingRequestsBytes() { java.lang.Object ref = pingRequests_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pingRequests_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Subject to use for PING requests
     * 
* * string pingRequests = 7; */ public Builder setPingRequests( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pingRequests_ = value; onChanged(); return this; } /** *
     * Subject to use for PING requests
     * 
* * string pingRequests = 7; */ public Builder clearPingRequests() { pingRequests_ = getDefaultInstance().getPingRequests(); onChanged(); return this; } /** *
     * Subject to use for PING requests
     * 
* * string pingRequests = 7; */ public Builder setPingRequestsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pingRequests_ = value; onChanged(); return this; } private int pingInterval_ ; /** *
     * Interval at which client should send PINGs (expressed in seconds).
     * 
* * int32 pingInterval = 8; */ public int getPingInterval() { return pingInterval_; } /** *
     * Interval at which client should send PINGs (expressed in seconds).
     * 
* * int32 pingInterval = 8; */ public Builder setPingInterval(int value) { pingInterval_ = value; onChanged(); return this; } /** *
     * Interval at which client should send PINGs (expressed in seconds).
     * 
* * int32 pingInterval = 8; */ public Builder clearPingInterval() { pingInterval_ = 0; onChanged(); return this; } private int pingMaxOut_ ; /** *
     * Maximum number of PINGs without a response after which the connection can be considered lost
     * 
* * int32 pingMaxOut = 9; */ public int getPingMaxOut() { return pingMaxOut_; } /** *
     * Maximum number of PINGs without a response after which the connection can be considered lost
     * 
* * int32 pingMaxOut = 9; */ public Builder setPingMaxOut(int value) { pingMaxOut_ = value; onChanged(); return this; } /** *
     * Maximum number of PINGs without a response after which the connection can be considered lost
     * 
* * int32 pingMaxOut = 9; */ public Builder clearPingMaxOut() { pingMaxOut_ = 0; onChanged(); return this; } private int protocol_ ; /** *
     * Protocol version the server is at
     * 
* * int32 protocol = 10; */ public int getProtocol() { return protocol_; } /** *
     * Protocol version the server is at
     * 
* * int32 protocol = 10; */ public Builder setProtocol(int value) { protocol_ = value; onChanged(); return this; } /** *
     * Protocol version the server is at
     * 
* * int32 protocol = 10; */ public Builder clearProtocol() { protocol_ = 0; onChanged(); return this; } private java.lang.Object publicKey_ = ""; /** *
     * Possibly used to sign acks, etc.
     * 
* * string publicKey = 100; */ public java.lang.String getPublicKey() { java.lang.Object ref = publicKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Possibly used to sign acks, etc.
     * 
* * string publicKey = 100; */ public com.google.protobuf.ByteString getPublicKeyBytes() { java.lang.Object ref = publicKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); publicKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Possibly used to sign acks, etc.
     * 
* * string publicKey = 100; */ public Builder setPublicKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } publicKey_ = value; onChanged(); return this; } /** *
     * Possibly used to sign acks, etc.
     * 
* * string publicKey = 100; */ public Builder clearPublicKey() { publicKey_ = getDefaultInstance().getPublicKey(); onChanged(); return this; } /** *
     * Possibly used to sign acks, etc.
     * 
* * string publicKey = 100; */ public Builder setPublicKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); publicKey_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pb.ConnectResponse) } // @@protoc_insertion_point(class_scope:pb.ConnectResponse) private static final io.nats.streaming.protobuf.ConnectResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.nats.streaming.protobuf.ConnectResponse(); } public static io.nats.streaming.protobuf.ConnectResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConnectResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConnectResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.nats.streaming.protobuf.ConnectResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy