Package io.grpc.alts.internal
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,java.io.Serializable
public final class AltsContext extends com.google.protobuf.GeneratedMessage implements AltsContextOrBuilder
Protobuf typegrpc.gcp.AltsContext- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAltsContext.BuilderProtobuf typegrpc.gcp.AltsContextprivate static classAltsContext.PeerAttributesDefaultEntryHolder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAPPLICATION_PROTOCOL_FIELD_NUMBERprivate java.lang.ObjectapplicationProtocol_private intbitField0_private static AltsContextDEFAULT_INSTANCEstatic intLOCAL_SERVICE_ACCOUNT_FIELD_NUMBERprivate java.lang.ObjectlocalServiceAccount_private bytememoizedIsInitializedprivate static com.google.protobuf.Parser<AltsContext>PARSERstatic intPEER_ATTRIBUTES_FIELD_NUMBERstatic intPEER_RPC_VERSIONS_FIELD_NUMBERstatic intPEER_SERVICE_ACCOUNT_FIELD_NUMBERprivate com.google.protobuf.MapField<java.lang.String,java.lang.String>peerAttributes_private RpcProtocolVersionspeerRpcVersions_private java.lang.ObjectpeerServiceAccount_static intRECORD_PROTOCOL_FIELD_NUMBERprivate java.lang.ObjectrecordProtocol_static intSECURITY_LEVEL_FIELD_NUMBERprivate intsecurityLevel_private static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateAltsContext()privateAltsContext(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsPeerAttributes(java.lang.String key)Additional attributes of the peer.booleanequals(java.lang.Object obj)java.lang.StringgetApplicationProtocol()The application protocol negotiated for this connection.com.google.protobuf.ByteStringgetApplicationProtocolBytes()The application protocol negotiated for this connection.static AltsContextgetDefaultInstance()AltsContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetLocalServiceAccount()The local service account.com.google.protobuf.ByteStringgetLocalServiceAccountBytes()The local service account.com.google.protobuf.Parser<AltsContext>getParserForType()java.util.Map<java.lang.String,java.lang.String>getPeerAttributes()Deprecated.intgetPeerAttributesCount()Additional attributes of the peer.java.util.Map<java.lang.String,java.lang.String>getPeerAttributesMap()Additional attributes of the peer.java.lang.StringgetPeerAttributesOrDefault(java.lang.String key, java.lang.String defaultValue)Additional attributes of the peer.java.lang.StringgetPeerAttributesOrThrow(java.lang.String key)Additional attributes of the peer.RpcProtocolVersionsgetPeerRpcVersions()The RPC protocol versions supported by the peer.RpcProtocolVersionsOrBuildergetPeerRpcVersionsOrBuilder()The RPC protocol versions supported by the peer.java.lang.StringgetPeerServiceAccount()The peer service account.com.google.protobuf.ByteStringgetPeerServiceAccountBytes()The peer service account.java.lang.StringgetRecordProtocol()The record protocol negotiated for this connection.com.google.protobuf.ByteStringgetRecordProtocolBytes()The record protocol negotiated for this connection.SecurityLevelgetSecurityLevel()The security level of the created secure channel.intgetSecurityLevelValue()The security level of the created secure channel.intgetSerializedSize()inthashCode()booleanhasPeerRpcVersions()The RPC protocol versions supported by the peer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetPeerAttributes()booleanisInitialized()static AltsContext.BuildernewBuilder()static AltsContext.BuildernewBuilder(AltsContext prototype)AltsContext.BuildernewBuilderForType()protected AltsContext.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static AltsContextparseDelimitedFrom(java.io.InputStream input)static AltsContextparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AltsContextparseFrom(byte[] data)static AltsContextparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AltsContextparseFrom(com.google.protobuf.ByteString data)static AltsContextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AltsContextparseFrom(com.google.protobuf.CodedInputStream input)static AltsContextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AltsContextparseFrom(java.io.InputStream input)static AltsContextparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AltsContextparseFrom(java.nio.ByteBuffer data)static AltsContextparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AltsContext>parser()AltsContext.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
APPLICATION_PROTOCOL_FIELD_NUMBER
public static final int APPLICATION_PROTOCOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
applicationProtocol_
private volatile java.lang.Object applicationProtocol_
-
RECORD_PROTOCOL_FIELD_NUMBER
public static final int RECORD_PROTOCOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
recordProtocol_
private volatile java.lang.Object recordProtocol_
-
SECURITY_LEVEL_FIELD_NUMBER
public static final int SECURITY_LEVEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
securityLevel_
private int securityLevel_
-
PEER_SERVICE_ACCOUNT_FIELD_NUMBER
public static final int PEER_SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
peerServiceAccount_
private volatile java.lang.Object peerServiceAccount_
-
LOCAL_SERVICE_ACCOUNT_FIELD_NUMBER
public static final int LOCAL_SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
localServiceAccount_
private volatile java.lang.Object localServiceAccount_
-
PEER_RPC_VERSIONS_FIELD_NUMBER
public static final int PEER_RPC_VERSIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
peerRpcVersions_
private RpcProtocolVersions peerRpcVersions_
-
PEER_ATTRIBUTES_FIELD_NUMBER
public static final int PEER_ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
peerAttributes_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> peerAttributes_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final AltsContext DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<AltsContext> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getApplicationProtocol
public java.lang.String getApplicationProtocol()
The application protocol negotiated for this connection.
string application_protocol = 1;- Specified by:
getApplicationProtocolin interfaceAltsContextOrBuilder- Returns:
- The applicationProtocol.
-
getApplicationProtocolBytes
public com.google.protobuf.ByteString getApplicationProtocolBytes()
The application protocol negotiated for this connection.
string application_protocol = 1;- Specified by:
getApplicationProtocolBytesin interfaceAltsContextOrBuilder- Returns:
- The bytes for applicationProtocol.
-
getRecordProtocol
public java.lang.String getRecordProtocol()
The record protocol negotiated for this connection.
string record_protocol = 2;- Specified by:
getRecordProtocolin interfaceAltsContextOrBuilder- Returns:
- The recordProtocol.
-
getRecordProtocolBytes
public com.google.protobuf.ByteString getRecordProtocolBytes()
The record protocol negotiated for this connection.
string record_protocol = 2;- Specified by:
getRecordProtocolBytesin interfaceAltsContextOrBuilder- 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:
getSecurityLevelValuein interfaceAltsContextOrBuilder- 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:
getSecurityLevelin interfaceAltsContextOrBuilder- Returns:
- The securityLevel.
-
getPeerServiceAccount
public java.lang.String getPeerServiceAccount()
The peer service account.
string peer_service_account = 4;- Specified by:
getPeerServiceAccountin interfaceAltsContextOrBuilder- Returns:
- The peerServiceAccount.
-
getPeerServiceAccountBytes
public com.google.protobuf.ByteString getPeerServiceAccountBytes()
The peer service account.
string peer_service_account = 4;- Specified by:
getPeerServiceAccountBytesin interfaceAltsContextOrBuilder- Returns:
- The bytes for peerServiceAccount.
-
getLocalServiceAccount
public java.lang.String getLocalServiceAccount()
The local service account.
string local_service_account = 5;- Specified by:
getLocalServiceAccountin interfaceAltsContextOrBuilder- Returns:
- The localServiceAccount.
-
getLocalServiceAccountBytes
public com.google.protobuf.ByteString getLocalServiceAccountBytes()
The local service account.
string local_service_account = 5;- Specified by:
getLocalServiceAccountBytesin interfaceAltsContextOrBuilder- 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:
hasPeerRpcVersionsin interfaceAltsContextOrBuilder- 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:
getPeerRpcVersionsin interfaceAltsContextOrBuilder- Returns:
- The peerRpcVersions.
-
getPeerRpcVersionsOrBuilder
public RpcProtocolVersionsOrBuilder getPeerRpcVersionsOrBuilder()
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6;- Specified by:
getPeerRpcVersionsOrBuilderin interfaceAltsContextOrBuilder
-
internalGetPeerAttributes
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetPeerAttributes()
-
getPeerAttributesCount
public int getPeerAttributesCount()
Description copied from interface:AltsContextOrBuilderAdditional attributes of the peer.
map<string, string> peer_attributes = 7;- Specified by:
getPeerAttributesCountin interfaceAltsContextOrBuilder
-
containsPeerAttributes
public boolean containsPeerAttributes(java.lang.String key)
Additional attributes of the peer.
map<string, string> peer_attributes = 7;- Specified by:
containsPeerAttributesin interfaceAltsContextOrBuilder
-
getPeerAttributes
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getPeerAttributes()
Deprecated.UsegetPeerAttributesMap()instead.- Specified by:
getPeerAttributesin interfaceAltsContextOrBuilder
-
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:
getPeerAttributesMapin interfaceAltsContextOrBuilder
-
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:
getPeerAttributesOrDefaultin interfaceAltsContextOrBuilder
-
getPeerAttributesOrThrow
public java.lang.String getPeerAttributesOrThrow(java.lang.String key)
Additional attributes of the peer.
map<string, string> peer_attributes = 7;- Specified by:
getPeerAttributesOrThrowin interfaceAltsContextOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AltsContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AltsContext parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AltsContext parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static AltsContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static AltsContext parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AltsContext parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AltsContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public AltsContext.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AltsContext.Builder newBuilder()
-
newBuilder
public static AltsContext.Builder newBuilder(AltsContext prototype)
-
toBuilder
public AltsContext.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AltsContext.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public AltsContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-