public static final class AttributeContext.Peer extends com.google.protobuf.GeneratedMessageV3 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
Modifier and Type | Class and Description |
---|---|
static class |
AttributeContext.Peer.Builder
This message defines attributes for a node that handles a network request.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
ADDRESS_FIELD_NUMBER |
static int |
CERTIFICATE_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
PRINCIPAL_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsLabels(String key)
The labels associated with the peer.
|
boolean |
equals(Object obj) |
Address |
getAddress()
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.
|
static AttributeContext.Peer |
getDefaultInstance() |
AttributeContext.Peer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<AttributeContext.Peer> |
getParserForType() |
String |
getPrincipal()
The authenticated identity of this peer.
|
com.google.protobuf.ByteString |
getPrincipalBytes()
The authenticated identity of this peer.
|
int |
getSerializedSize() |
String |
getService()
The canonical service name of the peer.
|
com.google.protobuf.ByteString |
getServiceBytes()
The canonical service name of the peer.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAddress()
The address of the peer, this is typically the IP address.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static AttributeContext.Peer.Builder |
newBuilder() |
static AttributeContext.Peer.Builder |
newBuilder(AttributeContext.Peer prototype) |
AttributeContext.Peer.Builder |
newBuilderForType() |
protected AttributeContext.Peer.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AttributeContext.Peer |
parseDelimitedFrom(InputStream input) |
static AttributeContext.Peer |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Peer |
parseFrom(byte[] data) |
static AttributeContext.Peer |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Peer |
parseFrom(ByteBuffer data) |
static AttributeContext.Peer |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Peer |
parseFrom(com.google.protobuf.ByteString data) |
static AttributeContext.Peer |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Peer |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttributeContext.Peer |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Peer |
parseFrom(InputStream input) |
static AttributeContext.Peer |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttributeContext.Peer> |
parser() |
AttributeContext.Peer.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int ADDRESS_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int PRINCIPAL_FIELD_NUMBER
public static final int CERTIFICATE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
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;
hasAddress
in interface AttributeContext.PeerOrBuilder
public Address 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;
getAddress
in interface AttributeContext.PeerOrBuilder
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.v3.Address address = 1;
getAddressOrBuilder
in interface AttributeContext.PeerOrBuilder
public 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.PeerOrBuilder
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;
getServiceBytes
in interface AttributeContext.PeerOrBuilder
public int getLabelsCount()
AttributeContext.PeerOrBuilder
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;
getLabelsCount
in interface AttributeContext.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
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.PeerOrBuilder
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. Example: * SPIFFE format is `spiffe://trust-domain/path` * Google account format is `https://accounts.google.com/{userid}`
string principal = 4;
getPrincipalBytes
in interface AttributeContext.PeerOrBuilder
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.PeerOrBuilder
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;
getCertificateBytes
in interface AttributeContext.PeerOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static AttributeContext.Peer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AttributeContext.Peer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AttributeContext.Peer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AttributeContext.Peer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AttributeContext.Peer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AttributeContext.Peer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AttributeContext.Peer parseFrom(InputStream input) throws IOException
IOException
public static AttributeContext.Peer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AttributeContext.Peer parseDelimitedFrom(InputStream input) throws IOException
IOException
public static AttributeContext.Peer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AttributeContext.Peer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static AttributeContext.Peer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public AttributeContext.Peer.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static AttributeContext.Peer.Builder newBuilder()
public static AttributeContext.Peer.Builder newBuilder(AttributeContext.Peer prototype)
public AttributeContext.Peer.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected AttributeContext.Peer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static AttributeContext.Peer getDefaultInstance()
public static com.google.protobuf.Parser<AttributeContext.Peer> parser()
public com.google.protobuf.Parser<AttributeContext.Peer> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public AttributeContext.Peer getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2018–2021 The Envoy Project. All rights reserved.