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

java.io.deephaven.proto.backplane.grpc.HandshakeRequest Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
// 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;

/**
 * 
 *
 * The request that a client provides to a server on handshake.
 * 
* * Protobuf type {@code io.deephaven.proto.backplane.grpc.HandshakeRequest} */ public final class HandshakeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.grpc.HandshakeRequest) HandshakeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use HandshakeRequest.newBuilder() to construct. private HandshakeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HandshakeRequest() { payload_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HandshakeRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_HandshakeRequest_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_HandshakeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.deephaven.proto.backplane.grpc.HandshakeRequest.class, io.deephaven.proto.backplane.grpc.HandshakeRequest.Builder.class); } public static final int AUTH_PROTOCOL_FIELD_NUMBER = 1; private int authProtocol_ = 0; /** *
   *
   * A defined protocol version.
   *
   * Deephaven's OSS protocols are as follows:
   * - protocol = 0: most recent HandshakeResponse payload
   * - protocol = 1: payload is BasicAuth
   * 
* * sint32 auth_protocol = 1 [deprecated = true]; * @deprecated io.deephaven.proto.backplane.grpc.HandshakeRequest.auth_protocol is deprecated. * See deephaven/proto/session.proto;l=120 * @return The authProtocol. */ @java.lang.Override @java.lang.Deprecated public int getAuthProtocol() { return authProtocol_; } public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** *
   *
   * Arbitrary auth/handshake info.
   * 
* * bytes payload = 2 [deprecated = true]; * @deprecated io.deephaven.proto.backplane.grpc.HandshakeRequest.payload is deprecated. * See deephaven/proto/session.proto;l=125 * @return The payload. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getPayload() { return payload_; } 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 (authProtocol_ != 0) { output.writeSInt32(1, authProtocol_); } if (!payload_.isEmpty()) { output.writeBytes(2, payload_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (authProtocol_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(1, authProtocol_); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, payload_); } 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.HandshakeRequest)) { return super.equals(obj); } io.deephaven.proto.backplane.grpc.HandshakeRequest other = (io.deephaven.proto.backplane.grpc.HandshakeRequest) obj; if (getAuthProtocol() != other.getAuthProtocol()) return false; if (!getPayload() .equals(other.getPayload())) 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) + AUTH_PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getAuthProtocol(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.deephaven.proto.backplane.grpc.HandshakeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.deephaven.proto.backplane.grpc.HandshakeRequest 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.HandshakeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.deephaven.proto.backplane.grpc.HandshakeRequest 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.HandshakeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.deephaven.proto.backplane.grpc.HandshakeRequest 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.HandshakeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.deephaven.proto.backplane.grpc.HandshakeRequest 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.HandshakeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.deephaven.proto.backplane.grpc.HandshakeRequest 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.HandshakeRequest 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.HandshakeRequest 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.HandshakeRequest 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; } /** *
   *
   * The request that a client provides to a server on handshake.
   * 
* * Protobuf type {@code io.deephaven.proto.backplane.grpc.HandshakeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.grpc.HandshakeRequest) io.deephaven.proto.backplane.grpc.HandshakeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.deephaven.proto.backplane.grpc.Session.internal_static_io_deephaven_proto_backplane_grpc_HandshakeRequest_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_HandshakeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.deephaven.proto.backplane.grpc.HandshakeRequest.class, io.deephaven.proto.backplane.grpc.HandshakeRequest.Builder.class); } // Construct using io.deephaven.proto.backplane.grpc.HandshakeRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; authProtocol_ = 0; payload_ = com.google.protobuf.ByteString.EMPTY; 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_HandshakeRequest_descriptor; } @java.lang.Override public io.deephaven.proto.backplane.grpc.HandshakeRequest getDefaultInstanceForType() { return io.deephaven.proto.backplane.grpc.HandshakeRequest.getDefaultInstance(); } @java.lang.Override public io.deephaven.proto.backplane.grpc.HandshakeRequest build() { io.deephaven.proto.backplane.grpc.HandshakeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.deephaven.proto.backplane.grpc.HandshakeRequest buildPartial() { io.deephaven.proto.backplane.grpc.HandshakeRequest result = new io.deephaven.proto.backplane.grpc.HandshakeRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.deephaven.proto.backplane.grpc.HandshakeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.authProtocol_ = authProtocol_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.payload_ = payload_; } } @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.HandshakeRequest) { return mergeFrom((io.deephaven.proto.backplane.grpc.HandshakeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.deephaven.proto.backplane.grpc.HandshakeRequest other) { if (other == io.deephaven.proto.backplane.grpc.HandshakeRequest.getDefaultInstance()) return this; if (other.getAuthProtocol() != 0) { setAuthProtocol(other.getAuthProtocol()); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } 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 8: { authProtocol_ = input.readSInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { payload_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 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 int authProtocol_ ; /** *
     *
     * A defined protocol version.
     *
     * Deephaven's OSS protocols are as follows:
     * - protocol = 0: most recent HandshakeResponse payload
     * - protocol = 1: payload is BasicAuth
     * 
* * sint32 auth_protocol = 1 [deprecated = true]; * @deprecated io.deephaven.proto.backplane.grpc.HandshakeRequest.auth_protocol is deprecated. * See deephaven/proto/session.proto;l=120 * @return The authProtocol. */ @java.lang.Override @java.lang.Deprecated public int getAuthProtocol() { return authProtocol_; } /** *
     *
     * A defined protocol version.
     *
     * Deephaven's OSS protocols are as follows:
     * - protocol = 0: most recent HandshakeResponse payload
     * - protocol = 1: payload is BasicAuth
     * 
* * sint32 auth_protocol = 1 [deprecated = true]; * @deprecated io.deephaven.proto.backplane.grpc.HandshakeRequest.auth_protocol is deprecated. * See deephaven/proto/session.proto;l=120 * @param value The authProtocol to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setAuthProtocol(int value) { authProtocol_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *
     * A defined protocol version.
     *
     * Deephaven's OSS protocols are as follows:
     * - protocol = 0: most recent HandshakeResponse payload
     * - protocol = 1: payload is BasicAuth
     * 
* * sint32 auth_protocol = 1 [deprecated = true]; * @deprecated io.deephaven.proto.backplane.grpc.HandshakeRequest.auth_protocol is deprecated. * See deephaven/proto/session.proto;l=120 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearAuthProtocol() { bitField0_ = (bitField0_ & ~0x00000001); authProtocol_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** *
     *
     * Arbitrary auth/handshake info.
     * 
* * bytes payload = 2 [deprecated = true]; * @deprecated io.deephaven.proto.backplane.grpc.HandshakeRequest.payload is deprecated. * See deephaven/proto/session.proto;l=125 * @return The payload. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
     *
     * Arbitrary auth/handshake info.
     * 
* * bytes payload = 2 [deprecated = true]; * @deprecated io.deephaven.proto.backplane.grpc.HandshakeRequest.payload is deprecated. * See deephaven/proto/session.proto;l=125 * @param value The payload to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *
     * Arbitrary auth/handshake info.
     * 
* * bytes payload = 2 [deprecated = true]; * @deprecated io.deephaven.proto.backplane.grpc.HandshakeRequest.payload is deprecated. * See deephaven/proto/session.proto;l=125 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000002); payload_ = getDefaultInstance().getPayload(); 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.HandshakeRequest) } // @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.grpc.HandshakeRequest) private static final io.deephaven.proto.backplane.grpc.HandshakeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.deephaven.proto.backplane.grpc.HandshakeRequest(); } public static io.deephaven.proto.backplane.grpc.HandshakeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HandshakeRequest 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.HandshakeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy