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 classHandshakerResult.BuilderProtobuf 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 intAPPLICATION_PROTOCOL_FIELD_NUMBERprivate java.lang.ObjectapplicationProtocol_private intbitField0_private static HandshakerResultDEFAULT_INSTANCEstatic intKEEP_CHANNEL_OPEN_FIELD_NUMBERprivate booleankeepChannelOpen_static intKEY_DATA_FIELD_NUMBERprivate com.google.protobuf.ByteStringkeyData_static intLOCAL_IDENTITY_FIELD_NUMBERprivate IdentitylocalIdentity_static intMAX_FRAME_SIZE_FIELD_NUMBERprivate intmaxFrameSize_private bytememoizedIsInitializedprivate static com.google.protobuf.Parser<HandshakerResult>PARSERstatic intPEER_IDENTITY_FIELD_NUMBERstatic intPEER_RPC_VERSIONS_FIELD_NUMBERprivate IdentitypeerIdentity_private RpcProtocolVersionspeerRpcVersions_static intRECORD_PROTOCOL_FIELD_NUMBERprivate java.lang.ObjectrecordProtocol_private static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateHandshakerResult()privateHandshakerResult(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetApplicationProtocol()The application protocol negotiated for this connection.com.google.protobuf.ByteStringgetApplicationProtocolBytes()The application protocol negotiated for this connection.static HandshakerResultgetDefaultInstance()HandshakerResultgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetKeepChannelOpen()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.ByteStringgetKeyData()Cryptographic key data.IdentitygetLocalIdentity()The local identity used in the handshake.IdentityOrBuildergetLocalIdentityOrBuilder()The local identity used in the handshake.intgetMaxFrameSize()The maximum frame size of the peer.com.google.protobuf.Parser<HandshakerResult>getParserForType()IdentitygetPeerIdentity()The authenticated identity of the peer.IdentityOrBuildergetPeerIdentityOrBuilder()The authenticated identity of the peer.RpcProtocolVersionsgetPeerRpcVersions()The RPC protocol versions supported by the peer.RpcProtocolVersionsOrBuildergetPeerRpcVersionsOrBuilder()The RPC protocol versions supported by the peer.java.lang.StringgetRecordProtocol()The record protocol negotiated for this connection.com.google.protobuf.ByteStringgetRecordProtocolBytes()The record protocol negotiated for this connection.intgetSerializedSize()inthashCode()booleanhasLocalIdentity()The local identity used in the handshake.booleanhasPeerIdentity()The authenticated identity of the peer.booleanhasPeerRpcVersions()The RPC protocol versions supported by the peer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static HandshakerResult.BuildernewBuilder()static HandshakerResult.BuildernewBuilder(HandshakerResult prototype)HandshakerResult.BuildernewBuilderForType()protected HandshakerResult.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static HandshakerResultparseDelimitedFrom(java.io.InputStream input)static HandshakerResultparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HandshakerResultparseFrom(byte[] data)static HandshakerResultparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HandshakerResultparseFrom(com.google.protobuf.ByteString data)static HandshakerResultparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HandshakerResultparseFrom(com.google.protobuf.CodedInputStream input)static HandshakerResultparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HandshakerResultparseFrom(java.io.InputStream input)static HandshakerResultparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HandshakerResultparseFrom(java.nio.ByteBuffer data)static HandshakerResultparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<HandshakerResult>parser()HandshakerResult.BuildertoBuilder()voidwriteTo(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getApplicationProtocol
public java.lang.String getApplicationProtocol()
The application protocol negotiated for this connection.
string application_protocol = 1;- Specified by:
getApplicationProtocolin interfaceHandshakerResultOrBuilder- Returns:
- The applicationProtocol.
-
getApplicationProtocolBytes
public com.google.protobuf.ByteString getApplicationProtocolBytes()
The application protocol negotiated for this connection.
string application_protocol = 1;- Specified by:
getApplicationProtocolBytesin 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:
getRecordProtocolin interfaceHandshakerResultOrBuilder- Returns:
- The recordProtocol.
-
getRecordProtocolBytes
public com.google.protobuf.ByteString getRecordProtocolBytes()
The record protocol negotiated for this connection.
string record_protocol = 2;- Specified by:
getRecordProtocolBytesin 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:
getKeyDatain interfaceHandshakerResultOrBuilder- Returns:
- The keyData.
-
hasPeerIdentity
public boolean hasPeerIdentity()
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;- Specified by:
hasPeerIdentityin 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:
getPeerIdentityin interfaceHandshakerResultOrBuilder- Returns:
- The peerIdentity.
-
getPeerIdentityOrBuilder
public IdentityOrBuilder getPeerIdentityOrBuilder()
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;- Specified by:
getPeerIdentityOrBuilderin interfaceHandshakerResultOrBuilder
-
hasLocalIdentity
public boolean hasLocalIdentity()
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;- Specified by:
hasLocalIdentityin 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:
getLocalIdentityin interfaceHandshakerResultOrBuilder- Returns:
- The localIdentity.
-
getLocalIdentityOrBuilder
public IdentityOrBuilder getLocalIdentityOrBuilder()
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;- Specified by:
getLocalIdentityOrBuilderin 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:
getKeepChannelOpenin 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:
hasPeerRpcVersionsin 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:
getPeerRpcVersionsin 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:
getPeerRpcVersionsOrBuilderin interfaceHandshakerResultOrBuilder
-
getMaxFrameSize
public int getMaxFrameSize()
The maximum frame size of the peer.
uint32 max_frame_size = 8;- Specified by:
getMaxFrameSizein interfaceHandshakerResultOrBuilder- Returns:
- The maxFrameSize.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HandshakerResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public HandshakerResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-