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.v4alpha.AttributeContext.Peer| Modifier and Type | Method and Description |
|---|---|
AttributeContext.Peer.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Peer |
build() |
AttributeContext.Peer |
buildPartial() |
AttributeContext.Peer.Builder |
clear() |
AttributeContext.Peer.Builder |
clearAddress()
The address of the peer, this is typically the IP address.
|
AttributeContext.Peer.Builder |
clearCertificate()
The X.509 certificate used to authenticate the identify of this peer.
|
AttributeContext.Peer.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AttributeContext.Peer.Builder |
clearLabels() |
AttributeContext.Peer.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AttributeContext.Peer.Builder |
clearPrincipal()
The authenticated identity of this peer.
|
AttributeContext.Peer.Builder |
clearService()
The canonical service name of the peer.
|
AttributeContext.Peer.Builder |
clone() |
boolean |
containsLabels(String key)
The labels associated with the peer.
|
Address |
getAddress()
The address of the peer, this is typically the IP address.
|
Address.Builder |
getAddressBuilder()
The address of the peer, this is typically the IP address.
|
AddressOrBuilder |
getAddressOrBuilder()
The address of the peer, this is typically the IP address.
|
String |
getCertificate()
The X.509 certificate used to authenticate the identify of this peer.
|
com.google.protobuf.ByteString |
getCertificateBytes()
The X.509 certificate used to authenticate the identify of this peer.
|
AttributeContext.Peer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The labels associated with the peer.
|
Map<String,String> |
getLabelsMap()
The labels associated with the peer.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
The labels associated with the peer.
|
String |
getLabelsOrThrow(String key)
The labels associated with the peer.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getPrincipal()
The authenticated identity of this peer.
|
com.google.protobuf.ByteString |
getPrincipalBytes()
The authenticated identity of this peer.
|
String |
getService()
The canonical service name of the peer.
|
com.google.protobuf.ByteString |
getServiceBytes()
The canonical service name of the peer.
|
boolean |
hasAddress()
The address of the peer, this is typically the IP address.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
AttributeContext.Peer.Builder |
mergeAddress(Address value)
The address of the peer, this is typically the IP address.
|
AttributeContext.Peer.Builder |
mergeFrom(AttributeContext.Peer other) |
AttributeContext.Peer.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AttributeContext.Peer.Builder |
mergeFrom(com.google.protobuf.Message other) |
AttributeContext.Peer.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AttributeContext.Peer.Builder |
putAllLabels(Map<String,String> values)
The labels associated with the peer.
|
AttributeContext.Peer.Builder |
putLabels(String key,
String value)
The labels associated with the peer.
|
AttributeContext.Peer.Builder |
removeLabels(String key)
The labels associated with the peer.
|
AttributeContext.Peer.Builder |
setAddress(Address.Builder builderForValue)
The address of the peer, this is typically the IP address.
|
AttributeContext.Peer.Builder |
setAddress(Address value)
The address of the peer, this is typically the IP address.
|
AttributeContext.Peer.Builder |
setCertificate(String value)
The X.509 certificate used to authenticate the identify of this peer.
|
AttributeContext.Peer.Builder |
setCertificateBytes(com.google.protobuf.ByteString value)
The X.509 certificate used to authenticate the identify of this peer.
|
AttributeContext.Peer.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Peer.Builder |
setPrincipal(String value)
The authenticated identity of this peer.
|
AttributeContext.Peer.Builder |
setPrincipalBytes(com.google.protobuf.ByteString value)
The authenticated identity of this peer.
|
AttributeContext.Peer.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttributeContext.Peer.Builder |
setService(String value)
The canonical service name of the peer.
|
AttributeContext.Peer.Builder |
setServiceBytes(com.google.protobuf.ByteString value)
The canonical service name of the peer.
|
AttributeContext.Peer.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public AttributeContext.Peer.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public AttributeContext.Peer getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttributeContext.Peer build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttributeContext.Peer buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttributeContext.Peer.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public AttributeContext.Peer.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public AttributeContext.Peer.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public AttributeContext.Peer.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public AttributeContext.Peer.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public AttributeContext.Peer.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public AttributeContext.Peer.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Peer.Builder>public AttributeContext.Peer.Builder mergeFrom(AttributeContext.Peer other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public AttributeContext.Peer.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Peer.Builder>IOExceptionpublic boolean hasAddress()
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v4alpha.Address address = 1;hasAddress in interface AttributeContext.PeerOrBuilderpublic Address getAddress()
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v4alpha.Address address = 1;getAddress in interface AttributeContext.PeerOrBuilderpublic AttributeContext.Peer.Builder setAddress(Address value)
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v4alpha.Address address = 1;public AttributeContext.Peer.Builder setAddress(Address.Builder builderForValue)
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v4alpha.Address address = 1;public AttributeContext.Peer.Builder mergeAddress(Address value)
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v4alpha.Address address = 1;public AttributeContext.Peer.Builder clearAddress()
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v4alpha.Address address = 1;public Address.Builder getAddressBuilder()
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v4alpha.Address address = 1;public AddressOrBuilder getAddressOrBuilder()
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.config.core.v4alpha.Address address = 1;getAddressOrBuilder in interface AttributeContext.PeerOrBuilderpublic String 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;getService in interface AttributeContext.PeerOrBuilderpublic 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;getServiceBytes in interface AttributeContext.PeerOrBuilderpublic AttributeContext.Peer.Builder setService(String value)
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;public AttributeContext.Peer.Builder 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;public AttributeContext.Peer.Builder setServiceBytes(com.google.protobuf.ByteString value)
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;public int getLabelsCount()
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;getLabelsCount in interface AttributeContext.PeerOrBuilderpublic boolean containsLabels(String key)
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;containsLabels in interface AttributeContext.PeerOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface AttributeContext.PeerOrBuilderpublic Map<String,String> 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;getLabelsMap in interface AttributeContext.PeerOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
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;getLabelsOrDefault in interface AttributeContext.PeerOrBuilderpublic String getLabelsOrThrow(String key)
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;getLabelsOrThrow in interface AttributeContext.PeerOrBuilderpublic AttributeContext.Peer.Builder clearLabels()
public AttributeContext.Peer.Builder removeLabels(String key)
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;@Deprecated public Map<String,String> getMutableLabels()
public AttributeContext.Peer.Builder putLabels(String key, String value)
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;public AttributeContext.Peer.Builder putAllLabels(Map<String,String> values)
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;public String 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.
Example:
* SPIFFE format is `spiffe://trust-domain/path`
* Google account format is `https://accounts.google.com/{userid}`
string principal = 4;getPrincipal in interface AttributeContext.PeerOrBuilderpublic 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.
Example:
* SPIFFE format is `spiffe://trust-domain/path`
* Google account format is `https://accounts.google.com/{userid}`
string principal = 4;getPrincipalBytes in interface AttributeContext.PeerOrBuilderpublic AttributeContext.Peer.Builder setPrincipal(String value)
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.
Example:
* SPIFFE format is `spiffe://trust-domain/path`
* Google account format is `https://accounts.google.com/{userid}`
string principal = 4;public AttributeContext.Peer.Builder 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.
Example:
* SPIFFE format is `spiffe://trust-domain/path`
* Google account format is `https://accounts.google.com/{userid}`
string principal = 4;public AttributeContext.Peer.Builder setPrincipalBytes(com.google.protobuf.ByteString value)
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.
Example:
* SPIFFE format is `spiffe://trust-domain/path`
* Google account format is `https://accounts.google.com/{userid}`
string principal = 4;public String 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;getCertificate in interface AttributeContext.PeerOrBuilderpublic 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;getCertificateBytes in interface AttributeContext.PeerOrBuilderpublic AttributeContext.Peer.Builder setCertificate(String value)
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;public AttributeContext.Peer.Builder 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;public AttributeContext.Peer.Builder setCertificateBytes(com.google.protobuf.ByteString value)
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;public final AttributeContext.Peer.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>public final AttributeContext.Peer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Peer.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.