Class AltsContext.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AltsContextOrBuilder, java.lang.Cloneable
    Enclosing class:
    AltsContext

    public static final class AltsContext.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
    implements AltsContextOrBuilder
    Protobuf type grpc.gcp.AltsContext
    • Field Detail

      • bitField0_

        private int bitField0_
      • applicationProtocol_

        private java.lang.Object applicationProtocol_
      • recordProtocol_

        private java.lang.Object recordProtocol_
      • securityLevel_

        private int securityLevel_
      • peerServiceAccount_

        private java.lang.Object peerServiceAccount_
      • localServiceAccount_

        private java.lang.Object localServiceAccount_
      • peerAttributes_

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> peerAttributes_
    • 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()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public AltsContext.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<AltsContext.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<AltsContext.Builder>
      • getDefaultInstanceForType

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

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

        public AltsContext 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​(AltsContext result)
      • mergeFrom

        public AltsContext.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<AltsContext.Builder>
      • isInitialized

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

        public AltsContext.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<AltsContext.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 AltsContextOrBuilder
        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 AltsContextOrBuilder
        Returns:
        The bytes for applicationProtocol.
      • setApplicationProtocol

        public AltsContext.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 AltsContext.Builder clearApplicationProtocol()
         The application protocol negotiated for this connection.
         
        string application_protocol = 1;
        Returns:
        This builder for chaining.
      • setApplicationProtocolBytes

        public AltsContext.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 AltsContextOrBuilder
        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 AltsContextOrBuilder
        Returns:
        The bytes for recordProtocol.
      • setRecordProtocol

        public AltsContext.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 AltsContext.Builder clearRecordProtocol()
         The record protocol negotiated for this connection.
         
        string record_protocol = 2;
        Returns:
        This builder for chaining.
      • setRecordProtocolBytes

        public AltsContext.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.
      • getSecurityLevelValue

        public int getSecurityLevelValue()
         The security level of the created secure channel.
         
        .grpc.gcp.SecurityLevel security_level = 3;
        Specified by:
        getSecurityLevelValue in interface AltsContextOrBuilder
        Returns:
        The enum numeric value on the wire for securityLevel.
      • setSecurityLevelValue

        public AltsContext.Builder setSecurityLevelValue​(int value)
         The security level of the created secure channel.
         
        .grpc.gcp.SecurityLevel security_level = 3;
        Parameters:
        value - The enum numeric value on the wire for securityLevel to set.
        Returns:
        This builder for chaining.
      • getSecurityLevel

        public SecurityLevel getSecurityLevel()
         The security level of the created secure channel.
         
        .grpc.gcp.SecurityLevel security_level = 3;
        Specified by:
        getSecurityLevel in interface AltsContextOrBuilder
        Returns:
        The securityLevel.
      • setSecurityLevel

        public AltsContext.Builder setSecurityLevel​(SecurityLevel value)
         The security level of the created secure channel.
         
        .grpc.gcp.SecurityLevel security_level = 3;
        Parameters:
        value - The securityLevel to set.
        Returns:
        This builder for chaining.
      • clearSecurityLevel

        public AltsContext.Builder clearSecurityLevel()
         The security level of the created secure channel.
         
        .grpc.gcp.SecurityLevel security_level = 3;
        Returns:
        This builder for chaining.
      • getPeerServiceAccount

        public java.lang.String getPeerServiceAccount()
         The peer service account.
         
        string peer_service_account = 4;
        Specified by:
        getPeerServiceAccount in interface AltsContextOrBuilder
        Returns:
        The peerServiceAccount.
      • getPeerServiceAccountBytes

        public com.google.protobuf.ByteString getPeerServiceAccountBytes()
         The peer service account.
         
        string peer_service_account = 4;
        Specified by:
        getPeerServiceAccountBytes in interface AltsContextOrBuilder
        Returns:
        The bytes for peerServiceAccount.
      • setPeerServiceAccount

        public AltsContext.Builder setPeerServiceAccount​(java.lang.String value)
         The peer service account.
         
        string peer_service_account = 4;
        Parameters:
        value - The peerServiceAccount to set.
        Returns:
        This builder for chaining.
      • clearPeerServiceAccount

        public AltsContext.Builder clearPeerServiceAccount()
         The peer service account.
         
        string peer_service_account = 4;
        Returns:
        This builder for chaining.
      • setPeerServiceAccountBytes

        public AltsContext.Builder setPeerServiceAccountBytes​(com.google.protobuf.ByteString value)
         The peer service account.
         
        string peer_service_account = 4;
        Parameters:
        value - The bytes for peerServiceAccount to set.
        Returns:
        This builder for chaining.
      • getLocalServiceAccount

        public java.lang.String getLocalServiceAccount()
         The local service account.
         
        string local_service_account = 5;
        Specified by:
        getLocalServiceAccount in interface AltsContextOrBuilder
        Returns:
        The localServiceAccount.
      • getLocalServiceAccountBytes

        public com.google.protobuf.ByteString getLocalServiceAccountBytes()
         The local service account.
         
        string local_service_account = 5;
        Specified by:
        getLocalServiceAccountBytes in interface AltsContextOrBuilder
        Returns:
        The bytes for localServiceAccount.
      • setLocalServiceAccount

        public AltsContext.Builder setLocalServiceAccount​(java.lang.String value)
         The local service account.
         
        string local_service_account = 5;
        Parameters:
        value - The localServiceAccount to set.
        Returns:
        This builder for chaining.
      • clearLocalServiceAccount

        public AltsContext.Builder clearLocalServiceAccount()
         The local service account.
         
        string local_service_account = 5;
        Returns:
        This builder for chaining.
      • setLocalServiceAccountBytes

        public AltsContext.Builder setLocalServiceAccountBytes​(com.google.protobuf.ByteString value)
         The local service account.
         
        string local_service_account = 5;
        Parameters:
        value - The bytes for localServiceAccount to set.
        Returns:
        This builder for chaining.
      • hasPeerRpcVersions

        public boolean hasPeerRpcVersions()
         The RPC protocol versions supported by the peer.
         
        .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6;
        Specified by:
        hasPeerRpcVersions in interface AltsContextOrBuilder
        Returns:
        Whether the peerRpcVersions field is set.
      • setPeerRpcVersions

        public AltsContext.Builder setPeerRpcVersions​(RpcProtocolVersions value)
         The RPC protocol versions supported by the peer.
         
        .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6;
      • mergePeerRpcVersions

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

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

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

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetPeerAttributes()
      • internalGetMutablePeerAttributes

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetMutablePeerAttributes()
      • containsPeerAttributes

        public boolean containsPeerAttributes​(java.lang.String key)
         Additional attributes of the peer.
         
        map<string, string> peer_attributes = 7;
        Specified by:
        containsPeerAttributes in interface AltsContextOrBuilder
      • getPeerAttributesMap

        public java.util.Map<java.lang.String,​java.lang.String> getPeerAttributesMap()
         Additional attributes of the peer.
         
        map<string, string> peer_attributes = 7;
        Specified by:
        getPeerAttributesMap in interface AltsContextOrBuilder
      • getPeerAttributesOrDefault

        public java.lang.String getPeerAttributesOrDefault​(java.lang.String key,
                                                           java.lang.String defaultValue)
         Additional attributes of the peer.
         
        map<string, string> peer_attributes = 7;
        Specified by:
        getPeerAttributesOrDefault in interface AltsContextOrBuilder
      • getPeerAttributesOrThrow

        public java.lang.String getPeerAttributesOrThrow​(java.lang.String key)
         Additional attributes of the peer.
         
        map<string, string> peer_attributes = 7;
        Specified by:
        getPeerAttributesOrThrow in interface AltsContextOrBuilder
      • removePeerAttributes

        public AltsContext.Builder removePeerAttributes​(java.lang.String key)
         Additional attributes of the peer.
         
        map<string, string> peer_attributes = 7;
      • getMutablePeerAttributes

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> getMutablePeerAttributes()
        Deprecated.
        Use alternate mutation accessors instead.
      • putPeerAttributes

        public AltsContext.Builder putPeerAttributes​(java.lang.String key,
                                                     java.lang.String value)
         Additional attributes of the peer.
         
        map<string, string> peer_attributes = 7;
      • putAllPeerAttributes

        public AltsContext.Builder putAllPeerAttributes​(java.util.Map<java.lang.String,​java.lang.String> values)
         Additional attributes of the peer.
         
        map<string, string> peer_attributes = 7;