java.io.deephaven.proto.backplane.grpc.HandshakeResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-proto-backplane-grpc Show documentation
Show all versions of deephaven-proto-backplane-grpc Show documentation
The Deephaven proto-backplane-grpc
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: deephaven/proto/session.proto
// Protobuf Java Version: 3.25.3
package io.deephaven.proto.backplane.grpc;
/**
*
*
* Servers respond with information needed to make subsequent requests tied to this session.
* The session token should be refreshed prior to the deadline, which is represented as milliseconds since the
* epoch. Clients are encouraged to use the expiration delay and cookie deadline to determine a good time to refresh.
*
*
* Protobuf type {@code io.deephaven.proto.backplane.grpc.HandshakeResponse}
*/
public final class HandshakeResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.grpc.HandshakeResponse)
HandshakeResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use HandshakeResponse.newBuilder() to construct.
private HandshakeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HandshakeResponse() {
metadataHeader_ = com.google.protobuf.ByteString.EMPTY;
sessionToken_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HandshakeResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_HandshakeResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_HandshakeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.HandshakeResponse.class, io.deephaven.proto.backplane.grpc.HandshakeResponse.Builder.class);
}
public static final int METADATA_HEADER_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString metadataHeader_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
* The metadata header to identify the session. This value is static and defined via configuration.
*
*
* bytes metadata_header = 1 [deprecated = true];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.metadata_header is deprecated.
* See deephaven/proto/session.proto;l=138
* @return The metadataHeader.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString getMetadataHeader() {
return metadataHeader_;
}
public static final int SESSION_TOKEN_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString sessionToken_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
* Arbitrary session_token to assign to the value to the provided metadata header.
*
*
* bytes session_token = 2 [deprecated = true];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.session_token is deprecated.
* See deephaven/proto/session.proto;l=143
* @return The sessionToken.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString getSessionToken() {
return sessionToken_;
}
public static final int TOKEN_DEADLINE_TIME_MILLIS_FIELD_NUMBER = 3;
private long tokenDeadlineTimeMillis_ = 0L;
/**
*
*
* When this session_token will be considered invalid by the server.
*
*
* sint64 token_deadline_time_millis = 3 [deprecated = true, jstype = JS_STRING];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.token_deadline_time_millis is deprecated.
* See deephaven/proto/session.proto;l=148
* @return The tokenDeadlineTimeMillis.
*/
@java.lang.Override
@java.lang.Deprecated public long getTokenDeadlineTimeMillis() {
return tokenDeadlineTimeMillis_;
}
public static final int TOKEN_EXPIRATION_DELAY_MILLIS_FIELD_NUMBER = 4;
private long tokenExpirationDelayMillis_ = 0L;
/**
*
*
* The length of time that this token was intended to live. Note that `refreshSessionToken` may return the
* existing token to reduce overhead and to prevent denial-of-service caused by refreshing too frequently.
*
*
* sint64 token_expiration_delay_millis = 4 [deprecated = true, jstype = JS_STRING];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.token_expiration_delay_millis is deprecated.
* See deephaven/proto/session.proto;l=154
* @return The tokenExpirationDelayMillis.
*/
@java.lang.Override
@java.lang.Deprecated public long getTokenExpirationDelayMillis() {
return tokenExpirationDelayMillis_;
}
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 (!metadataHeader_.isEmpty()) {
output.writeBytes(1, metadataHeader_);
}
if (!sessionToken_.isEmpty()) {
output.writeBytes(2, sessionToken_);
}
if (tokenDeadlineTimeMillis_ != 0L) {
output.writeSInt64(3, tokenDeadlineTimeMillis_);
}
if (tokenExpirationDelayMillis_ != 0L) {
output.writeSInt64(4, tokenExpirationDelayMillis_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!metadataHeader_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, metadataHeader_);
}
if (!sessionToken_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, sessionToken_);
}
if (tokenDeadlineTimeMillis_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(3, tokenDeadlineTimeMillis_);
}
if (tokenExpirationDelayMillis_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(4, tokenExpirationDelayMillis_);
}
size += getUnknownFields().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.deephaven.proto.backplane.grpc.HandshakeResponse)) {
return super.equals(obj);
}
io.deephaven.proto.backplane.grpc.HandshakeResponse other = (io.deephaven.proto.backplane.grpc.HandshakeResponse) obj;
if (!getMetadataHeader()
.equals(other.getMetadataHeader())) return false;
if (!getSessionToken()
.equals(other.getSessionToken())) return false;
if (getTokenDeadlineTimeMillis()
!= other.getTokenDeadlineTimeMillis()) return false;
if (getTokenExpirationDelayMillis()
!= other.getTokenExpirationDelayMillis()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + METADATA_HEADER_FIELD_NUMBER;
hash = (53 * hash) + getMetadataHeader().hashCode();
hash = (37 * hash) + SESSION_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getSessionToken().hashCode();
hash = (37 * hash) + TOKEN_DEADLINE_TIME_MILLIS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTokenDeadlineTimeMillis());
hash = (37 * hash) + TOKEN_EXPIRATION_DELAY_MILLIS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTokenExpirationDelayMillis());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse 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.deephaven.proto.backplane.grpc.HandshakeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse 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.deephaven.proto.backplane.grpc.HandshakeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse 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.deephaven.proto.backplane.grpc.HandshakeResponse 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;
}
/**
*
*
* Servers respond with information needed to make subsequent requests tied to this session.
* The session token should be refreshed prior to the deadline, which is represented as milliseconds since the
* epoch. Clients are encouraged to use the expiration delay and cookie deadline to determine a good time to refresh.
*
*
* Protobuf type {@code io.deephaven.proto.backplane.grpc.HandshakeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.grpc.HandshakeResponse)
io.deephaven.proto.backplane.grpc.HandshakeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_HandshakeResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_HandshakeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.HandshakeResponse.class, io.deephaven.proto.backplane.grpc.HandshakeResponse.Builder.class);
}
// Construct using io.deephaven.proto.backplane.grpc.HandshakeResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
metadataHeader_ = com.google.protobuf.ByteString.EMPTY;
sessionToken_ = com.google.protobuf.ByteString.EMPTY;
tokenDeadlineTimeMillis_ = 0L;
tokenExpirationDelayMillis_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_HandshakeResponse_descriptor;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.HandshakeResponse getDefaultInstanceForType() {
return io.deephaven.proto.backplane.grpc.HandshakeResponse.getDefaultInstance();
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.HandshakeResponse build() {
io.deephaven.proto.backplane.grpc.HandshakeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.HandshakeResponse buildPartial() {
io.deephaven.proto.backplane.grpc.HandshakeResponse result = new io.deephaven.proto.backplane.grpc.HandshakeResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.deephaven.proto.backplane.grpc.HandshakeResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.metadataHeader_ = metadataHeader_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.sessionToken_ = sessionToken_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.tokenDeadlineTimeMillis_ = tokenDeadlineTimeMillis_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.tokenExpirationDelayMillis_ = tokenExpirationDelayMillis_;
}
}
@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.deephaven.proto.backplane.grpc.HandshakeResponse) {
return mergeFrom((io.deephaven.proto.backplane.grpc.HandshakeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.deephaven.proto.backplane.grpc.HandshakeResponse other) {
if (other == io.deephaven.proto.backplane.grpc.HandshakeResponse.getDefaultInstance()) return this;
if (other.getMetadataHeader() != com.google.protobuf.ByteString.EMPTY) {
setMetadataHeader(other.getMetadataHeader());
}
if (other.getSessionToken() != com.google.protobuf.ByteString.EMPTY) {
setSessionToken(other.getSessionToken());
}
if (other.getTokenDeadlineTimeMillis() != 0L) {
setTokenDeadlineTimeMillis(other.getTokenDeadlineTimeMillis());
}
if (other.getTokenExpirationDelayMillis() != 0L) {
setTokenExpirationDelayMillis(other.getTokenExpirationDelayMillis());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
metadataHeader_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
sessionToken_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
tokenDeadlineTimeMillis_ = input.readSInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
tokenExpirationDelayMillis_ = input.readSInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString metadataHeader_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
* The metadata header to identify the session. This value is static and defined via configuration.
*
*
* bytes metadata_header = 1 [deprecated = true];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.metadata_header is deprecated.
* See deephaven/proto/session.proto;l=138
* @return The metadataHeader.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString getMetadataHeader() {
return metadataHeader_;
}
/**
*
*
* The metadata header to identify the session. This value is static and defined via configuration.
*
*
* bytes metadata_header = 1 [deprecated = true];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.metadata_header is deprecated.
* See deephaven/proto/session.proto;l=138
* @param value The metadataHeader to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setMetadataHeader(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
metadataHeader_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
* The metadata header to identify the session. This value is static and defined via configuration.
*
*
* bytes metadata_header = 1 [deprecated = true];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.metadata_header is deprecated.
* See deephaven/proto/session.proto;l=138
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearMetadataHeader() {
bitField0_ = (bitField0_ & ~0x00000001);
metadataHeader_ = getDefaultInstance().getMetadataHeader();
onChanged();
return this;
}
private com.google.protobuf.ByteString sessionToken_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
* Arbitrary session_token to assign to the value to the provided metadata header.
*
*
* bytes session_token = 2 [deprecated = true];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.session_token is deprecated.
* See deephaven/proto/session.proto;l=143
* @return The sessionToken.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString getSessionToken() {
return sessionToken_;
}
/**
*
*
* Arbitrary session_token to assign to the value to the provided metadata header.
*
*
* bytes session_token = 2 [deprecated = true];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.session_token is deprecated.
* See deephaven/proto/session.proto;l=143
* @param value The sessionToken to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setSessionToken(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
sessionToken_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
* Arbitrary session_token to assign to the value to the provided metadata header.
*
*
* bytes session_token = 2 [deprecated = true];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.session_token is deprecated.
* See deephaven/proto/session.proto;l=143
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearSessionToken() {
bitField0_ = (bitField0_ & ~0x00000002);
sessionToken_ = getDefaultInstance().getSessionToken();
onChanged();
return this;
}
private long tokenDeadlineTimeMillis_ ;
/**
*
*
* When this session_token will be considered invalid by the server.
*
*
* sint64 token_deadline_time_millis = 3 [deprecated = true, jstype = JS_STRING];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.token_deadline_time_millis is deprecated.
* See deephaven/proto/session.proto;l=148
* @return The tokenDeadlineTimeMillis.
*/
@java.lang.Override
@java.lang.Deprecated public long getTokenDeadlineTimeMillis() {
return tokenDeadlineTimeMillis_;
}
/**
*
*
* When this session_token will be considered invalid by the server.
*
*
* sint64 token_deadline_time_millis = 3 [deprecated = true, jstype = JS_STRING];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.token_deadline_time_millis is deprecated.
* See deephaven/proto/session.proto;l=148
* @param value The tokenDeadlineTimeMillis to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setTokenDeadlineTimeMillis(long value) {
tokenDeadlineTimeMillis_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
* When this session_token will be considered invalid by the server.
*
*
* sint64 token_deadline_time_millis = 3 [deprecated = true, jstype = JS_STRING];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.token_deadline_time_millis is deprecated.
* See deephaven/proto/session.proto;l=148
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTokenDeadlineTimeMillis() {
bitField0_ = (bitField0_ & ~0x00000004);
tokenDeadlineTimeMillis_ = 0L;
onChanged();
return this;
}
private long tokenExpirationDelayMillis_ ;
/**
*
*
* The length of time that this token was intended to live. Note that `refreshSessionToken` may return the
* existing token to reduce overhead and to prevent denial-of-service caused by refreshing too frequently.
*
*
* sint64 token_expiration_delay_millis = 4 [deprecated = true, jstype = JS_STRING];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.token_expiration_delay_millis is deprecated.
* See deephaven/proto/session.proto;l=154
* @return The tokenExpirationDelayMillis.
*/
@java.lang.Override
@java.lang.Deprecated public long getTokenExpirationDelayMillis() {
return tokenExpirationDelayMillis_;
}
/**
*
*
* The length of time that this token was intended to live. Note that `refreshSessionToken` may return the
* existing token to reduce overhead and to prevent denial-of-service caused by refreshing too frequently.
*
*
* sint64 token_expiration_delay_millis = 4 [deprecated = true, jstype = JS_STRING];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.token_expiration_delay_millis is deprecated.
* See deephaven/proto/session.proto;l=154
* @param value The tokenExpirationDelayMillis to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setTokenExpirationDelayMillis(long value) {
tokenExpirationDelayMillis_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
* The length of time that this token was intended to live. Note that `refreshSessionToken` may return the
* existing token to reduce overhead and to prevent denial-of-service caused by refreshing too frequently.
*
*
* sint64 token_expiration_delay_millis = 4 [deprecated = true, jstype = JS_STRING];
* @deprecated io.deephaven.proto.backplane.grpc.HandshakeResponse.token_expiration_delay_millis is deprecated.
* See deephaven/proto/session.proto;l=154
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTokenExpirationDelayMillis() {
bitField0_ = (bitField0_ & ~0x00000008);
tokenExpirationDelayMillis_ = 0L;
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:io.deephaven.proto.backplane.grpc.HandshakeResponse)
}
// @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.grpc.HandshakeResponse)
private static final io.deephaven.proto.backplane.grpc.HandshakeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.deephaven.proto.backplane.grpc.HandshakeResponse();
}
public static io.deephaven.proto.backplane.grpc.HandshakeResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HandshakeResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.deephaven.proto.backplane.grpc.HandshakeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}