Class AttributeContext.Peer.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>
io.envoyproxy.envoy.service.auth.v3.AttributeContext.Peer.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AttributeContext.PeerOrBuilder,Cloneable
- Enclosing class:
- AttributeContext.Peer
public static final class AttributeContext.Peer.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>
implements AttributeContext.PeerOrBuilder
This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in the ``service``, ``principal``, and ``labels`` as appropriate. [#next-free-field: 6]Protobuf type
envoy.service.auth.v3.AttributeContext.Peer-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The address of the peer, this is typically the IP address.The X.509 certificate used to authenticate the identify of this peer.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The authenticated identity of this peer.The canonical service name of the peer.clone()booleancontainsLabels(String key) The labels associated with the peer.The address of the peer, this is typically the IP address.The address of the peer, this is typically the IP address.The address of the peer, this is typically the IP address.The X.509 certificate used to authenticate the identify of this peer.com.google.protobuf.ByteStringThe X.509 certificate used to authenticate the identify of this peer.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intThe labels associated with the peer.The labels associated with the peer.getLabelsOrDefault(String key, String defaultValue) The labels associated with the peer.getLabelsOrThrow(String key) The labels associated with the peer.Deprecated.The authenticated identity of this peer.com.google.protobuf.ByteStringThe authenticated identity of this peer.The canonical service name of the peer.com.google.protobuf.ByteStringThe canonical service name of the peer.booleanThe address of the peer, this is typically the IP address.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeAddress(Address value) The address of the peer, this is typically the IP address.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(AttributeContext.Peer other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllLabels(Map<String, String> values) The labels associated with the peer.The labels associated with the peer.removeLabels(String key) The labels associated with the peer.setAddress(Address value) The address of the peer, this is typically the IP address.setAddress(Address.Builder builderForValue) The address of the peer, this is typically the IP address.setCertificate(String value) The X.509 certificate used to authenticate the identify of this peer.setCertificateBytes(com.google.protobuf.ByteString value) The X.509 certificate used to authenticate the identify of this peer.setPrincipal(String value) The authenticated identity of this peer.setPrincipalBytes(com.google.protobuf.ByteString value) The authenticated identity of this peer.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setService(String value) The canonical service name of the peer.setServiceBytes(com.google.protobuf.ByteString value) The canonical service name of the peer.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.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<AttributeContext.Peer.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<AttributeContext.Peer.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<AttributeContext.Peer.Builder>
-
setField
public AttributeContext.Peer.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<AttributeContext.Peer.Builder>
-
clearField
public AttributeContext.Peer.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>
-
clearOneof
public AttributeContext.Peer.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>
-
setRepeatedField
public AttributeContext.Peer.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<AttributeContext.Peer.Builder>
-
addRepeatedField
public AttributeContext.Peer.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<AttributeContext.Peer.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Peer.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>
-
mergeFrom
public AttributeContext.Peer.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<AttributeContext.Peer.Builder>- Throws:
IOException
-
hasAddress
public boolean hasAddress()The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v3.Address address = 1;- Specified by:
hasAddressin interfaceAttributeContext.PeerOrBuilder- Returns:
- Whether the address field is set.
-
getAddress
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v3.Address address = 1;- Specified by:
getAddressin interfaceAttributeContext.PeerOrBuilder- Returns:
- The address.
-
setAddress
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v3.Address address = 1; -
setAddress
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v3.Address address = 1; -
mergeAddress
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v3.Address address = 1; -
clearAddress
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v3.Address address = 1; -
getAddressBuilder
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v3.Address address = 1; -
getAddressOrBuilder
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v3.Address address = 1;- Specified by:
getAddressOrBuilderin interfaceAttributeContext.PeerOrBuilder
-
getService
The canonical service name of the peer. It should be set to :ref:`the HTTP x-envoy-downstream-service-cluster <config_http_conn_man_headers_downstream-service-cluster>` If a more trusted source of the service name is available through mTLS/secure naming, it should be used.
string service = 2;- Specified by:
getServicein interfaceAttributeContext.PeerOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()The canonical service name of the peer. It should be set to :ref:`the HTTP x-envoy-downstream-service-cluster <config_http_conn_man_headers_downstream-service-cluster>` If a more trusted source of the service name is available through mTLS/secure naming, it should be used.
string service = 2;- Specified by:
getServiceBytesin interfaceAttributeContext.PeerOrBuilder- Returns:
- The bytes for service.
-
setService
The canonical service name of the peer. It should be set to :ref:`the HTTP x-envoy-downstream-service-cluster <config_http_conn_man_headers_downstream-service-cluster>` If a more trusted source of the service name is available through mTLS/secure naming, it should be used.
string service = 2;- Parameters:
value- The service to set.- Returns:
- This builder for chaining.
-
clearService
The canonical service name of the peer. It should be set to :ref:`the HTTP x-envoy-downstream-service-cluster <config_http_conn_man_headers_downstream-service-cluster>` If a more trusted source of the service name is available through mTLS/secure naming, it should be used.
string service = 2;- Returns:
- This builder for chaining.
-
setServiceBytes
The canonical service name of the peer. It should be set to :ref:`the HTTP x-envoy-downstream-service-cluster <config_http_conn_man_headers_downstream-service-cluster>` If a more trusted source of the service name is available through mTLS/secure naming, it should be used.
string service = 2;- Parameters:
value- The bytes for service to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:AttributeContext.PeerOrBuilderThe labels associated with the peer. These could be pod labels for Kubernetes or tags for VMs. The source of the labels could be an X.509 certificate or other configuration.
map<string, string> labels = 3;- Specified by:
getLabelsCountin interfaceAttributeContext.PeerOrBuilder
-
containsLabels
The labels associated with the peer. These could be pod labels for Kubernetes or tags for VMs. The source of the labels could be an X.509 certificate or other configuration.
map<string, string> labels = 3;- Specified by:
containsLabelsin interfaceAttributeContext.PeerOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAttributeContext.PeerOrBuilder
-
getLabelsMap
The labels associated with the peer. These could be pod labels for Kubernetes or tags for VMs. The source of the labels could be an X.509 certificate or other configuration.
map<string, string> labels = 3;- Specified by:
getLabelsMapin interfaceAttributeContext.PeerOrBuilder
-
getLabelsOrDefault
The labels associated with the peer. These could be pod labels for Kubernetes or tags for VMs. The source of the labels could be an X.509 certificate or other configuration.
map<string, string> labels = 3;- Specified by:
getLabelsOrDefaultin interfaceAttributeContext.PeerOrBuilder
-
getLabelsOrThrow
The labels associated with the peer. These could be pod labels for Kubernetes or tags for VMs. The source of the labels could be an X.509 certificate or other configuration.
map<string, string> labels = 3;- Specified by:
getLabelsOrThrowin interfaceAttributeContext.PeerOrBuilder
-
clearLabels
-
removeLabels
The labels associated with the peer. These could be pod labels for Kubernetes or tags for VMs. The source of the labels could be an X.509 certificate or other configuration.
map<string, string> labels = 3; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
The labels associated with the peer. These could be pod labels for Kubernetes or tags for VMs. The source of the labels could be an X.509 certificate or other configuration.
map<string, string> labels = 3; -
putAllLabels
The labels associated with the peer. These could be pod labels for Kubernetes or tags for VMs. The source of the labels could be an X.509 certificate or other configuration.
map<string, string> labels = 3; -
getPrincipal
The authenticated identity of this peer. For example, the identity associated with the workload such as a service account. If an X.509 certificate is used to assert the identity this field should be sourced from ``URI Subject Alternative Names``, ``DNS Subject Alternate Names`` or ``Subject`` in that order. The primary identity should be the principal. The principal format is issuer specific. Examples: - SPIFFE format is ``spiffe://trust-domain/path``. - Google account format is ``https://accounts.google.com/{userid}``.string principal = 4;- Specified by:
getPrincipalin interfaceAttributeContext.PeerOrBuilder- Returns:
- The principal.
-
getPrincipalBytes
public com.google.protobuf.ByteString getPrincipalBytes()The authenticated identity of this peer. For example, the identity associated with the workload such as a service account. If an X.509 certificate is used to assert the identity this field should be sourced from ``URI Subject Alternative Names``, ``DNS Subject Alternate Names`` or ``Subject`` in that order. The primary identity should be the principal. The principal format is issuer specific. Examples: - SPIFFE format is ``spiffe://trust-domain/path``. - Google account format is ``https://accounts.google.com/{userid}``.string principal = 4;- Specified by:
getPrincipalBytesin interfaceAttributeContext.PeerOrBuilder- Returns:
- The bytes for principal.
-
setPrincipal
The authenticated identity of this peer. For example, the identity associated with the workload such as a service account. If an X.509 certificate is used to assert the identity this field should be sourced from ``URI Subject Alternative Names``, ``DNS Subject Alternate Names`` or ``Subject`` in that order. The primary identity should be the principal. The principal format is issuer specific. Examples: - SPIFFE format is ``spiffe://trust-domain/path``. - Google account format is ``https://accounts.google.com/{userid}``.string principal = 4;- Parameters:
value- The principal to set.- Returns:
- This builder for chaining.
-
clearPrincipal
The authenticated identity of this peer. For example, the identity associated with the workload such as a service account. If an X.509 certificate is used to assert the identity this field should be sourced from ``URI Subject Alternative Names``, ``DNS Subject Alternate Names`` or ``Subject`` in that order. The primary identity should be the principal. The principal format is issuer specific. Examples: - SPIFFE format is ``spiffe://trust-domain/path``. - Google account format is ``https://accounts.google.com/{userid}``.string principal = 4;- Returns:
- This builder for chaining.
-
setPrincipalBytes
The authenticated identity of this peer. For example, the identity associated with the workload such as a service account. If an X.509 certificate is used to assert the identity this field should be sourced from ``URI Subject Alternative Names``, ``DNS Subject Alternate Names`` or ``Subject`` in that order. The primary identity should be the principal. The principal format is issuer specific. Examples: - SPIFFE format is ``spiffe://trust-domain/path``. - Google account format is ``https://accounts.google.com/{userid}``.string principal = 4;- Parameters:
value- The bytes for principal to set.- Returns:
- This builder for chaining.
-
getCertificate
The X.509 certificate used to authenticate the identify of this peer. When present, the certificate contents are encoded in URL and PEM format.
string certificate = 5;- Specified by:
getCertificatein interfaceAttributeContext.PeerOrBuilder- Returns:
- The certificate.
-
getCertificateBytes
public com.google.protobuf.ByteString getCertificateBytes()The X.509 certificate used to authenticate the identify of this peer. When present, the certificate contents are encoded in URL and PEM format.
string certificate = 5;- Specified by:
getCertificateBytesin interfaceAttributeContext.PeerOrBuilder- Returns:
- The bytes for certificate.
-
setCertificate
The X.509 certificate used to authenticate the identify of this peer. When present, the certificate contents are encoded in URL and PEM format.
string certificate = 5;- Parameters:
value- The certificate to set.- Returns:
- This builder for chaining.
-
clearCertificate
The X.509 certificate used to authenticate the identify of this peer. When present, the certificate contents are encoded in URL and PEM format.
string certificate = 5;- Returns:
- This builder for chaining.
-
setCertificateBytes
The X.509 certificate used to authenticate the identify of this peer. When present, the certificate contents are encoded in URL and PEM format.
string certificate = 5;- Parameters:
value- The bytes for certificate to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AttributeContext.Peer.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>
-
mergeUnknownFields
public final AttributeContext.Peer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>
-