Package io.grpc.alts.internal
Class HandshakerResult
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.grpc.alts.internal.HandshakerResult
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,HandshakerResultOrBuilder
,java.io.Serializable
public final class HandshakerResult extends com.google.protobuf.GeneratedMessage implements HandshakerResultOrBuilder
Protobuf typegrpc.gcp.HandshakerResult
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HandshakerResult.Builder
Protobuf typegrpc.gcp.HandshakerResult
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
APPLICATION_PROTOCOL_FIELD_NUMBER
private java.lang.Object
applicationProtocol_
private int
bitField0_
private static HandshakerResult
DEFAULT_INSTANCE
static int
KEEP_CHANNEL_OPEN_FIELD_NUMBER
private boolean
keepChannelOpen_
static int
KEY_DATA_FIELD_NUMBER
private com.google.protobuf.ByteString
keyData_
static int
LOCAL_IDENTITY_FIELD_NUMBER
private Identity
localIdentity_
static int
MAX_FRAME_SIZE_FIELD_NUMBER
private int
maxFrameSize_
private byte
memoizedIsInitialized
private static com.google.protobuf.Parser<HandshakerResult>
PARSER
static int
PEER_IDENTITY_FIELD_NUMBER
static int
PEER_RPC_VERSIONS_FIELD_NUMBER
private Identity
peerIdentity_
private RpcProtocolVersions
peerRpcVersions_
static int
RECORD_PROTOCOL_FIELD_NUMBER
private java.lang.Object
recordProtocol_
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
HandshakerResult()
private
HandshakerResult(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getApplicationProtocol()
The application protocol negotiated for this connection.com.google.protobuf.ByteString
getApplicationProtocolBytes()
The application protocol negotiated for this connection.static HandshakerResult
getDefaultInstance()
HandshakerResult
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
boolean
getKeepChannelOpen()
Indicate whether the handshaker service client should keep the channel between the handshaker service open, e.g., in order to handle post-handshake messages in the future.com.google.protobuf.ByteString
getKeyData()
Cryptographic key data.Identity
getLocalIdentity()
The local identity used in the handshake.IdentityOrBuilder
getLocalIdentityOrBuilder()
The local identity used in the handshake.int
getMaxFrameSize()
The maximum frame size of the peer.com.google.protobuf.Parser<HandshakerResult>
getParserForType()
Identity
getPeerIdentity()
The authenticated identity of the peer.IdentityOrBuilder
getPeerIdentityOrBuilder()
The authenticated identity of the peer.RpcProtocolVersions
getPeerRpcVersions()
The RPC protocol versions supported by the peer.RpcProtocolVersionsOrBuilder
getPeerRpcVersionsOrBuilder()
The RPC protocol versions supported by the peer.java.lang.String
getRecordProtocol()
The record protocol negotiated for this connection.com.google.protobuf.ByteString
getRecordProtocolBytes()
The record protocol negotiated for this connection.int
getSerializedSize()
int
hashCode()
boolean
hasLocalIdentity()
The local identity used in the handshake.boolean
hasPeerIdentity()
The authenticated identity of the peer.boolean
hasPeerRpcVersions()
The RPC protocol versions supported by the peer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static HandshakerResult.Builder
newBuilder()
static HandshakerResult.Builder
newBuilder(HandshakerResult prototype)
HandshakerResult.Builder
newBuilderForType()
protected HandshakerResult.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static HandshakerResult
parseDelimitedFrom(java.io.InputStream input)
static HandshakerResult
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HandshakerResult
parseFrom(byte[] data)
static HandshakerResult
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HandshakerResult
parseFrom(com.google.protobuf.ByteString data)
static HandshakerResult
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HandshakerResult
parseFrom(com.google.protobuf.CodedInputStream input)
static HandshakerResult
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HandshakerResult
parseFrom(java.io.InputStream input)
static HandshakerResult
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HandshakerResult
parseFrom(java.nio.ByteBuffer data)
static HandshakerResult
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<HandshakerResult>
parser()
HandshakerResult.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
APPLICATION_PROTOCOL_FIELD_NUMBER
public static final int APPLICATION_PROTOCOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
applicationProtocol_
private volatile java.lang.Object applicationProtocol_
-
RECORD_PROTOCOL_FIELD_NUMBER
public static final int RECORD_PROTOCOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
recordProtocol_
private volatile java.lang.Object recordProtocol_
-
KEY_DATA_FIELD_NUMBER
public static final int KEY_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
keyData_
private com.google.protobuf.ByteString keyData_
-
PEER_IDENTITY_FIELD_NUMBER
public static final int PEER_IDENTITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
peerIdentity_
private Identity peerIdentity_
-
LOCAL_IDENTITY_FIELD_NUMBER
public static final int LOCAL_IDENTITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
localIdentity_
private Identity localIdentity_
-
KEEP_CHANNEL_OPEN_FIELD_NUMBER
public static final int KEEP_CHANNEL_OPEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
keepChannelOpen_
private boolean keepChannelOpen_
-
PEER_RPC_VERSIONS_FIELD_NUMBER
public static final int PEER_RPC_VERSIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
peerRpcVersions_
private RpcProtocolVersions peerRpcVersions_
-
MAX_FRAME_SIZE_FIELD_NUMBER
public static final int MAX_FRAME_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maxFrameSize_
private int maxFrameSize_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final HandshakerResult DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<HandshakerResult> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getApplicationProtocol
public java.lang.String getApplicationProtocol()
The application protocol negotiated for this connection.
string application_protocol = 1;
- Specified by:
getApplicationProtocol
in interfaceHandshakerResultOrBuilder
- Returns:
- The applicationProtocol.
-
getApplicationProtocolBytes
public com.google.protobuf.ByteString getApplicationProtocolBytes()
The application protocol negotiated for this connection.
string application_protocol = 1;
- Specified by:
getApplicationProtocolBytes
in interfaceHandshakerResultOrBuilder
- Returns:
- The bytes for applicationProtocol.
-
getRecordProtocol
public java.lang.String getRecordProtocol()
The record protocol negotiated for this connection.
string record_protocol = 2;
- Specified by:
getRecordProtocol
in interfaceHandshakerResultOrBuilder
- Returns:
- The recordProtocol.
-
getRecordProtocolBytes
public com.google.protobuf.ByteString getRecordProtocolBytes()
The record protocol negotiated for this connection.
string record_protocol = 2;
- Specified by:
getRecordProtocolBytes
in interfaceHandshakerResultOrBuilder
- Returns:
- The bytes for recordProtocol.
-
getKeyData
public com.google.protobuf.ByteString getKeyData()
Cryptographic key data. The key data may be more than the key length required for the record protocol, thus the client of the handshaker service needs to truncate the key data into the right key length.
bytes key_data = 3;
- Specified by:
getKeyData
in interfaceHandshakerResultOrBuilder
- Returns:
- The keyData.
-
hasPeerIdentity
public boolean hasPeerIdentity()
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
- Specified by:
hasPeerIdentity
in interfaceHandshakerResultOrBuilder
- Returns:
- Whether the peerIdentity field is set.
-
getPeerIdentity
public Identity getPeerIdentity()
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
- Specified by:
getPeerIdentity
in interfaceHandshakerResultOrBuilder
- Returns:
- The peerIdentity.
-
getPeerIdentityOrBuilder
public IdentityOrBuilder getPeerIdentityOrBuilder()
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
- Specified by:
getPeerIdentityOrBuilder
in interfaceHandshakerResultOrBuilder
-
hasLocalIdentity
public boolean hasLocalIdentity()
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
- Specified by:
hasLocalIdentity
in interfaceHandshakerResultOrBuilder
- Returns:
- Whether the localIdentity field is set.
-
getLocalIdentity
public Identity getLocalIdentity()
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
- Specified by:
getLocalIdentity
in interfaceHandshakerResultOrBuilder
- Returns:
- The localIdentity.
-
getLocalIdentityOrBuilder
public IdentityOrBuilder getLocalIdentityOrBuilder()
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
- Specified by:
getLocalIdentityOrBuilder
in interfaceHandshakerResultOrBuilder
-
getKeepChannelOpen
public boolean getKeepChannelOpen()
Indicate whether the handshaker service client should keep the channel between the handshaker service open, e.g., in order to handle post-handshake messages in the future.
bool keep_channel_open = 6;
- Specified by:
getKeepChannelOpen
in interfaceHandshakerResultOrBuilder
- Returns:
- The keepChannelOpen.
-
hasPeerRpcVersions
public boolean hasPeerRpcVersions()
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
- Specified by:
hasPeerRpcVersions
in interfaceHandshakerResultOrBuilder
- Returns:
- Whether the peerRpcVersions field is set.
-
getPeerRpcVersions
public RpcProtocolVersions getPeerRpcVersions()
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
- Specified by:
getPeerRpcVersions
in interfaceHandshakerResultOrBuilder
- Returns:
- The peerRpcVersions.
-
getPeerRpcVersionsOrBuilder
public RpcProtocolVersionsOrBuilder getPeerRpcVersionsOrBuilder()
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
- Specified by:
getPeerRpcVersionsOrBuilder
in interfaceHandshakerResultOrBuilder
-
getMaxFrameSize
public int getMaxFrameSize()
The maximum frame size of the peer.
uint32 max_frame_size = 8;
- Specified by:
getMaxFrameSize
in interfaceHandshakerResultOrBuilder
- Returns:
- The maxFrameSize.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HandshakerResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HandshakerResult parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HandshakerResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HandshakerResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HandshakerResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HandshakerResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HandshakerResult parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static HandshakerResult parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static HandshakerResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static HandshakerResult parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static HandshakerResult parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static HandshakerResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public HandshakerResult.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HandshakerResult.Builder newBuilder()
-
newBuilder
public static HandshakerResult.Builder newBuilder(HandshakerResult prototype)
-
toBuilder
public HandshakerResult.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HandshakerResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static HandshakerResult getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HandshakerResult> parser()
-
getParserForType
public com.google.protobuf.Parser<HandshakerResult> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public HandshakerResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-