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;

/**
 * Protobuf type {@code pb.ConnectResponse}
 *
 * 
 * Response to a client connect
 * 
*/ public final class ConnectResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:pb.ConnectResponse) ConnectResponseOrBuilder { // Use ConnectResponse.newBuilder() to construct. private ConnectResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ConnectResponse() { pubPrefix_ = ""; subRequests_ = ""; unsubRequests_ = ""; closeRequests_ = ""; error_ = ""; subCloseRequests_ = ""; publicKey_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConnectResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 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: { com.google.protobuf.ByteString bs = input.readBytes(); pubPrefix_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); subRequests_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); unsubRequests_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); closeRequests_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); error_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); subCloseRequests_ = bs; break; } case 802: { com.google.protobuf.ByteString bs = input.readBytes(); publicKey_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.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_; /** * optional string pubPrefix = 1; * *
   * Prefix to use when publishing to this STAN cluster
   * 
*/ 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(); if (bs.isValidUtf8()) { pubPrefix_ = s; } return s; } } /** * optional string pubPrefix = 1; * *
   * Prefix to use when publishing to this STAN cluster
   * 
*/ 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_; /** * optional string subRequests = 2; * *
   * Subject to use for subscription requests
   * 
*/ 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(); if (bs.isValidUtf8()) { subRequests_ = s; } return s; } } /** * optional string subRequests = 2; * *
   * Subject to use for subscription requests
   * 
*/ 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_; /** * optional string unsubRequests = 3; * *
   * Subject to use for unsubscribe requests
   * 
*/ 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(); if (bs.isValidUtf8()) { unsubRequests_ = s; } return s; } } /** * optional string unsubRequests = 3; * *
   * Subject to use for unsubscribe requests
   * 
*/ 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_; /** * optional string closeRequests = 4; * *
   * Subject for closing the stan connection
   * 
*/ 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(); if (bs.isValidUtf8()) { closeRequests_ = s; } return s; } } /** * optional string closeRequests = 4; * *
   * Subject for closing the stan connection
   * 
*/ 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_; /** * optional string error = 5; * *
   * err string, empty/omitted if no error
   * 
*/ 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(); if (bs.isValidUtf8()) { error_ = s; } return s; } } /** * optional string error = 5; * *
   * err string, empty/omitted if no error
   * 
*/ 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_; /** * optional string subCloseRequests = 6; * *
   * Subject to use for subscription close requests
   * 
*/ 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(); if (bs.isValidUtf8()) { subCloseRequests_ = s; } return s; } } /** * optional string subCloseRequests = 6; * *
   * Subject to use for subscription close requests
   * 
*/ 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_; /** * optional string publicKey = 100; * *
   * Possibly used to sign acks, etc.
   * 
*/ 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(); if (bs.isValidUtf8()) { publicKey_ = s; } return s; } } /** * optional string publicKey = 100; * *
   * Possibly used to sign acks, etc.
   * 
*/ 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; 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 (!getPubPrefixBytes().isEmpty()) { output.writeBytes(1, getPubPrefixBytes()); } if (!getSubRequestsBytes().isEmpty()) { output.writeBytes(2, getSubRequestsBytes()); } if (!getUnsubRequestsBytes().isEmpty()) { output.writeBytes(3, getUnsubRequestsBytes()); } if (!getCloseRequestsBytes().isEmpty()) { output.writeBytes(4, getCloseRequestsBytes()); } if (!getErrorBytes().isEmpty()) { output.writeBytes(5, getErrorBytes()); } if (!getSubCloseRequestsBytes().isEmpty()) { output.writeBytes(6, getSubCloseRequestsBytes()); } if (!getPublicKeyBytes().isEmpty()) { output.writeBytes(100, getPublicKeyBytes()); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (!getPubPrefixBytes().isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getPubPrefixBytes()); } if (!getSubRequestsBytes().isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSubRequestsBytes()); } if (!getUnsubRequestsBytes().isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getUnsubRequestsBytes()); } if (!getCloseRequestsBytes().isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getCloseRequestsBytes()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getErrorBytes()); } if (!getSubCloseRequestsBytes().isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getSubCloseRequestsBytes()); } if (!getPublicKeyBytes().isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(100, getPublicKeyBytes()); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; 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 PARSER.parseFrom(input); } public static io.nats.streaming.protobuf.ConnectResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static io.nats.streaming.protobuf.ConnectResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static io.nats.streaming.protobuf.ConnectResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static io.nats.streaming.protobuf.ConnectResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static io.nats.streaming.protobuf.ConnectResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } 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); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code pb.ConnectResponse} * *
   * Response to a client connect
   * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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; } protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); pubPrefix_ = ""; subRequests_ = ""; unsubRequests_ = ""; closeRequests_ = ""; error_ = ""; subCloseRequests_ = ""; publicKey_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectResponse_descriptor; } public io.nats.streaming.protobuf.ConnectResponse getDefaultInstanceForType() { return io.nats.streaming.protobuf.ConnectResponse.getDefaultInstance(); } public io.nats.streaming.protobuf.ConnectResponse build() { io.nats.streaming.protobuf.ConnectResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } 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; } 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(); } 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.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; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object pubPrefix_ = ""; /** * optional string pubPrefix = 1; * *
     * Prefix to use when publishing to this STAN cluster
     * 
*/ 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(); if (bs.isValidUtf8()) { pubPrefix_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string pubPrefix = 1; * *
     * Prefix to use when publishing to this STAN cluster
     * 
*/ 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; } } /** * optional string pubPrefix = 1; * *
     * Prefix to use when publishing to this STAN cluster
     * 
*/ public Builder setPubPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pubPrefix_ = value; onChanged(); return this; } /** * optional string pubPrefix = 1; * *
     * Prefix to use when publishing to this STAN cluster
     * 
*/ public Builder clearPubPrefix() { pubPrefix_ = getDefaultInstance().getPubPrefix(); onChanged(); return this; } /** * optional string pubPrefix = 1; * *
     * Prefix to use when publishing to this STAN cluster
     * 
*/ public Builder setPubPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pubPrefix_ = value; onChanged(); return this; } private java.lang.Object subRequests_ = ""; /** * optional string subRequests = 2; * *
     * Subject to use for subscription requests
     * 
*/ 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(); if (bs.isValidUtf8()) { subRequests_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string subRequests = 2; * *
     * Subject to use for subscription requests
     * 
*/ 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; } } /** * optional string subRequests = 2; * *
     * Subject to use for subscription requests
     * 
*/ public Builder setSubRequests( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subRequests_ = value; onChanged(); return this; } /** * optional string subRequests = 2; * *
     * Subject to use for subscription requests
     * 
*/ public Builder clearSubRequests() { subRequests_ = getDefaultInstance().getSubRequests(); onChanged(); return this; } /** * optional string subRequests = 2; * *
     * Subject to use for subscription requests
     * 
*/ public Builder setSubRequestsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } subRequests_ = value; onChanged(); return this; } private java.lang.Object unsubRequests_ = ""; /** * optional string unsubRequests = 3; * *
     * Subject to use for unsubscribe requests
     * 
*/ 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(); if (bs.isValidUtf8()) { unsubRequests_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string unsubRequests = 3; * *
     * Subject to use for unsubscribe requests
     * 
*/ 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; } } /** * optional string unsubRequests = 3; * *
     * Subject to use for unsubscribe requests
     * 
*/ public Builder setUnsubRequests( java.lang.String value) { if (value == null) { throw new NullPointerException(); } unsubRequests_ = value; onChanged(); return this; } /** * optional string unsubRequests = 3; * *
     * Subject to use for unsubscribe requests
     * 
*/ public Builder clearUnsubRequests() { unsubRequests_ = getDefaultInstance().getUnsubRequests(); onChanged(); return this; } /** * optional string unsubRequests = 3; * *
     * Subject to use for unsubscribe requests
     * 
*/ public Builder setUnsubRequestsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } unsubRequests_ = value; onChanged(); return this; } private java.lang.Object closeRequests_ = ""; /** * optional string closeRequests = 4; * *
     * Subject for closing the stan connection
     * 
*/ 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(); if (bs.isValidUtf8()) { closeRequests_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string closeRequests = 4; * *
     * Subject for closing the stan connection
     * 
*/ 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; } } /** * optional string closeRequests = 4; * *
     * Subject for closing the stan connection
     * 
*/ public Builder setCloseRequests( java.lang.String value) { if (value == null) { throw new NullPointerException(); } closeRequests_ = value; onChanged(); return this; } /** * optional string closeRequests = 4; * *
     * Subject for closing the stan connection
     * 
*/ public Builder clearCloseRequests() { closeRequests_ = getDefaultInstance().getCloseRequests(); onChanged(); return this; } /** * optional string closeRequests = 4; * *
     * Subject for closing the stan connection
     * 
*/ public Builder setCloseRequestsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } closeRequests_ = value; onChanged(); return this; } private java.lang.Object error_ = ""; /** * optional string error = 5; * *
     * err string, empty/omitted if no error
     * 
*/ 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(); if (bs.isValidUtf8()) { error_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string error = 5; * *
     * err string, empty/omitted if no error
     * 
*/ 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; } } /** * optional string error = 5; * *
     * err string, empty/omitted if no error
     * 
*/ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * optional string error = 5; * *
     * err string, empty/omitted if no error
     * 
