Package io.grpc.alts.internal
Class HandshakerResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HandshakerResult.Builder>
com.google.protobuf.GeneratedMessage.Builder<HandshakerResult.Builder>
io.grpc.alts.internal.HandshakerResult.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,HandshakerResultOrBuilder
,Cloneable
- Enclosing class:
HandshakerResult
public static final class HandshakerResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HandshakerResult.Builder>
implements HandshakerResultOrBuilder
Protobuf type
grpc.gcp.HandshakerResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object
private int
private boolean
private com.google.protobuf.ByteString
private Identity
private com.google.protobuf.SingleFieldBuilder
<Identity, Identity.Builder, IdentityOrBuilder> private int
private Identity
private com.google.protobuf.SingleFieldBuilder
<Identity, Identity.Builder, IdentityOrBuilder> private RpcProtocolVersions
private com.google.protobuf.SingleFieldBuilder
<RpcProtocolVersions, RpcProtocolVersions.Builder, RpcProtocolVersionsOrBuilder> private Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(HandshakerResult result) clear()
The application protocol negotiated for this connection.Indicate whether the handshaker service client should keep the channel between the handshaker service open, e.g., in order to handle post-handshake messages in the future.Cryptographic key data.The local identity used in the handshake.The maximum frame size of the peer.The authenticated identity of the peer.The RPC protocol versions supported by the peer.The record protocol negotiated for this connection.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
boolean
Indicate whether the handshaker service client should keep the channel between the handshaker service open, e.g., in order to handle post-handshake messages in the future.com.google.protobuf.ByteString
Cryptographic key data.The local identity used in the handshake.The local identity used in the handshake.private com.google.protobuf.SingleFieldBuilder
<Identity, Identity.Builder, IdentityOrBuilder> The local identity used in the handshake.The local identity used in the handshake.int
The maximum frame size of the peer.The authenticated identity of the peer.The authenticated identity of the peer.private com.google.protobuf.SingleFieldBuilder
<Identity, Identity.Builder, IdentityOrBuilder> The authenticated identity of the peer.The authenticated identity 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 record protocol negotiated for this connection.com.google.protobuf.ByteString
The record protocol negotiated for this connection.boolean
The local identity used in the handshake.boolean
The authenticated identity of the peer.boolean
The RPC protocol versions supported by the peer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(HandshakerResult other) mergeLocalIdentity
(Identity value) The local identity used in the handshake.mergePeerIdentity
(Identity value) The authenticated identity of the peer.The RPC protocol versions supported by 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.setKeepChannelOpen
(boolean value) Indicate whether the handshaker service client should keep the channel between the handshaker service open, e.g., in order to handle post-handshake messages in the future.setKeyData
(com.google.protobuf.ByteString value) Cryptographic key data.setLocalIdentity
(Identity value) The local identity used in the handshake.setLocalIdentity
(Identity.Builder builderForValue) The local identity used in the handshake.setMaxFrameSize
(int value) The maximum frame size of the peer.setPeerIdentity
(Identity value) The authenticated identity of the peer.setPeerIdentity
(Identity.Builder builderForValue) The authenticated identity of the peer.The RPC protocol versions supported by the peer.setPeerRpcVersions
(RpcProtocolVersions.Builder builderForValue) The RPC protocol versions supported by the peer.setRecordProtocol
(String value) The record protocol negotiated for this connection.setRecordProtocolBytes
(com.google.protobuf.ByteString value) The record protocol negotiated for this connection.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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_
-
keyData_
private com.google.protobuf.ByteString keyData_ -
peerIdentity_
-
peerIdentityBuilder_
private com.google.protobuf.SingleFieldBuilder<Identity,Identity.Builder, peerIdentityBuilder_IdentityOrBuilder> -
localIdentity_
-
localIdentityBuilder_
private com.google.protobuf.SingleFieldBuilder<Identity,Identity.Builder, localIdentityBuilder_IdentityOrBuilder> -
keepChannelOpen_
private boolean keepChannelOpen_ -
peerRpcVersions_
-
peerRpcVersionsBuilder_
private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions,RpcProtocolVersions.Builder, peerRpcVersionsBuilder_RpcProtocolVersionsOrBuilder> -
maxFrameSize_
private int maxFrameSize_
-
-
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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<HandshakerResult.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<HandshakerResult.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<HandshakerResult.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<HandshakerResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<HandshakerResult.Builder>
-
mergeFrom
public HandshakerResult.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<HandshakerResult.Builder>
- Throws:
IOException
-
getApplicationProtocol
The application protocol negotiated for this connection.
string application_protocol = 1;
- Specified by:
getApplicationProtocol
in interfaceHandshakerResultOrBuilder
- 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 interfaceHandshakerResultOrBuilder
- 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 interfaceHandshakerResultOrBuilder
- 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 interfaceHandshakerResultOrBuilder
- 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.
-
getKeyData
public com.google.protobuf.ByteString getKeyData()Cryptographic key data. The key data may be more than the key length required for the record protocol, thus the client of the handshaker service needs to truncate the key data into the right key length.
bytes key_data = 3;
- Specified by:
getKeyData
in interfaceHandshakerResultOrBuilder
- Returns:
- The keyData.
-
setKeyData
Cryptographic key data. The key data may be more than the key length required for the record protocol, thus the client of the handshaker service needs to truncate the key data into the right key length.
bytes key_data = 3;
- Parameters:
value
- The keyData to set.- Returns:
- This builder for chaining.
-
clearKeyData
Cryptographic key data. The key data may be more than the key length required for the record protocol, thus the client of the handshaker service needs to truncate the key data into the right key length.
bytes key_data = 3;
- Returns:
- This builder for chaining.
-
hasPeerIdentity
public boolean hasPeerIdentity()The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
- Specified by:
hasPeerIdentity
in interfaceHandshakerResultOrBuilder
- Returns:
- Whether the peerIdentity field is set.
-
getPeerIdentity
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
- Specified by:
getPeerIdentity
in interfaceHandshakerResultOrBuilder
- Returns:
- The peerIdentity.
-
setPeerIdentity
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
-
setPeerIdentity
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
-
mergePeerIdentity
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
-
clearPeerIdentity
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
-
getPeerIdentityBuilder
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
-
getPeerIdentityOrBuilder
The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
- Specified by:
getPeerIdentityOrBuilder
in interfaceHandshakerResultOrBuilder
-
getPeerIdentityFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Identity,Identity.Builder, getPeerIdentityFieldBuilder()IdentityOrBuilder> The authenticated identity of the peer.
.grpc.gcp.Identity peer_identity = 4;
-
hasLocalIdentity
public boolean hasLocalIdentity()The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
- Specified by:
hasLocalIdentity
in interfaceHandshakerResultOrBuilder
- Returns:
- Whether the localIdentity field is set.
-
getLocalIdentity
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
- Specified by:
getLocalIdentity
in interfaceHandshakerResultOrBuilder
- Returns:
- The localIdentity.
-
setLocalIdentity
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
-
setLocalIdentity
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
-
mergeLocalIdentity
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
-
clearLocalIdentity
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
-
getLocalIdentityBuilder
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
-
getLocalIdentityOrBuilder
The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
- Specified by:
getLocalIdentityOrBuilder
in interfaceHandshakerResultOrBuilder
-
getLocalIdentityFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Identity,Identity.Builder, getLocalIdentityFieldBuilder()IdentityOrBuilder> The local identity used in the handshake.
.grpc.gcp.Identity local_identity = 5;
-
getKeepChannelOpen
public boolean getKeepChannelOpen()Indicate whether the handshaker service client should keep the channel between the handshaker service open, e.g., in order to handle post-handshake messages in the future.
bool keep_channel_open = 6;
- Specified by:
getKeepChannelOpen
in interfaceHandshakerResultOrBuilder
- Returns:
- The keepChannelOpen.
-
setKeepChannelOpen
Indicate whether the handshaker service client should keep the channel between the handshaker service open, e.g., in order to handle post-handshake messages in the future.
bool keep_channel_open = 6;
- Parameters:
value
- The keepChannelOpen to set.- Returns:
- This builder for chaining.
-
clearKeepChannelOpen
Indicate whether the handshaker service client should keep the channel between the handshaker service open, e.g., in order to handle post-handshake messages in the future.
bool keep_channel_open = 6;
- Returns:
- This builder for chaining.
-
hasPeerRpcVersions
public boolean hasPeerRpcVersions()The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
- Specified by:
hasPeerRpcVersions
in interfaceHandshakerResultOrBuilder
- Returns:
- Whether the peerRpcVersions field is set.
-
getPeerRpcVersions
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
- Specified by:
getPeerRpcVersions
in interfaceHandshakerResultOrBuilder
- Returns:
- The peerRpcVersions.
-
setPeerRpcVersions
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
-
setPeerRpcVersions
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
-
mergePeerRpcVersions
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
-
clearPeerRpcVersions
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
-
getPeerRpcVersionsBuilder
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
-
getPeerRpcVersionsOrBuilder
The RPC protocol versions supported by the peer.
.grpc.gcp.RpcProtocolVersions peer_rpc_versions = 7;
- Specified by:
getPeerRpcVersionsOrBuilder
in interfaceHandshakerResultOrBuilder
-
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 = 7;
-
getMaxFrameSize
public int getMaxFrameSize()The maximum frame size of the peer.
uint32 max_frame_size = 8;
- Specified by:
getMaxFrameSize
in interfaceHandshakerResultOrBuilder
- Returns:
- The maxFrameSize.
-
setMaxFrameSize
The maximum frame size of the peer.
uint32 max_frame_size = 8;
- Parameters:
value
- The maxFrameSize to set.- Returns:
- This builder for chaining.
-
clearMaxFrameSize
The maximum frame size of the peer.
uint32 max_frame_size = 8;
- Returns:
- This builder for chaining.
-