Package io.grpc.alts.internal
Class ServerHandshakeParameters.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.Cloneable
- Enclosing class:
- ServerHandshakeParameters
public static final class ServerHandshakeParameters.Builder extends com.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder> implements ServerHandshakeParametersOrBuilder
Protobuf typegrpc.gcp.ServerHandshakeParameters
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private java.util.List<Identity>localIdentities_private com.google.protobuf.RepeatedFieldBuilder<Identity,Identity.Builder,IdentityOrBuilder>localIdentitiesBuilder_private com.google.protobuf.LazyStringArrayListrecordProtocols_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerHandshakeParameters.BuilderaddAllLocalIdentities(java.lang.Iterable<? extends Identity> values)(Optional) A list of local identities supported by the server, if specified.ServerHandshakeParameters.BuilderaddAllRecordProtocols(java.lang.Iterable<java.lang.String> values)The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".ServerHandshakeParameters.BuilderaddLocalIdentities(int index, Identity value)(Optional) A list of local identities supported by the server, if specified.ServerHandshakeParameters.BuilderaddLocalIdentities(int index, Identity.Builder builderForValue)(Optional) A list of local identities supported by the server, if specified.ServerHandshakeParameters.BuilderaddLocalIdentities(Identity value)(Optional) A list of local identities supported by the server, if specified.ServerHandshakeParameters.BuilderaddLocalIdentities(Identity.Builder builderForValue)(Optional) A list of local identities supported by the server, if specified.Identity.BuilderaddLocalIdentitiesBuilder()(Optional) A list of local identities supported by the server, if specified.Identity.BuilderaddLocalIdentitiesBuilder(int index)(Optional) A list of local identities supported by the server, if specified.ServerHandshakeParameters.BuilderaddRecordProtocols(java.lang.String value)The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".ServerHandshakeParameters.BuilderaddRecordProtocolsBytes(com.google.protobuf.ByteString value)The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".ServerHandshakeParametersbuild()ServerHandshakeParametersbuildPartial()private voidbuildPartial0(ServerHandshakeParameters result)private voidbuildPartialRepeatedFields(ServerHandshakeParameters result)ServerHandshakeParameters.Builderclear()ServerHandshakeParameters.BuilderclearLocalIdentities()(Optional) A list of local identities supported by the server, if specified.ServerHandshakeParameters.BuilderclearRecordProtocols()The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".private voidensureLocalIdentitiesIsMutable()private voidensureRecordProtocolsIsMutable()ServerHandshakeParametersgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()IdentitygetLocalIdentities(int index)(Optional) A list of local identities supported by the server, if specified.Identity.BuildergetLocalIdentitiesBuilder(int index)(Optional) A list of local identities supported by the server, if specified.java.util.List<Identity.Builder>getLocalIdentitiesBuilderList()(Optional) A list of local identities supported by the server, if specified.intgetLocalIdentitiesCount()(Optional) A list of local identities supported by the server, if specified.private com.google.protobuf.RepeatedFieldBuilder<Identity,Identity.Builder,IdentityOrBuilder>getLocalIdentitiesFieldBuilder()java.util.List<Identity>getLocalIdentitiesList()(Optional) A list of local identities supported by the server, if specified.IdentityOrBuildergetLocalIdentitiesOrBuilder(int index)(Optional) A list of local identities supported by the server, if specified.java.util.List<? extends IdentityOrBuilder>getLocalIdentitiesOrBuilderList()(Optional) A list of local identities supported by the server, if specified.java.lang.StringgetRecordProtocols(int index)The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".com.google.protobuf.ByteStringgetRecordProtocolsBytes(int index)The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".intgetRecordProtocolsCount()The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".com.google.protobuf.ProtocolStringListgetRecordProtocolsList()The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ServerHandshakeParameters.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ServerHandshakeParameters.BuildermergeFrom(com.google.protobuf.Message other)ServerHandshakeParameters.BuildermergeFrom(ServerHandshakeParameters other)ServerHandshakeParameters.BuilderremoveLocalIdentities(int index)(Optional) A list of local identities supported by the server, if specified.ServerHandshakeParameters.BuildersetLocalIdentities(int index, Identity value)(Optional) A list of local identities supported by the server, if specified.ServerHandshakeParameters.BuildersetLocalIdentities(int index, Identity.Builder builderForValue)(Optional) A list of local identities supported by the server, if specified.ServerHandshakeParameters.BuildersetRecordProtocols(int index, java.lang.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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
recordProtocols_
private com.google.protobuf.LazyStringArrayList recordProtocols_
-
localIdentities_
private java.util.List<Identity> localIdentities_
-
localIdentitiesBuilder_
private com.google.protobuf.RepeatedFieldBuilder<Identity,Identity.Builder,IdentityOrBuilder> localIdentitiesBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder>
-
clear
public ServerHandshakeParameters.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<ServerHandshakeParameters.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<ServerHandshakeParameters.Builder>
-
getDefaultInstanceForType
public ServerHandshakeParameters getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServerHandshakeParameters build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServerHandshakeParameters buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(ServerHandshakeParameters result)
-
buildPartial0
private void buildPartial0(ServerHandshakeParameters result)
-
mergeFrom
public ServerHandshakeParameters.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerHandshakeParameters.Builder>
-
mergeFrom
public ServerHandshakeParameters.Builder mergeFrom(ServerHandshakeParameters other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder>
-
mergeFrom
public ServerHandshakeParameters.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<ServerHandshakeParameters.Builder>- Throws:
java.io.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:
getRecordProtocolsListin 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:
getRecordProtocolsCountin interfaceServerHandshakeParametersOrBuilder- Returns:
- The count of recordProtocols.
-
getRecordProtocols
public java.lang.String getRecordProtocols(int index)
The record protocols supported by the server, e.g., "ALTSRP_GCM_AES128".
repeated string record_protocols = 1;- Specified by:
getRecordProtocolsin 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:
getRecordProtocolsBytesin interfaceServerHandshakeParametersOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the recordProtocols at the given index.
-
setRecordProtocols
public ServerHandshakeParameters.Builder setRecordProtocols(int index, java.lang.String value)
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
public ServerHandshakeParameters.Builder addRecordProtocols(java.lang.String value)
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
public ServerHandshakeParameters.Builder addAllRecordProtocols(java.lang.Iterable<java.lang.String> values)
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
public ServerHandshakeParameters.Builder 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
public java.util.List<Identity> 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:
getLocalIdentitiesListin 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:
getLocalIdentitiesCountin interfaceServerHandshakeParametersOrBuilder
-
getLocalIdentities
public Identity getLocalIdentities(int index)
(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:
getLocalIdentitiesin interfaceServerHandshakeParametersOrBuilder
-
setLocalIdentities
public ServerHandshakeParameters.Builder setLocalIdentities(int index, Identity value)
(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
public ServerHandshakeParameters.Builder addLocalIdentities(Identity value)
(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 value)
(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(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
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
public ServerHandshakeParameters.Builder addAllLocalIdentities(java.lang.Iterable<? extends Identity> values)
(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
public ServerHandshakeParameters.Builder 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
public ServerHandshakeParameters.Builder removeLocalIdentities(int index)
(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
public Identity.Builder getLocalIdentitiesBuilder(int index)
(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
public IdentityOrBuilder getLocalIdentitiesOrBuilder(int index)
(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:
getLocalIdentitiesOrBuilderin interfaceServerHandshakeParametersOrBuilder
-
getLocalIdentitiesOrBuilderList
public java.util.List<? extends IdentityOrBuilder> 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:
getLocalIdentitiesOrBuilderListin interfaceServerHandshakeParametersOrBuilder
-
addLocalIdentitiesBuilder
public Identity.Builder 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
public Identity.Builder addLocalIdentitiesBuilder(int index)
(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
public java.util.List<Identity.Builder> 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;
-
getLocalIdentitiesFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<Identity,Identity.Builder,IdentityOrBuilder> getLocalIdentitiesFieldBuilder()
-
-