*/ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * optional string error = 5; * *
     * err string, empty/omitted if no error
     * 
*/ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } private java.lang.Object subCloseRequests_ = ""; /** * optional string subCloseRequests = 6; * *
     * Subject to use for subscription close requests
     * 
*/ 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(); if (bs.isValidUtf8()) { subCloseRequests_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string subCloseRequests = 6; * *
     * Subject to use for subscription close requests
     * 
*/ 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; } } /** * optional string subCloseRequests = 6; * *
     * Subject to use for subscription close requests
     * 
*/ public Builder setSubCloseRequests( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subCloseRequests_ = value; onChanged(); return this; } /** * optional string subCloseRequests = 6; * *
     * Subject to use for subscription close requests
     * 
*/ public Builder clearSubCloseRequests() { subCloseRequests_ = getDefaultInstance().getSubCloseRequests(); onChanged(); return this; } /** * optional string subCloseRequests = 6; * *
     * Subject to use for subscription close requests
     * 
*/ public Builder setSubCloseRequestsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } subCloseRequests_ = value; onChanged(); return this; } private java.lang.Object publicKey_ = ""; /** * optional string publicKey = 100; * *
     * Possibly used to sign acks, etc.
     * 
*/ 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(); if (bs.isValidUtf8()) { publicKey_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string publicKey = 100; * *
     * Possibly used to sign acks, etc.
     * 
*/ 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; } } /** * optional string publicKey = 100; * *
     * Possibly used to sign acks, etc.
     * 
*/ public Builder setPublicKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } publicKey_ = value; onChanged(); return this; } /** * optional string publicKey = 100; * *
     * Possibly used to sign acks, etc.
     * 
*/ public Builder clearPublicKey() { publicKey_ = getDefaultInstance().getPublicKey(); onChanged(); return this; } /** * optional string publicKey = 100; * *
     * Possibly used to sign acks, etc.
     * 
*/ public Builder setPublicKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } publicKey_ = value; 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.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; } public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ConnectResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new ConnectResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public io.nats.streaming.protobuf.ConnectResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy