Class HandshakerResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HandshakerResult.Builder>
com.google.protobuf.GeneratedMessage.Builder<HandshakerResult.Builder>
io.grpc.alts.internal.HandshakerResult.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HandshakerResultOrBuilder, Cloneable
Enclosing class:
HandshakerResult

public static final class HandshakerResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<HandshakerResult.Builder> implements HandshakerResultOrBuilder
Protobuf type grpc.gcp.HandshakerResult
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • 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.Builder<HandshakerResult.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      public HandshakerResult.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<HandshakerResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<HandshakerResult.Builder>
    • getDefaultInstanceForType

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

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

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

      private void buildPartial0(HandshakerResult result)
    • mergeFrom

      public HandshakerResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HandshakerResult.Builder>
    • mergeFrom

      public HandshakerResult.Builder mergeFrom(HandshakerResult other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<HandshakerResult.Builder>
    • mergeFrom

      public HandshakerResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HandshakerResult.Builder>
      Throws:
      IOException
    • 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.
    • setApplicationProtocol

      public HandshakerResult.Builder setApplicationProtocol(String value)
       The application protocol negotiated for this connection.
       
      string application_protocol = 1;
      Parameters:
      value - The applicationProtocol to set.
      Returns:
      This builder for chaining.
    • clearApplicationProtocol

      public HandshakerResult.Builder clearApplicationProtocol()
       The application protocol negotiated for this connection.
       
      string application_protocol = 1;
      Returns:
      This builder for chaining.
    • setApplicationProtocolBytes

      public HandshakerResult.Builder setApplicationProtocolBytes(com.google.protobuf.ByteString value)
       The application protocol negotiated for this connection.
       
      string application_protocol = 1;
      Parameters:
      value - The bytes for applicationProtocol to set.
      Returns:
      This builder for chaining.
    • 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.
    • setRecordProtocol

      public HandshakerResult.Builder setRecordProtocol(String value)
       The record protocol negotiated for this connection.
       
      string record_protocol = 2;
      Parameters:
      value - The recordProtocol to set.
      Returns:
      This builder for chaining.
    • clearRecordProtocol

      public HandshakerResult.Builder clearRecordProtocol()
       The record protocol negotiated for this connection.
       
      string record_protocol = 2;
      Returns:
      This builder for chaining.
    • setRecordProtocolBytes

      public HandshakerResult.Builder setRecordProtocolBytes(com.google.protobuf.ByteString value)
       The record protocol negotiated for this connection.
       
      string record_protocol = 2;
      Parameters:
      value - The bytes for recordProtocol to set.
      Returns:
      This builder for chaining.
    • 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.
    • setKeyData

      public HandshakerResult.Builder setKeyData(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The keyData to set.
      Returns:
      This builder for chaining.
    • clearKeyData

      public HandshakerResult.Builder clearKeyData()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setPeerIdentity

      public HandshakerResult.Builder setPeerIdentity(Identity value)
       The authenticated identity of the peer.
       
      .grpc.gcp.Identity peer_identity = 4;
    • setPeerIdentity

      public HandshakerResult.Builder setPeerIdentity(Identity.Builder builderForValue)
       The authenticated identity of the peer.
       
      .grpc.gcp.Identity peer_identity = 4;
    • mergePeerIdentity

      public HandshakerResult.Builder mergePeerIdentity(Identity value)
       The authenticated identity of the peer.
       
      .grpc.gcp.Identity peer_identity = 4;
    • clearPeerIdentity

      public HandshakerResult.Builder clearPeerIdentity()
       The authenticated identity of the peer.
       
      .grpc.gcp.Identity peer_identity = 4;
    • getPeerIdentityBuilder

      public Identity.Builder getPeerIdentityBuilder()
       The authenticated identity of the peer.
       
      .grpc.gcp.Identity peer_identity = 4;
    • getPeerIdentityOrBuilder

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

      private com.google.protobuf.SingleFieldBuilder<Identity,Identity.Builder,IdentityOrBuilder> internalGetPeerIdentityFieldBuilder()
       The authenticated identity of the peer.
       
      .grpc.gcp.Identity peer_identity = 4;
    • 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.
    • setLocalIdentity

      public HandshakerResult.Builder setLocalIdentity(Identity value)
       The local identity used in the handshake.
       
      .grpc.gcp.Identity local_identity = 5;
    • setLocalIdentity

      public HandshakerResult.Builder setLocalIdentity(Identity.Builder builderForValue)
       The local identity used in the handshake.
       
      .grpc.gcp.Identity local_identity = 5;
    • mergeLocalIdentity

      public HandshakerResult.Builder mergeLocalIdentity(Identity value)
       The local identity used in the handshake.
       
      .grpc.gcp.Identity local_identity = 5;
    • clearLocalIdentity

      public HandshakerResult.Builder clearLocalIdentity()
       The local identity used in the handshake.
       
      .grpc.gcp.Identity local_identity = 5;
    • getLocalIdentityBuilder

      public Identity.Builder getLocalIdentityBuilder()
       The local identity used in the handshake.
       
      .grpc.gcp.Identity local_identity = 5;
    • getLocalIdentityOrBuilder

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

      private com.google.protobuf.SingleFieldBuilder<Identity,Identity.Builder,IdentityOrBuilder> internalGetLocalIdentityFieldBuilder()
       The local identity used in the handshake.
       
      .grpc.gcp.Identity local_identity = 5;
    • 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.
    • setKeepChannelOpen

      public HandshakerResult.Builder setKeepChannelOpen(boolean value)
       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;
      Parameters:
      value - The keepChannelOpen to set.
      Returns:
      This builder for chaining.
    • clearKeepChannelOpen

      public HandshakerResult.Builder clearKeepChannelOpen()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setPeerRpcVersions

      public HandshakerResult.Builder setPeerRpcVersions(RpcProtocolVersions value)
       The RPC protocol versions supported by the peer.
       
      .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
    • setPeerRpcVersions

      public HandshakerResult.Builder setPeerRpcVersions(RpcProtocolVersions.Builder builderForValue)
       The RPC protocol versions supported by the peer.
       
      .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
    • mergePeerRpcVersions

      public HandshakerResult.Builder mergePeerRpcVersions(RpcProtocolVersions value)
       The RPC protocol versions supported by the peer.
       
      .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
    • clearPeerRpcVersions

      public HandshakerResult.Builder clearPeerRpcVersions()
       The RPC protocol versions supported by the peer.
       
      .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
    • getPeerRpcVersionsBuilder

      public RpcProtocolVersions.Builder getPeerRpcVersionsBuilder()
       The RPC protocol versions supported by the peer.
       
      .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
    • 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
    • internalGetPeerRpcVersionsFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions,RpcProtocolVersions.Builder,RpcProtocolVersionsOrBuilder> internalGetPeerRpcVersionsFieldBuilder()
       The RPC protocol versions supported by the peer.
       
      .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
    • 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.
    • setMaxFrameSize

      public HandshakerResult.Builder setMaxFrameSize(int value)
       The maximum frame size of the peer.
       
      uint32 max_frame_size = 8;
      Parameters:
      value - The maxFrameSize to set.
      Returns:
      This builder for chaining.
    • clearMaxFrameSize

      public HandshakerResult.Builder clearMaxFrameSize()
       The maximum frame size of the peer.
       
      uint32 max_frame_size = 8;
      Returns:
      This builder for chaining.