Class AltsContext.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<AltsContext.Builder>
com.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
io.grpc.alts.internal.AltsContext.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AltsContextOrBuilder, 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 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()
    • 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>
    • mergeFrom

      public AltsContext.Builder mergeFrom(AltsContext other)
    • 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 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:
      IOException
    • getApplicationProtocol

      public 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(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 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(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 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(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 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(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.
    • getPeerRpcVersions

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

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

      public AltsContext.Builder setPeerRpcVersions(RpcProtocolVersions.Builder builderForValue)
       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;
    • getPeerRpcVersionsOrBuilder

      public RpcProtocolVersionsOrBuilder getPeerRpcVersionsOrBuilder()
       The RPC protocol versions supported by the peer.
       
      .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6;
      Specified by:
      getPeerRpcVersionsOrBuilder in interface AltsContextOrBuilder
    • getPeerRpcVersionsFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions,RpcProtocolVersions.Builder,RpcProtocolVersionsOrBuilder> getPeerRpcVersionsFieldBuilder()
       The RPC protocol versions supported by the peer.
       
      .grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6;
    • internalGetPeerAttributes

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

      private com.google.protobuf.MapField<String,String> internalGetMutablePeerAttributes()
    • getPeerAttributesCount

      public int getPeerAttributesCount()
      Description copied from interface: AltsContextOrBuilder
       Additional attributes of the peer.
       
      map<string, string> peer_attributes = 7;
      Specified by:
      getPeerAttributesCount in interface AltsContextOrBuilder
    • containsPeerAttributes

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

      @Deprecated public Map<String,String> getPeerAttributes()
      Deprecated.
      Specified by:
      getPeerAttributes in interface AltsContextOrBuilder
    • getPeerAttributesMap

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

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

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

      public AltsContext.Builder clearPeerAttributes()
    • removePeerAttributes

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

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

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

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