Class AltsContext

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grpc.alts.internal.AltsContext
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AltsContextOrBuilder, Serializable

public final class AltsContext extends com.google.protobuf.GeneratedMessage implements AltsContextOrBuilder
Protobuf type grpc.gcp.AltsContext
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_
    • SECURITY_LEVEL_FIELD_NUMBER

      public static final int SECURITY_LEVEL_FIELD_NUMBER
      See Also:
    • securityLevel_

      private int securityLevel_
    • PEER_SERVICE_ACCOUNT_FIELD_NUMBER

      public static final int PEER_SERVICE_ACCOUNT_FIELD_NUMBER
      See Also:
    • peerServiceAccount_

      private volatile Object peerServiceAccount_
    • LOCAL_SERVICE_ACCOUNT_FIELD_NUMBER

      public static final int LOCAL_SERVICE_ACCOUNT_FIELD_NUMBER
      See Also:
    • localServiceAccount_

      private volatile Object localServiceAccount_
    • PEER_RPC_VERSIONS_FIELD_NUMBER

      public static final int PEER_RPC_VERSIONS_FIELD_NUMBER
      See Also:
    • peerRpcVersions_

      private RpcProtocolVersions peerRpcVersions_
    • PEER_ATTRIBUTES_FIELD_NUMBER

      public static final int PEER_ATTRIBUTES_FIELD_NUMBER
      See Also:
    • peerAttributes_

      private com.google.protobuf.MapField<String,String> peerAttributes_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final AltsContext DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<AltsContext> PARSER
  • Constructor Details

    • AltsContext

      private AltsContext(com.google.protobuf.GeneratedMessage.Builder<?> builder)
    • AltsContext

      private AltsContext()
  • 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
    • 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 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • internalGetPeerAttributes

      private com.google.protobuf.MapField<String,String> internalGetPeerAttributes()
    • 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
    • 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 AltsContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AltsContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AltsContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AltsContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AltsContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AltsContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static AltsContext parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static AltsContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AltsContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static AltsContext.Builder newBuilder()
    • newBuilder

      public static AltsContext.Builder newBuilder(AltsContext prototype)
    • toBuilder

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

      protected AltsContext.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AltsContext getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AltsContext> parser()
    • getParserForType

      public com.google.protobuf.Parser<AltsContext> 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 AltsContext getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder