Class Alts.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
- io.envoyproxy.envoy.extensions.transport_sockets.alts.v3.Alts.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AltsOrBuilder,Cloneable
- Enclosing class:
- Alts
public static final class Alts.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder> implements AltsOrBuilder
Configuration for ALTS transport socket. This provides Google's ALTS protocol to Envoy. Store the peer identity in dynamic metadata, namespace is "envoy.transport_socket.peer_information", key is "peer_identity". https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security/
Protobuf typeenvoy.extensions.transport_sockets.alts.v3.Alts
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Alts.BuilderaddAllPeerServiceAccounts(Iterable<String> values)The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step.Alts.BuilderaddPeerServiceAccounts(String value)The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step.Alts.BuilderaddPeerServiceAccountsBytes(com.google.protobuf.ByteString value)The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step.Alts.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Altsbuild()AltsbuildPartial()Alts.Builderclear()Alts.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Alts.BuilderclearHandshakerService()The location of a handshaker service, this is usually 169.254.169.254:8080 on GCE.Alts.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Alts.BuilderclearPeerServiceAccounts()The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step.Alts.Builderclone()AltsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetHandshakerService()The location of a handshaker service, this is usually 169.254.169.254:8080 on GCE.com.google.protobuf.ByteStringgetHandshakerServiceBytes()The location of a handshaker service, this is usually 169.254.169.254:8080 on GCE.StringgetPeerServiceAccounts(int index)The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step.com.google.protobuf.ByteStringgetPeerServiceAccountsBytes(int index)The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step.intgetPeerServiceAccountsCount()The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step.com.google.protobuf.ProtocolStringListgetPeerServiceAccountsList()The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Alts.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Alts.BuildermergeFrom(com.google.protobuf.Message other)Alts.BuildermergeFrom(Alts other)Alts.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Alts.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Alts.BuildersetHandshakerService(String value)The location of a handshaker service, this is usually 169.254.169.254:8080 on GCE.Alts.BuildersetHandshakerServiceBytes(com.google.protobuf.ByteString value)The location of a handshaker service, this is usually 169.254.169.254:8080 on GCE.Alts.BuildersetPeerServiceAccounts(int index, String value)The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step.Alts.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Alts.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
clear
public Alts.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.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.GeneratedMessageV3.Builder<Alts.Builder>
-
getDefaultInstanceForType
public Alts getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Alts build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Alts buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Alts.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
setField
public Alts.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
clearField
public Alts.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
clearOneof
public Alts.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
setRepeatedField
public Alts.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
addRepeatedField
public Alts.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
mergeFrom
public Alts.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Alts.Builder>
-
mergeFrom
public Alts.Builder mergeFrom(Alts other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
mergeFrom
public Alts.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<Alts.Builder>- Throws:
IOException
-
getHandshakerService
public String getHandshakerService()
The location of a handshaker service, this is usually 169.254.169.254:8080 on GCE.
string handshaker_service = 1 [(.validate.rules) = { ... }- Specified by:
getHandshakerServicein interfaceAltsOrBuilder- Returns:
- The handshakerService.
-
getHandshakerServiceBytes
public com.google.protobuf.ByteString getHandshakerServiceBytes()
The location of a handshaker service, this is usually 169.254.169.254:8080 on GCE.
string handshaker_service = 1 [(.validate.rules) = { ... }- Specified by:
getHandshakerServiceBytesin interfaceAltsOrBuilder- Returns:
- The bytes for handshakerService.
-
setHandshakerService
public Alts.Builder setHandshakerService(String value)
The location of a handshaker service, this is usually 169.254.169.254:8080 on GCE.
string handshaker_service = 1 [(.validate.rules) = { ... }- Parameters:
value- The handshakerService to set.- Returns:
- This builder for chaining.
-
clearHandshakerService
public Alts.Builder clearHandshakerService()
The location of a handshaker service, this is usually 169.254.169.254:8080 on GCE.
string handshaker_service = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setHandshakerServiceBytes
public Alts.Builder setHandshakerServiceBytes(com.google.protobuf.ByteString value)
The location of a handshaker service, this is usually 169.254.169.254:8080 on GCE.
string handshaker_service = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for handshakerService to set.- Returns:
- This builder for chaining.
-
getPeerServiceAccountsList
public com.google.protobuf.ProtocolStringList getPeerServiceAccountsList()
The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step. If empty, no validation will be performed.
repeated string peer_service_accounts = 2;- Specified by:
getPeerServiceAccountsListin interfaceAltsOrBuilder- Returns:
- A list containing the peerServiceAccounts.
-
getPeerServiceAccountsCount
public int getPeerServiceAccountsCount()
The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step. If empty, no validation will be performed.
repeated string peer_service_accounts = 2;- Specified by:
getPeerServiceAccountsCountin interfaceAltsOrBuilder- Returns:
- The count of peerServiceAccounts.
-
getPeerServiceAccounts
public String getPeerServiceAccounts(int index)
The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step. If empty, no validation will be performed.
repeated string peer_service_accounts = 2;- Specified by:
getPeerServiceAccountsin interfaceAltsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The peerServiceAccounts at the given index.
-
getPeerServiceAccountsBytes
public com.google.protobuf.ByteString getPeerServiceAccountsBytes(int index)
The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step. If empty, no validation will be performed.
repeated string peer_service_accounts = 2;- Specified by:
getPeerServiceAccountsBytesin interfaceAltsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the peerServiceAccounts at the given index.
-
setPeerServiceAccounts
public Alts.Builder setPeerServiceAccounts(int index, String value)
The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step. If empty, no validation will be performed.
repeated string peer_service_accounts = 2;- Parameters:
index- The index to set the value at.value- The peerServiceAccounts to set.- Returns:
- This builder for chaining.
-
addPeerServiceAccounts
public Alts.Builder addPeerServiceAccounts(String value)
The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step. If empty, no validation will be performed.
repeated string peer_service_accounts = 2;- Parameters:
value- The peerServiceAccounts to add.- Returns:
- This builder for chaining.
-
addAllPeerServiceAccounts
public Alts.Builder addAllPeerServiceAccounts(Iterable<String> values)
The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step. If empty, no validation will be performed.
repeated string peer_service_accounts = 2;- Parameters:
values- The peerServiceAccounts to add.- Returns:
- This builder for chaining.
-
clearPeerServiceAccounts
public Alts.Builder clearPeerServiceAccounts()
The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step. If empty, no validation will be performed.
repeated string peer_service_accounts = 2;- Returns:
- This builder for chaining.
-
addPeerServiceAccountsBytes
public Alts.Builder addPeerServiceAccountsBytes(com.google.protobuf.ByteString value)
The acceptable service accounts from peer, peers not in the list will be rejected in the handshake validation step. If empty, no validation will be performed.
repeated string peer_service_accounts = 2;- Parameters:
value- The bytes of the peerServiceAccounts to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Alts.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
mergeUnknownFields
public final Alts.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Alts.Builder>
-
-