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

io.nats.streaming.protobuf.ConnectResponse 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.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_ = ""; publicKey_ = ""; } @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(); } int mutable_bitField0_ = 0; 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 802: { java.lang.String s = input.readStringRequireUtf8(); publicKey_ = s; break; } default: { if (!parseUnknownFieldProto3( 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 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 (!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 (!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; boolean result = true; result = result && getPubPrefix() .equals(other.getPubPrefix()); result = result && getSubRequests() .equals(other.getSubRequests()); result = result && getUnsubRequests() .equals(other.getUnsubRequests()); result = result && getCloseRequests() .equals(other.getCloseRequests()); result = result && getError() .equals(other.getError()); result = result && getSubCloseRequests() .equals(other.getSubCloseRequests()); result = result && getPublicKey() .equals(other.getPublicKey()); result = result && unknownFields.equals(other.unknownFields); return result; } @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) + 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_ = ""; 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.publicKey_ = publicKey_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) 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.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 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.setUnknownFieldsProto3(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