public static final class AttributeContextOuterClass.AttributeContext.Peer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AttributeContextOuterClass.AttributeContext.Peer.Builder> implements AttributeContextOuterClass.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.
Protobuf type envoy.service.auth.v2alpha.AttributeContext.Peer
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<AttributeContextOuterClass.AttributeContext.Peer.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContextOuterClass.AttributeContext.Peer.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContextOuterClass.AttributeContext.Peer.Builder>public AttributeContextOuterClass.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<AttributeContextOuterClass.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<AttributeContextOuterClass.AttributeContext.Peer.Builder>public AttributeContextOuterClass.AttributeContext.Peer getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttributeContextOuterClass.AttributeContext.Peer build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttributeContextOuterClass.AttributeContext.Peer buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttributeContextOuterClass.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<AttributeContextOuterClass.AttributeContext.Peer.Builder>public AttributeContextOuterClass.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<AttributeContextOuterClass.AttributeContext.Peer.Builder>public AttributeContextOuterClass.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<AttributeContextOuterClass.AttributeContext.Peer.Builder>public AttributeContextOuterClass.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<AttributeContextOuterClass.AttributeContext.Peer.Builder>public AttributeContextOuterClass.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<AttributeContextOuterClass.AttributeContext.Peer.Builder>public AttributeContextOuterClass.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<AttributeContextOuterClass.AttributeContext.Peer.Builder>public AttributeContextOuterClass.AttributeContext.Peer.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeContextOuterClass.AttributeContext.Peer.Builder>public AttributeContextOuterClass.AttributeContext.Peer.Builder mergeFrom(AttributeContextOuterClass.AttributeContext.Peer other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContextOuterClass.AttributeContext.Peer.Builder>public AttributeContextOuterClass.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<AttributeContextOuterClass.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.api.v2.core.Address address = 1;hasAddress in interface AttributeContextOuterClass.AttributeContext.PeerOrBuilderpublic AddressOuterClass.Address getAddress()
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.api.v2.core.Address address = 1;getAddress in interface AttributeContextOuterClass.AttributeContext.PeerOrBuilderpublic AttributeContextOuterClass.AttributeContext.Peer.Builder setAddress(AddressOuterClass.Address value)
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.api.v2.core.Address address = 1;public AttributeContextOuterClass.AttributeContext.Peer.Builder setAddress(AddressOuterClass.Address.Builder builderForValue)
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.api.v2.core.Address address = 1;public AttributeContextOuterClass.AttributeContext.Peer.Builder mergeAddress(AddressOuterClass.Address value)
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.api.v2.core.Address address = 1;public AttributeContextOuterClass.AttributeContext.Peer.Builder clearAddress()
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.api.v2.core.Address address = 1;public AddressOuterClass.Address.Builder getAddressBuilder()
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.api.v2.core.Address address = 1;public AddressOuterClass.AddressOrBuilder getAddressOrBuilder()
The address of the peer, this is typically the IP address. It can also be UDS path, or others.
.envoy.api.v2.core.Address address = 1;getAddressOrBuilder in interface AttributeContextOuterClass.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 AttributeContextOuterClass.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 AttributeContextOuterClass.AttributeContext.PeerOrBuilderpublic AttributeContextOuterClass.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 AttributeContextOuterClass.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 AttributeContextOuterClass.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()
AttributeContextOuterClass.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 AttributeContextOuterClass.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 AttributeContextOuterClass.AttributeContext.PeerOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface AttributeContextOuterClass.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 AttributeContextOuterClass.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 AttributeContextOuterClass.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 AttributeContextOuterClass.AttributeContext.PeerOrBuilderpublic AttributeContextOuterClass.AttributeContext.Peer.Builder clearLabels()
public AttributeContextOuterClass.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 AttributeContextOuterClass.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 AttributeContextOuterClass.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
`Subject` or `Subject Alternative Names`. 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 AttributeContextOuterClass.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
`Subject` or `Subject Alternative Names`. 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 AttributeContextOuterClass.AttributeContext.PeerOrBuilderpublic AttributeContextOuterClass.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
`Subject` or `Subject Alternative Names`. 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 AttributeContextOuterClass.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
`Subject` or `Subject Alternative Names`. 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 AttributeContextOuterClass.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
`Subject` or `Subject Alternative Names`. 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 final AttributeContextOuterClass.AttributeContext.Peer.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContextOuterClass.AttributeContext.Peer.Builder>public final AttributeContextOuterClass.AttributeContext.Peer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContextOuterClass.AttributeContext.Peer.Builder>Copyright © 2019 WSO2. All rights reserved.