io.nats.streaming.protobuf.ConnectRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protocol.proto
package io.nats.streaming.protobuf;
/**
*
* Connection Request
*
*
* Protobuf type {@code pb.ConnectRequest}
*/
public final class ConnectRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:pb.ConnectRequest)
ConnectRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConnectRequest.newBuilder() to construct.
private ConnectRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConnectRequest() {
clientID_ = "";
heartbeatInbox_ = "";
connID_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConnectRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConnectRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
clientID_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
heartbeatInbox_ = s;
break;
}
case 24: {
protocol_ = input.readInt32();
break;
}
case 34: {
connID_ = input.readBytes();
break;
}
case 40: {
pingInterval_ = input.readInt32();
break;
}
case 48: {
pingMaxOut_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.nats.streaming.protobuf.ConnectRequest.class, io.nats.streaming.protobuf.ConnectRequest.Builder.class);
}
public static final int CLIENTID_FIELD_NUMBER = 1;
private volatile java.lang.Object clientID_;
/**
*
* Client name/identifier.
*
*
* string clientID = 1;
*/
public java.lang.String getClientID() {
java.lang.Object ref = clientID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientID_ = s;
return s;
}
}
/**
*
* Client name/identifier.
*
*
* string clientID = 1;
*/
public com.google.protobuf.ByteString
getClientIDBytes() {
java.lang.Object ref = clientID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HEARTBEATINBOX_FIELD_NUMBER = 2;
private volatile java.lang.Object heartbeatInbox_;
/**
*
* Inbox for server initiated heartbeats.
*
*
* string heartbeatInbox = 2;
*/
public java.lang.String getHeartbeatInbox() {
java.lang.Object ref = heartbeatInbox_;
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();
heartbeatInbox_ = s;
return s;
}
}
/**
*
* Inbox for server initiated heartbeats.
*
*
* string heartbeatInbox = 2;
*/
public com.google.protobuf.ByteString
getHeartbeatInboxBytes() {
java.lang.Object ref = heartbeatInbox_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
heartbeatInbox_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROTOCOL_FIELD_NUMBER = 3;
private int protocol_;
/**
*
* Protocol the client is at.
*
*
* int32 protocol = 3;
*/
public int getProtocol() {
return protocol_;
}
public static final int CONNID_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString connID_;
/**
*
* Connection ID, a way to uniquely identify a connection (no connection should ever have the same)
*
*
* bytes connID = 4;
*/
public com.google.protobuf.ByteString getConnID() {
return connID_;
}
public static final int PINGINTERVAL_FIELD_NUMBER = 5;
private int pingInterval_;
/**
*
* Interval at which client wishes to send PINGs (expressed in seconds).
*
*
* int32 pingInterval = 5;
*/
public int getPingInterval() {
return pingInterval_;
}
public static final int PINGMAXOUT_FIELD_NUMBER = 6;
private int pingMaxOut_;
/**
*
* Maximum number of PINGs without a response after which the connection can be considered lost.
*
*
* int32 pingMaxOut = 6;
*/
public int getPingMaxOut() {
return pingMaxOut_;
}
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 (!getClientIDBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientID_);
}
if (!getHeartbeatInboxBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, heartbeatInbox_);
}
if (protocol_ != 0) {
output.writeInt32(3, protocol_);
}
if (!connID_.isEmpty()) {
output.writeBytes(4, connID_);
}
if (pingInterval_ != 0) {
output.writeInt32(5, pingInterval_);
}
if (pingMaxOut_ != 0) {
output.writeInt32(6, pingMaxOut_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getClientIDBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientID_);
}
if (!getHeartbeatInboxBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, heartbeatInbox_);
}
if (protocol_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, protocol_);
}
if (!connID_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, connID_);
}
if (pingInterval_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, pingInterval_);
}
if (pingMaxOut_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, pingMaxOut_);
}
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.ConnectRequest)) {
return super.equals(obj);
}
io.nats.streaming.protobuf.ConnectRequest other = (io.nats.streaming.protobuf.ConnectRequest) obj;
if (!getClientID()
.equals(other.getClientID())) return false;
if (!getHeartbeatInbox()
.equals(other.getHeartbeatInbox())) return false;
if (getProtocol()
!= other.getProtocol()) return false;
if (!getConnID()
.equals(other.getConnID())) return false;
if (getPingInterval()
!= other.getPingInterval()) return false;
if (getPingMaxOut()
!= other.getPingMaxOut()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CLIENTID_FIELD_NUMBER;
hash = (53 * hash) + getClientID().hashCode();
hash = (37 * hash) + HEARTBEATINBOX_FIELD_NUMBER;
hash = (53 * hash) + getHeartbeatInbox().hashCode();
hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + getProtocol();
hash = (37 * hash) + CONNID_FIELD_NUMBER;
hash = (53 * hash) + getConnID().hashCode();
hash = (37 * hash) + PINGINTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getPingInterval();
hash = (37 * hash) + PINGMAXOUT_FIELD_NUMBER;
hash = (53 * hash) + getPingMaxOut();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.nats.streaming.protobuf.ConnectRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.nats.streaming.protobuf.ConnectRequest 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.ConnectRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.nats.streaming.protobuf.ConnectRequest 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.ConnectRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.nats.streaming.protobuf.ConnectRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.nats.streaming.protobuf.ConnectRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.nats.streaming.protobuf.ConnectRequest 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.ConnectRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.nats.streaming.protobuf.ConnectRequest 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.ConnectRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.nats.streaming.protobuf.ConnectRequest 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.ConnectRequest 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;
}
/**
*
* Connection Request
*
*
* Protobuf type {@code pb.ConnectRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:pb.ConnectRequest)
io.nats.streaming.protobuf.ConnectRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.nats.streaming.protobuf.ConnectRequest.class, io.nats.streaming.protobuf.ConnectRequest.Builder.class);
}
// Construct using io.nats.streaming.protobuf.ConnectRequest.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();
clientID_ = "";
heartbeatInbox_ = "";
protocol_ = 0;
connID_ = com.google.protobuf.ByteString.EMPTY;
pingInterval_ = 0;
pingMaxOut_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.nats.streaming.protobuf.Protocol.internal_static_pb_ConnectRequest_descriptor;
}
@java.lang.Override
public io.nats.streaming.protobuf.ConnectRequest getDefaultInstanceForType() {
return io.nats.streaming.protobuf.ConnectRequest.getDefaultInstance();
}
@java.lang.Override
public io.nats.streaming.protobuf.ConnectRequest build() {
io.nats.streaming.protobuf.ConnectRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.nats.streaming.protobuf.ConnectRequest buildPartial() {
io.nats.streaming.protobuf.ConnectRequest result = new io.nats.streaming.protobuf.ConnectRequest(this);
result.clientID_ = clientID_;
result.heartbeatInbox_ = heartbeatInbox_;
result.protocol_ = protocol_;
result.connID_ = connID_;
result.pingInterval_ = pingInterval_;
result.pingMaxOut_ = pingMaxOut_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.nats.streaming.protobuf.ConnectRequest) {
return mergeFrom((io.nats.streaming.protobuf.ConnectRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.nats.streaming.protobuf.ConnectRequest other) {
if (other == io.nats.streaming.protobuf.ConnectRequest.getDefaultInstance()) return this;
if (!other.getClientID().isEmpty()) {
clientID_ = other.clientID_;
onChanged();
}
if (!other.getHeartbeatInbox().isEmpty()) {
heartbeatInbox_ = other.heartbeatInbox_;
onChanged();
}
if (other.getProtocol() != 0) {
setProtocol(other.getProtocol());
}
if (other.getConnID() != com.google.protobuf.ByteString.EMPTY) {
setConnID(other.getConnID());
}
if (other.getPingInterval() != 0) {
setPingInterval(other.getPingInterval());
}
if (other.getPingMaxOut() != 0) {
setPingMaxOut(other.getPingMaxOut());
}
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.ConnectRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.nats.streaming.protobuf.ConnectRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clientID_ = "";
/**
*
* Client name/identifier.
*
*
* string clientID = 1;
*/
public java.lang.String getClientID() {
java.lang.Object ref = clientID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Client name/identifier.
*
*
* string clientID = 1;
*/
public com.google.protobuf.ByteString
getClientIDBytes() {
java.lang.Object ref = clientID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Client name/identifier.
*
*
* string clientID = 1;
*/
public Builder setClientID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientID_ = value;
onChanged();
return this;
}
/**
*
* Client name/identifier.
*
*
* string clientID = 1;
*/
public Builder clearClientID() {
clientID_ = getDefaultInstance().getClientID();
onChanged();
return this;
}
/**
*
* Client name/identifier.
*
*
* string clientID = 1;
*/
public Builder setClientIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientID_ = value;
onChanged();
return this;
}
private java.lang.Object heartbeatInbox_ = "";
/**
*
* Inbox for server initiated heartbeats.
*
*
* string heartbeatInbox = 2;
*/
public java.lang.String getHeartbeatInbox() {
java.lang.Object ref = heartbeatInbox_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
heartbeatInbox_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Inbox for server initiated heartbeats.
*
*
* string heartbeatInbox = 2;
*/
public com.google.protobuf.ByteString
getHeartbeatInboxBytes() {
java.lang.Object ref = heartbeatInbox_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
heartbeatInbox_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Inbox for server initiated heartbeats.
*
*
* string heartbeatInbox = 2;
*/
public Builder setHeartbeatInbox(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
heartbeatInbox_ = value;
onChanged();
return this;
}
/**
*
* Inbox for server initiated heartbeats.
*
*
* string heartbeatInbox = 2;
*/
public Builder clearHeartbeatInbox() {
heartbeatInbox_ = getDefaultInstance().getHeartbeatInbox();
onChanged();
return this;
}
/**
*
* Inbox for server initiated heartbeats.
*
*
* string heartbeatInbox = 2;
*/
public Builder setHeartbeatInboxBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
heartbeatInbox_ = value;
onChanged();
return this;
}
private int protocol_ ;
/**
*
* Protocol the client is at.
*
*
* int32 protocol = 3;
*/
public int getProtocol() {
return protocol_;
}
/**
*
* Protocol the client is at.
*
*
* int32 protocol = 3;
*/
public Builder setProtocol(int value) {
protocol_ = value;
onChanged();
return this;
}
/**
*
* Protocol the client is at.
*
*
* int32 protocol = 3;
*/
public Builder clearProtocol() {
protocol_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString connID_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Connection ID, a way to uniquely identify a connection (no connection should ever have the same)
*
*
* bytes connID = 4;
*/
public com.google.protobuf.ByteString getConnID() {
return connID_;
}
/**
*
* Connection ID, a way to uniquely identify a connection (no connection should ever have the same)
*
*
* bytes connID = 4;
*/
public Builder setConnID(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
connID_ = value;
onChanged();
return this;
}
/**
*
* Connection ID, a way to uniquely identify a connection (no connection should ever have the same)
*
*
* bytes connID = 4;
*/
public Builder clearConnID() {
connID_ = getDefaultInstance().getConnID();
onChanged();
return this;
}
private int pingInterval_ ;
/**
*
* Interval at which client wishes to send PINGs (expressed in seconds).
*
*
* int32 pingInterval = 5;
*/
public int getPingInterval() {
return pingInterval_;
}
/**
*
* Interval at which client wishes to send PINGs (expressed in seconds).
*
*
* int32 pingInterval = 5;
*/
public Builder setPingInterval(int value) {
pingInterval_ = value;
onChanged();
return this;
}
/**
*
* Interval at which client wishes to send PINGs (expressed in seconds).
*
*
* int32 pingInterval = 5;
*/
public Builder clearPingInterval() {
pingInterval_ = 0;
onChanged();
return this;
}
private int pingMaxOut_ ;
/**
*
* Maximum number of PINGs without a response after which the connection can be considered lost.
*
*
* int32 pingMaxOut = 6;
*/
public int getPingMaxOut() {
return pingMaxOut_;
}
/**
*
* Maximum number of PINGs without a response after which the connection can be considered lost.
*
*
* int32 pingMaxOut = 6;
*/
public Builder setPingMaxOut(int value) {
pingMaxOut_ = value;
onChanged();
return this;
}
/**
*
* Maximum number of PINGs without a response after which the connection can be considered lost.
*
*
* int32 pingMaxOut = 6;
*/
public Builder clearPingMaxOut() {
pingMaxOut_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:pb.ConnectRequest)
}
// @@protoc_insertion_point(class_scope:pb.ConnectRequest)
private static final io.nats.streaming.protobuf.ConnectRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.nats.streaming.protobuf.ConnectRequest();
}
public static io.nats.streaming.protobuf.ConnectRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConnectRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConnectRequest(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.ConnectRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy