Class 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 type grpc.gcp.HandshakerResult
    See Also:
    Serialized Form
    • Field Detail

      • 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_
      • 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
      • 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
      • PARSER

        private static final com.google.protobuf.Parser<HandshakerResult> PARSER
    • Constructor Detail

      • HandshakerResult

        private HandshakerResult​(com.google.protobuf.GeneratedMessage.Builder<?> builder)
      • HandshakerResult

        private HandshakerResult()
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • getApplicationProtocol

        public java.lang.String getApplicationProtocol()
         The application protocol negotiated for this connection.
         
        string application_protocol = 1;
        Specified by:
        getApplicationProtocol in interface HandshakerResultOrBuilder
        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 interface HandshakerResultOrBuilder
        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 interface HandshakerResultOrBuilder
        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 interface HandshakerResultOrBuilder
        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 interface HandshakerResultOrBuilder
        Returns:
        The keyData.
      • hasPeerIdentity

        public boolean hasPeerIdentity()
         The authenticated identity of the peer.
         
        .grpc.gcp.Identity peer_identity = 4;
        Specified by:
        hasPeerIdentity in interface HandshakerResultOrBuilder
        Returns:
        Whether the peerIdentity field is set.
      • hasLocalIdentity

        public boolean hasLocalIdentity()
         The local identity used in the handshake.
         
        .grpc.gcp.Identity local_identity = 5;
        Specified by:
        hasLocalIdentity in interface HandshakerResultOrBuilder
        Returns:
        Whether the localIdentity field is set.
      • 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 interface HandshakerResultOrBuilder
        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 interface HandshakerResultOrBuilder
        Returns:
        Whether the peerRpcVersions field is set.
      • getMaxFrameSize

        public int getMaxFrameSize()
         The maximum frame size of the peer.
         
        uint32 max_frame_size = 8;
        Specified by:
        getMaxFrameSize in interface HandshakerResultOrBuilder
        Returns:
        The maxFrameSize.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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 interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public HandshakerResult.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected HandshakerResult.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getParserForType

        public com.google.protobuf.Parser<HandshakerResult> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

        public HandshakerResult getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder