Package io.grpc.alts.internal
Class ServerHandshakeParameters.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ServerHandshakeParameters.Builder>
com.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder>
io.grpc.alts.internal.ServerHandshakeParameters.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ServerHandshakeParametersOrBuilder
,Cloneable
- Enclosing class:
ServerHandshakeParameters
public static final class ServerHandshakeParameters.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder>
implements ServerHandshakeParametersOrBuilder
Protobuf type
grpc.gcp.ServerHandshakeParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private com.google.protobuf.RepeatedFieldBuilder
<Identity, Identity.Builder, IdentityOrBuilder> private com.google.protobuf.LazyStringArrayList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllLocalIdentities
(Iterable<? extends Identity> values) (Optional) A list of local identities supported by the server, if specified.addAllRecordProtocols
(Iterable<String> values) The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".addLocalIdentities
(int index, Identity value) (Optional) A list of local identities supported by the server, if specified.addLocalIdentities
(int index, Identity.Builder builderForValue) (Optional) A list of local identities supported by the server, if specified.addLocalIdentities
(Identity value) (Optional) A list of local identities supported by the server, if specified.addLocalIdentities
(Identity.Builder builderForValue) (Optional) A list of local identities supported by the server, if specified.(Optional) A list of local identities supported by the server, if specified.addLocalIdentitiesBuilder
(int index) (Optional) A list of local identities supported by the server, if specified.addRecordProtocols
(String value) The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".addRecordProtocolsBytes
(com.google.protobuf.ByteString value) The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".build()
private void
private void
clear()
(Optional) A list of local identities supported by the server, if specified.The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".private void
private void
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getLocalIdentities
(int index) (Optional) A list of local identities supported by the server, if specified.getLocalIdentitiesBuilder
(int index) (Optional) A list of local identities supported by the server, if specified.(Optional) A list of local identities supported by the server, if specified.int
(Optional) A list of local identities supported by the server, if specified.(Optional) A list of local identities supported by the server, if specified.getLocalIdentitiesOrBuilder
(int index) (Optional) A list of local identities supported by the server, if specified.List
<? extends IdentityOrBuilder> (Optional) A list of local identities supported by the server, if specified.getRecordProtocols
(int index) The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".com.google.protobuf.ByteString
getRecordProtocolsBytes
(int index) The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".int
The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".com.google.protobuf.ProtocolStringList
The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.RepeatedFieldBuilder
<Identity, Identity.Builder, IdentityOrBuilder> final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) removeLocalIdentities
(int index) (Optional) A list of local identities supported by the server, if specified.setLocalIdentities
(int index, Identity value) (Optional) A list of local identities supported by the server, if specified.setLocalIdentities
(int index, Identity.Builder builderForValue) (Optional) A list of local identities supported by the server, if specified.setRecordProtocols
(int index, String value) The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".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_ -
recordProtocols_
private com.google.protobuf.LazyStringArrayList recordProtocols_ -
localIdentities_
-
localIdentitiesBuilder_
private com.google.protobuf.RepeatedFieldBuilder<Identity,Identity.Builder, localIdentitiesBuilder_IdentityOrBuilder>
-
-
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<ServerHandshakeParameters.Builder>
-
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<ServerHandshakeParameters.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<ServerHandshakeParameters.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
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServerHandshakeParameters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder>
-
mergeFrom
public ServerHandshakeParameters.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<ServerHandshakeParameters.Builder>
- Throws:
IOException
-
ensureRecordProtocolsIsMutable
private void ensureRecordProtocolsIsMutable() -
getRecordProtocolsList
public com.google.protobuf.ProtocolStringList getRecordProtocolsList()The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".
repeated string record_protocols = 1;
- Specified by:
getRecordProtocolsList
in interfaceServerHandshakeParametersOrBuilder
- Returns:
- A list containing the recordProtocols.
-
getRecordProtocolsCount
public int getRecordProtocolsCount()The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".
repeated string record_protocols = 1;
- Specified by:
getRecordProtocolsCount
in interfaceServerHandshakeParametersOrBuilder
- Returns:
- The count of recordProtocols.
-
getRecordProtocols
The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".
repeated string record_protocols = 1;
- Specified by:
getRecordProtocols
in interfaceServerHandshakeParametersOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The recordProtocols at the given index.
-
getRecordProtocolsBytes
public com.google.protobuf.ByteString getRecordProtocolsBytes(int index) The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".
repeated string record_protocols = 1;
- Specified by:
getRecordProtocolsBytes
in interfaceServerHandshakeParametersOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the recordProtocols at the given index.
-
setRecordProtocols
The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".
repeated string record_protocols = 1;
- Parameters:
index
- The index to set the value at.value
- The recordProtocols to set.- Returns:
- This builder for chaining.
-
addRecordProtocols
The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".
repeated string record_protocols = 1;
- Parameters:
value
- The recordProtocols to add.- Returns:
- This builder for chaining.
-
addAllRecordProtocols
The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".
repeated string record_protocols = 1;
- Parameters:
values
- The recordProtocols to add.- Returns:
- This builder for chaining.
-
clearRecordProtocols
The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".
repeated string record_protocols = 1;
- Returns:
- This builder for chaining.
-
addRecordProtocolsBytes
public ServerHandshakeParameters.Builder addRecordProtocolsBytes(com.google.protobuf.ByteString value) The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".
repeated string record_protocols = 1;
- Parameters:
value
- The bytes of the recordProtocols to add.- Returns:
- This builder for chaining.
-
ensureLocalIdentitiesIsMutable
private void ensureLocalIdentitiesIsMutable() -
getLocalIdentitiesList
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
- Specified by:
getLocalIdentitiesList
in interfaceServerHandshakeParametersOrBuilder
-
getLocalIdentitiesCount
public int getLocalIdentitiesCount()(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
- Specified by:
getLocalIdentitiesCount
in interfaceServerHandshakeParametersOrBuilder
-
getLocalIdentities
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
- Specified by:
getLocalIdentities
in interfaceServerHandshakeParametersOrBuilder
-
setLocalIdentities
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
setLocalIdentities
public ServerHandshakeParameters.Builder setLocalIdentities(int index, Identity.Builder builderForValue) (Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
addLocalIdentities
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
addLocalIdentities
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
addLocalIdentities
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
addLocalIdentities
public ServerHandshakeParameters.Builder addLocalIdentities(int index, Identity.Builder builderForValue) (Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
addAllLocalIdentities
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
clearLocalIdentities
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
removeLocalIdentities
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
getLocalIdentitiesBuilder
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
getLocalIdentitiesOrBuilder
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
- Specified by:
getLocalIdentitiesOrBuilder
in interfaceServerHandshakeParametersOrBuilder
-
getLocalIdentitiesOrBuilderList
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
- Specified by:
getLocalIdentitiesOrBuilderList
in interfaceServerHandshakeParametersOrBuilder
-
addLocalIdentitiesBuilder
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
addLocalIdentitiesBuilder
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
getLocalIdentitiesBuilderList
(Optional) A list of local identities supported by the server, if specified. Otherwise, the handshaker chooses a default local identity.
repeated .grpc.gcp.Identity local_identities = 2;
-
internalGetLocalIdentitiesFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<Identity,Identity.Builder, internalGetLocalIdentitiesFieldBuilder()IdentityOrBuilder>
-