Package io.grpc.alts.internal
Class AltsContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.Cloneable
- Enclosing class:
- AltsContext
public static final class AltsContext.Builder extends com.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder> implements AltsContextOrBuilder
Protobuf typegrpc.gcp.AltsContext
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ObjectapplicationProtocol_private intbitField0_private java.lang.ObjectlocalServiceAccount_private com.google.protobuf.MapField<java.lang.String,java.lang.String>peerAttributes_private RpcProtocolVersionspeerRpcVersions_private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions,RpcProtocolVersions.Builder,RpcProtocolVersionsOrBuilder>peerRpcVersionsBuilder_private java.lang.ObjectpeerServiceAccount_private java.lang.ObjectrecordProtocol_private intsecurityLevel_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AltsContextbuild()AltsContextbuildPartial()private voidbuildPartial0(AltsContext result)AltsContext.Builderclear()AltsContext.BuilderclearApplicationProtocol()The application protocol negotiated for this connection.AltsContext.BuilderclearLocalServiceAccount()The local service account.AltsContext.BuilderclearPeerAttributes()AltsContext.BuilderclearPeerRpcVersions()The RPC protocol versions supported by the peer.AltsContext.BuilderclearPeerServiceAccount()The peer service account.AltsContext.BuilderclearRecordProtocol()The record protocol negotiated for this connection.AltsContext.BuilderclearSecurityLevel()The security level of the created secure channel.booleancontainsPeerAttributes(java.lang.String key)Additional attributes of the peer.java.lang.StringgetApplicationProtocol()The application protocol negotiated for this connection.com.google.protobuf.ByteStringgetApplicationProtocolBytes()The application protocol negotiated for this connection.AltsContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetLocalServiceAccount()The local service account.com.google.protobuf.ByteStringgetLocalServiceAccountBytes()The local service account.java.util.Map<java.lang.String,java.lang.String>getMutablePeerAttributes()Deprecated.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.RpcProtocolVersions.BuildergetPeerRpcVersionsBuilder()The RPC protocol versions supported by the peer.private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions,RpcProtocolVersions.Builder,RpcProtocolVersionsOrBuilder>getPeerRpcVersionsFieldBuilder()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.booleanhasPeerRpcVersions()The RPC protocol versions supported by the peer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetMutablePeerAttributes()private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetPeerAttributes()booleanisInitialized()private voidmaybeForceBuilderInitialization()AltsContext.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AltsContext.BuildermergeFrom(com.google.protobuf.Message other)AltsContext.BuildermergeFrom(AltsContext other)AltsContext.BuildermergePeerRpcVersions(RpcProtocolVersions value)The RPC protocol versions supported by the peer.AltsContext.BuilderputAllPeerAttributes(java.util.Map<java.lang.String,java.lang.String> values)Additional attributes of the peer.AltsContext.BuilderputPeerAttributes(java.lang.String key, java.lang.String value)Additional attributes of the peer.AltsContext.BuilderremovePeerAttributes(java.lang.String key)Additional attributes of the peer.AltsContext.BuildersetApplicationProtocol(java.lang.String value)The application protocol negotiated for this connection.AltsContext.BuildersetApplicationProtocolBytes(com.google.protobuf.ByteString value)The application protocol negotiated for this connection.AltsContext.BuildersetLocalServiceAccount(java.lang.String value)The local service account.AltsContext.BuildersetLocalServiceAccountBytes(com.google.protobuf.ByteString value)The local service account.AltsContext.BuildersetPeerRpcVersions(RpcProtocolVersions value)The RPC protocol versions supported by the peer.AltsContext.BuildersetPeerRpcVersions(RpcProtocolVersions.Builder builderForValue)The RPC protocol versions supported by the peer.AltsContext.BuildersetPeerServiceAccount(java.lang.String value)The peer service account.AltsContext.BuildersetPeerServiceAccountBytes(com.google.protobuf.ByteString value)The peer service account.AltsContext.BuildersetRecordProtocol(java.lang.String value)The record protocol negotiated for this connection.AltsContext.BuildersetRecordProtocolBytes(com.google.protobuf.ByteString value)The record protocol negotiated for this connection.AltsContext.BuildersetSecurityLevel(SecurityLevel value)The security level of the created secure channel.AltsContext.BuildersetSecurityLevelValue(int value)The security level of the created secure channel.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
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_
-
peerRpcVersions_
private RpcProtocolVersions peerRpcVersions_
-
peerRpcVersionsBuilder_
private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions,RpcProtocolVersions.Builder,RpcProtocolVersionsOrBuilder> peerRpcVersionsBuilder_
-
peerAttributes_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> peerAttributes_
-
-
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.Builder<AltsContext.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public AltsContext.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
-
getDefaultInstanceForType
public AltsContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AltsContext build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AltsContext buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(AltsContext result)
-
mergeFrom
public AltsContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AltsContext.Builder>
-
mergeFrom
public AltsContext.Builder mergeFrom(AltsContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
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.
-
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:
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.
-
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:
getSecurityLevelValuein interfaceAltsContextOrBuilder- 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:
getSecurityLevelin interfaceAltsContextOrBuilder- 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:
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.
-
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:
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.
-
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:
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.
-
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:
getPeerRpcVersionsOrBuilderin interfaceAltsContextOrBuilder
-
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<java.lang.String,java.lang.String> internalGetPeerAttributes()
-
internalGetMutablePeerAttributes
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetMutablePeerAttributes()
-
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
-
clearPeerAttributes
public AltsContext.Builder clearPeerAttributes()
-
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;
-
-