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 Object
private int
private Object
private RpcProtocolVersions
private com.google.protobuf.SingleFieldBuilder
<RpcProtocolVersions, RpcProtocolVersions.Builder, RpcProtocolVersionsOrBuilder> private Object
private Object
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(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.boolean
Additional attributes of the peer.The application protocol negotiated for this connection.com.google.protobuf.ByteString
The application protocol negotiated for this connection.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The local service account.com.google.protobuf.ByteString
The local service account.Deprecated.Deprecated.int
Additional 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.private com.google.protobuf.SingleFieldBuilder
<RpcProtocolVersions, RpcProtocolVersions.Builder, RpcProtocolVersionsOrBuilder> The RPC protocol versions supported by the peer.The RPC protocol versions supported by the peer.The peer service account.com.google.protobuf.ByteString
The peer service account.The record protocol negotiated for this connection.com.google.protobuf.ByteString
The record protocol negotiated for this connection.The security level of the created secure channel.int
The security level of the created secure channel.boolean
The RPC protocol versions supported by the peer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection
(int number) protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMutableMapFieldReflection
(int number) final boolean
private void
mergeFrom
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<AltsContext.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AltsContext.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AltsContext.Builder>
- Throws:
IOException
-
getApplicationProtocol
The application protocol negotiated for this connection.
string application_protocol = 1;
- Specified by:
getApplicationProtocol
in interfaceAltsContextOrBuilder
- 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 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:
getRecordProtocol
in interfaceAltsContextOrBuilder
- 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 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:
getSecurityLevelValue
in 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.
-
getSecurityLevel
The security level of the created secure channel.
.grpc.gcp.SecurityLevel security_level = 3;
- Specified by:
getSecurityLevel
in 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:
getPeerServiceAccount
in interfaceAltsContextOrBuilder
- Returns:
- The peerServiceAccount.
-
getPeerServiceAccountBytes
public com.google.protobuf.ByteString getPeerServiceAccountBytes()The peer service account.
string peer_service_account = 4;
- Specified by:
getPeerServiceAccountBytes
in 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:
getLocalServiceAccount
in interfaceAltsContextOrBuilder
- Returns:
- The localServiceAccount.
-
getLocalServiceAccountBytes
public com.google.protobuf.ByteString getLocalServiceAccountBytes()The local service account.
string local_service_account = 5;
- Specified by:
getLocalServiceAccountBytes
in 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:
hasPeerRpcVersions
in 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:
getPeerRpcVersions
in 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:
getPeerRpcVersionsOrBuilder
in interfaceAltsContextOrBuilder
-
getPeerRpcVersionsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions,RpcProtocolVersions.Builder, getPeerRpcVersionsFieldBuilder()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:AltsContextOrBuilder
Additional attributes of the peer.
map<string, string> peer_attributes = 7;
- Specified by:
getPeerAttributesCount
in interfaceAltsContextOrBuilder
-
containsPeerAttributes
Additional attributes of the peer.
map<string, string> peer_attributes = 7;
- Specified by:
containsPeerAttributes
in interfaceAltsContextOrBuilder
-
getPeerAttributes
Deprecated.UsegetPeerAttributesMap()
instead.- Specified by:
getPeerAttributes
in interfaceAltsContextOrBuilder
-
getPeerAttributesMap
Additional attributes of the peer.
map<string, string> peer_attributes = 7;
- Specified by:
getPeerAttributesMap
in interfaceAltsContextOrBuilder
-
getPeerAttributesOrDefault
Additional attributes of the peer.
map<string, string> peer_attributes = 7;
- Specified by:
getPeerAttributesOrDefault
in interfaceAltsContextOrBuilder
-
getPeerAttributesOrThrow
Additional attributes of the peer.
map<string, string> peer_attributes = 7;
- Specified by:
getPeerAttributesOrThrow
in 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;
-