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
,Serializable
public final class HandshakerResult
extends com.google.protobuf.GeneratedMessage
implements HandshakerResultOrBuilder
Protobuf type
grpc.gcp.HandshakerResult
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
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>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private Object
private int
private static final HandshakerResult
static final int
private boolean
static final int
private com.google.protobuf.ByteString
static final int
private Identity
static final int
private int
private byte
private static final com.google.protobuf.Parser
<HandshakerResult> static final int
static final int
private Identity
private RpcProtocolVersions
static final int
private Object
private static final long
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
private
HandshakerResult
(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
The application protocol negotiated for this connection.com.google.protobuf.ByteString
The application protocol negotiated for this connection.static HandshakerResult
static final com.google.protobuf.Descriptors.Descriptor
boolean
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
Cryptographic key data.The local identity used in the handshake.The local identity used in the handshake.int
The maximum frame size of the peer.com.google.protobuf.Parser
<HandshakerResult> The authenticated identity of the peer.The authenticated identity of the peer.The RPC protocol versions supported by the peer.The RPC protocol versions supported by the peer.The record protocol negotiated for this connection.com.google.protobuf.ByteString
The record protocol negotiated for this connection.int
int
hashCode()
boolean
The local identity used in the handshake.boolean
The authenticated identity of the peer.boolean
The RPC protocol versions supported by the peer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
static HandshakerResult.Builder
static HandshakerResult.Builder
newBuilder
(HandshakerResult prototype) protected HandshakerResult.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static HandshakerResult
parseDelimitedFrom
(InputStream input) static HandshakerResult
parseDelimitedFrom
(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
(InputStream input) static HandshakerResult
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HandshakerResult
parseFrom
(ByteBuffer data) static HandshakerResult
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<HandshakerResult> parser()
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
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
APPLICATION_PROTOCOL_FIELD_NUMBER
public static final int APPLICATION_PROTOCOL_FIELD_NUMBER- See Also:
-
applicationProtocol_
-
RECORD_PROTOCOL_FIELD_NUMBER
public static final int RECORD_PROTOCOL_FIELD_NUMBER- See Also:
-
recordProtocol_
-
KEY_DATA_FIELD_NUMBER
public static final int KEY_DATA_FIELD_NUMBER- See Also:
-
keyData_
private com.google.protobuf.ByteString keyData_ -
PEER_IDENTITY_FIELD_NUMBER
public static final int PEER_IDENTITY_FIELD_NUMBER- See Also:
-
peerIdentity_
-
LOCAL_IDENTITY_FIELD_NUMBER
public static final int LOCAL_IDENTITY_FIELD_NUMBER- See Also:
-
localIdentity_
-
KEEP_CHANNEL_OPEN_FIELD_NUMBER
public static final int KEEP_CHANNEL_OPEN_FIELD_NUMBER- See Also:
-
keepChannelOpen_
private boolean keepChannelOpen_ -
PEER_RPC_VERSIONS_FIELD_NUMBER
public static final int PEER_RPC_VERSIONS_FIELD_NUMBER- See Also:
-
peerRpcVersions_
-
MAX_FRAME_SIZE_FIELD_NUMBER
public static final int MAX_FRAME_SIZE_FIELD_NUMBER- See Also:
-
maxFrameSize_
private int maxFrameSize_ -
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
HandshakerResult
private HandshakerResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
HandshakerResult
private HandshakerResult()
-
-
Method Details
-
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
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
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
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
- Specified by:
getPeerIdentity
in interfaceHandshakerResultOrBuilder
- Returns:
- The peerIdentity.
-
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
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
- Specified by:
getLocalIdentity
in interfaceHandshakerResultOrBuilder
- Returns:
- The localIdentity.
-
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
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
- Specified by:
getPeerRpcVersions
in interfaceHandshakerResultOrBuilder
- Returns:
- The peerRpcVersions.
-
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
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- 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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HandshakerResult parseFrom(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
- Throws:
IOException
-
parseFrom
public static HandshakerResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static HandshakerResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static HandshakerResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static HandshakerResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
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
-
parser
-
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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-