Package io.grpc.alts.internal
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 Summary
FieldsModifier and TypeFieldDescriptionprivate Objectprivate intprivate Objectprivate RpcProtocolVersionsprivate com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions, RpcProtocolVersions.Builder, RpcProtocolVersionsOrBuilder> private Objectprivate Objectprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(AltsContext result) clear()The application protocol negotiated for this connection.The local service account.The RPC protocol versions supported by the peer.The peer service account.The record protocol negotiated for this connection.The security level of the created secure channel.booleanAdditional attributes of the peer.The application protocol negotiated for this connection.com.google.protobuf.ByteStringThe application protocol negotiated for this connection.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe local service account.com.google.protobuf.ByteStringThe local service account.Deprecated.Deprecated.intAdditional attributes of the peer.Additional attributes of the peer.getPeerAttributesOrDefault(String key, String defaultValue) Additional attributes of the peer.Additional attributes of the peer.The RPC protocol versions supported by the peer.The RPC protocol versions supported by the peer.The RPC protocol versions supported by the peer.The peer service account.com.google.protobuf.ByteStringThe peer service account.The record protocol negotiated for this connection.com.google.protobuf.ByteStringThe record protocol negotiated for this connection.The security level of the created secure channel.intThe security level of the created secure channel.booleanThe RPC protocol versions supported by the peer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions, RpcProtocolVersions.Builder, RpcProtocolVersionsOrBuilder> The RPC protocol versions supported by the peer.final booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(AltsContext other) The RPC protocol versions supported by the peer.putAllPeerAttributes(Map<String, String> values) Additional attributes of the peer.putPeerAttributes(String key, String value) Additional attributes of the peer.Additional attributes of the peer.setApplicationProtocol(String value) The application protocol negotiated for this connection.setApplicationProtocolBytes(com.google.protobuf.ByteString value) The application protocol negotiated for this connection.setLocalServiceAccount(String value) The local service account.setLocalServiceAccountBytes(com.google.protobuf.ByteString value) The local service account.The RPC protocol versions supported by the peer.setPeerRpcVersions(RpcProtocolVersions.Builder builderForValue) The RPC protocol versions supported by the peer.setPeerServiceAccount(String value) The peer service account.setPeerServiceAccountBytes(com.google.protobuf.ByteString value) The peer service account.setRecordProtocol(String value) The record protocol negotiated for this connection.setRecordProtocolBytes(com.google.protobuf.ByteString value) The record protocol negotiated for this connection.setSecurityLevel(SecurityLevel value) The security level of the created secure channel.setSecurityLevelValue(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
applicationProtocol_
-
recordProtocol_
-
securityLevel_
private int securityLevel_ -
peerServiceAccount_
-
localServiceAccount_
-
peerRpcVersions_
-
peerRpcVersionsBuilder_
private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions,RpcProtocolVersions.Builder, peerRpcVersionsBuilder_RpcProtocolVersionsOrBuilder> -
peerAttributes_
-
-
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:
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AltsContext.Builder>
-
mergeFrom
-
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 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:
IOException
-
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
The application protocol negotiated for this connection.
string application_protocol = 1;- Parameters:
value- The applicationProtocol to set.- Returns:
- This builder for chaining.
-
clearApplicationProtocol
The application protocol negotiated for this connection.
string application_protocol = 1;- Returns:
- This builder for chaining.
-
setApplicationProtocolBytes
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
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
The record protocol negotiated for this connection.
string record_protocol = 2;- Parameters:
value- The recordProtocol to set.- Returns:
- This builder for chaining.
-
clearRecordProtocol
The record protocol negotiated for this connection.
string record_protocol = 2;- Returns:
- This builder for chaining.
-
setRecordProtocolBytes
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
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.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getSecurityLevel
The security level of the created secure channel.
.grpc.gcp.SecurityLevel security_level = 3;- Specified by:
getSecurityLevelin interfaceAltsContextOrBuilder- Returns:
- The securityLevel.
-
setSecurityLevel
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
The security level of the created secure channel.
.grpc.gcp.SecurityLevel security_level = 3;- Returns:
- This builder for chaining.
-
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
The peer service account.
string peer_service_account = 4;- Parameters:
value- The peerServiceAccount to set.- Returns:
- This builder for chaining.
-
clearPeerServiceAccount
The peer service account.
string peer_service_account = 4;- Returns:
- This builder for chaining.
-
setPeerServiceAccountBytes
The peer service account.
string peer_service_account = 4;- Parameters:
value- The bytes for peerServiceAccount to set.- Returns:
- This builder for chaining.
-
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
The local service account.
string local_service_account = 5;- Parameters:
value- The localServiceAccount to set.- Returns:
- This builder for chaining.
-
clearLocalServiceAccount
The local service account.
string local_service_account = 5;- Returns:
- This builder for chaining.
-
setLocalServiceAccountBytes
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
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6;- Specified by:
getPeerRpcVersionsin interfaceAltsContextOrBuilder- Returns:
- The peerRpcVersions.
-
setPeerRpcVersions
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6; -
setPeerRpcVersions
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6; -
mergePeerRpcVersions
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6; -
clearPeerRpcVersions
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6; -
getPeerRpcVersionsBuilder
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6; -
getPeerRpcVersionsOrBuilder
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6;- Specified by:
getPeerRpcVersionsOrBuilderin interfaceAltsContextOrBuilder
-
internalGetPeerRpcVersionsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions,RpcProtocolVersions.Builder, internalGetPeerRpcVersionsFieldBuilder()RpcProtocolVersionsOrBuilder> The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 6; -
internalGetPeerAttributes
-
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
Additional attributes of the peer.
map<string, string> peer_attributes = 7;- Specified by:
containsPeerAttributesin interfaceAltsContextOrBuilder
-
getPeerAttributes
Deprecated.UsegetPeerAttributesMap()instead.- Specified by:
getPeerAttributesin interfaceAltsContextOrBuilder
-
getPeerAttributesMap
Additional attributes of the peer.
map<string, string> peer_attributes = 7;- Specified by:
getPeerAttributesMapin interfaceAltsContextOrBuilder
-
getPeerAttributesOrDefault
Additional attributes of the peer.
map<string, string> peer_attributes = 7;- Specified by:
getPeerAttributesOrDefaultin interfaceAltsContextOrBuilder
-
getPeerAttributesOrThrow
Additional attributes of the peer.
map<string, string> peer_attributes = 7;- Specified by:
getPeerAttributesOrThrowin interfaceAltsContextOrBuilder
-
clearPeerAttributes
-
removePeerAttributes
Additional attributes of the peer.
map<string, string> peer_attributes = 7; -
getMutablePeerAttributes
Deprecated.Use alternate mutation accessors instead. -
putPeerAttributes
Additional attributes of the peer.
map<string, string> peer_attributes = 7; -
putAllPeerAttributes
Additional attributes of the peer.
map<string, string> peer_attributes = 7;
-