Class HandshakerResult.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HandshakerResultOrBuilder, java.lang.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
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • 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.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
      • 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>
      • 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 java.io.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:
        java.io.IOException
      • 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.
      • setApplicationProtocol

        public HandshakerResult.Builder setApplicationProtocol​(java.lang.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 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.
      • setRecordProtocol

        public HandshakerResult.Builder setRecordProtocol​(java.lang.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.
      • setPeerIdentity

        public HandshakerResult.Builder setPeerIdentity​(Identity value)
         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;
      • getPeerIdentityFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<Identity,​Identity.Builder,​IdentityOrBuilder> getPeerIdentityFieldBuilder()
         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.
      • setLocalIdentity

        public HandshakerResult.Builder setLocalIdentity​(Identity value)
         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;
      • getLocalIdentityFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<Identity,​Identity.Builder,​IdentityOrBuilder> getLocalIdentityFieldBuilder()
         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.
      • 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;
      • 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.