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

      private volatile Object applicationProtocol_
    • RECORD_PROTOCOL_FIELD_NUMBER

      public static final int RECORD_PROTOCOL_FIELD_NUMBER
      See Also:
    • recordProtocol_

      private volatile Object 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_

      private Identity peerIdentity_
    • LOCAL_IDENTITY_FIELD_NUMBER

      public static final int LOCAL_IDENTITY_FIELD_NUMBER
      See Also:
    • localIdentity_

      private Identity 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_

      private RpcProtocolVersions 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

      private static final HandshakerResult DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<HandshakerResult> 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 class com.google.protobuf.GeneratedMessage
    • getApplicationProtocol

      public 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 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.
    • getPeerIdentity

      public Identity getPeerIdentity()
       The authenticated identity of the peer.
       
      .grpc.gcp.Identity peer_identity = 4;
      Specified by:
      getPeerIdentity in interface HandshakerResultOrBuilder
      Returns:
      The peerIdentity.
    • getPeerIdentityOrBuilder

      public IdentityOrBuilder getPeerIdentityOrBuilder()
       The authenticated identity of the peer.
       
      .grpc.gcp.Identity peer_identity = 4;
      Specified by:
      getPeerIdentityOrBuilder in interface HandshakerResultOrBuilder
    • 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.
    • getLocalIdentity

      public Identity getLocalIdentity()
       The local identity used in the handshake.
       
      .grpc.gcp.Identity local_identity = 5;
      Specified by:
      getLocalIdentity in interface HandshakerResultOrBuilder
      Returns:
      The localIdentity.
    • getLocalIdentityOrBuilder

      public IdentityOrBuilder getLocalIdentityOrBuilder()
       The local identity used in the handshake.
       
      .grpc.gcp.Identity local_identity = 5;
      Specified by:
      getLocalIdentityOrBuilder in interface HandshakerResultOrBuilder
    • 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.
    • getPeerRpcVersions

      public RpcProtocolVersions getPeerRpcVersions()
       The RPC protocol versions supported by the peer.
       
      .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
      Specified by:
      getPeerRpcVersions in interface HandshakerResultOrBuilder
      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 interface HandshakerResultOrBuilder
    • 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 IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      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(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(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

      public static HandshakerResult parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HandshakerResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HandshakerResult parseDelimitedFrom(InputStream input) throws IOException
      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

      public HandshakerResult.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.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 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
    • 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 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