io.nats.stan.protobuf.ConnectResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-nats-streaming Show documentation
Show all versions of java-nats-streaming Show documentation
Client library for working with the NATS messaging system.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protocol.proto
package io.nats.stan.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 {
// Use ConnectResponse.newBuilder() to construct.
private ConnectResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConnectResponse() {
pubPrefix_ = "";
subRequests_ = "";
unsubRequests_ = "";
closeRequests_ = "";
error_ = "";
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)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
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 802: {
java.lang.String s = input.readStringRequireUtf8();
publicKey_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.nats.stan.protobuf.Protocol.internal_static_pb_ConnectResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.nats.stan.protobuf.Protocol.internal_static_pb_ConnectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.nats.stan.protobuf.ConnectResponse.class, io.nats.stan.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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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 PUBLICKEY_FIELD_NUMBER = 100;
private volatile java.lang.Object publicKey_;
/**
*
* Possibly used to sign acks, etc.
*
*
* optional 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.
*
*
* optional 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;
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()) {
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 (!getPublicKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 100, publicKey_);
}
}
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 (!getPublicKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, publicKey_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.nats.stan.protobuf.ConnectResponse)) {
return super.equals(obj);
}
io.nats.stan.protobuf.ConnectResponse other = (io.nats.stan.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 && getPublicKey()
.equals(other.getPublicKey());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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) + PUBLICKEY_FIELD_NUMBER;
hash = (53 * hash) + getPublicKey().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.nats.stan.protobuf.ConnectResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.nats.stan.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.stan.protobuf.ConnectResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.nats.stan.protobuf.ConnectResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.nats.stan.protobuf.ConnectResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.nats.stan.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.stan.protobuf.ConnectResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.nats.stan.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.stan.protobuf.ConnectResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.nats.stan.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);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.nats.stan.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.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.stan.protobuf.ConnectResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.nats.stan.protobuf.Protocol.internal_static_pb_ConnectResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.nats.stan.protobuf.Protocol.internal_static_pb_ConnectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.nats.stan.protobuf.ConnectResponse.class, io.nats.stan.protobuf.ConnectResponse.Builder.class);
}
// Construct using io.nats.stan.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) {
}
}
public Builder clear() {
super.clear();
pubPrefix_ = "";
subRequests_ = "";
unsubRequests_ = "";
closeRequests_ = "";
error_ = "";
publicKey_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.nats.stan.protobuf.Protocol.internal_static_pb_ConnectResponse_descriptor;
}
public io.nats.stan.protobuf.ConnectResponse getDefaultInstanceForType() {
return io.nats.stan.protobuf.ConnectResponse.getDefaultInstance();
}
public io.nats.stan.protobuf.ConnectResponse build() {
io.nats.stan.protobuf.ConnectResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.nats.stan.protobuf.ConnectResponse buildPartial() {
io.nats.stan.protobuf.ConnectResponse result = new io.nats.stan.protobuf.ConnectResponse(this);
result.pubPrefix_ = pubPrefix_;
result.subRequests_ = subRequests_;
result.unsubRequests_ = unsubRequests_;
result.closeRequests_ = closeRequests_;
result.error_ = error_;
result.publicKey_ = publicKey_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.nats.stan.protobuf.ConnectResponse) {
return mergeFrom((io.nats.stan.protobuf.ConnectResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.nats.stan.protobuf.ConnectResponse other) {
if (other == io.nats.stan.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.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.stan.protobuf.ConnectResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.nats.stan.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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional string pubPrefix = 1;
*/
public Builder clearPubPrefix() {
pubPrefix_ = getDefaultInstance().getPubPrefix();
onChanged();
return this;
}
/**
*
* Prefix to use when publishing to this STAN cluster
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional string subRequests = 2;
*/
public Builder clearSubRequests() {
subRequests_ = getDefaultInstance().getSubRequests();
onChanged();
return this;
}
/**
*
* Subject to use for subscription requests
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional string unsubRequests = 3;
*/
public Builder clearUnsubRequests() {
unsubRequests_ = getDefaultInstance().getUnsubRequests();
onChanged();
return this;
}
/**
*
* Subject to use for unsubscribe requests
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional string closeRequests = 4;
*/
public Builder clearCloseRequests() {
closeRequests_ = getDefaultInstance().getCloseRequests();
onChanged();
return this;
}
/**
*
* Subject for closing the stan connection
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional 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
*
*
* optional string error = 5;
*/
public Builder clearError() {
error_ = getDefaultInstance().getError();
onChanged();
return this;
}
/**
*
* err string, empty/omitted if no error
*
*
* optional 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 publicKey_ = "";
/**
*
* Possibly used to sign acks, etc.
*
*
* optional 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.
*
*
* optional 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.
*
*
* optional 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.
*
*
* optional string publicKey = 100;
*/
public Builder clearPublicKey() {
publicKey_ = getDefaultInstance().getPublicKey();
onChanged();
return this;
}
/**
*
* Possibly used to sign acks, etc.
*
*
* optional string publicKey = 100;
*/
public Builder setPublicKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
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.stan.protobuf.ConnectResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.nats.stan.protobuf.ConnectResponse();
}
public static io.nats.stan.protobuf.ConnectResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private 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 {
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;
}
public io.nats.stan.protobuf.ConnectResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy