public static final class AttributeContextOuterClass.AttributeContext.Peer extends com.google.protobuf.GeneratedMessageV3 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
| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeContextOuterClass.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| Modifier and Type | Field and Description |
|---|---|
static int |
ADDRESS_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) |
AddressOuterClass.Address |
getAddress()
The address of the peer, this is typically the IP address.
|
AddressOuterClass.AddressOrBuilder |
getAddressOrBuilder()
The address of the peer, this is typically the IP address.
|
static AttributeContextOuterClass.AttributeContext.Peer |
getDefaultInstance() |
AttributeContextOuterClass.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<AttributeContextOuterClass.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 AttributeContextOuterClass.AttributeContext.Peer.Builder |
newBuilder() |
static AttributeContextOuterClass.AttributeContext.Peer.Builder |
newBuilder(AttributeContextOuterClass.AttributeContext.Peer prototype) |
AttributeContextOuterClass.AttributeContext.Peer.Builder |
newBuilderForType() |
protected AttributeContextOuterClass.AttributeContext.Peer.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseDelimitedFrom(InputStream input) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseFrom(byte[] data) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseFrom(ByteBuffer data) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseFrom(com.google.protobuf.ByteString data) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseFrom(InputStream input) |
static AttributeContextOuterClass.AttributeContext.Peer |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttributeContextOuterClass.AttributeContext.Peer> |
parser() |
AttributeContextOuterClass.AttributeContext.Peer.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AttributeContextOuterClass.AttributeContext.Peer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttributeContextOuterClass.AttributeContext.Peer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttributeContextOuterClass.AttributeContext.Peer.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttributeContextOuterClass.AttributeContext.Peer.Builder newBuilder()
public static AttributeContextOuterClass.AttributeContext.Peer.Builder newBuilder(AttributeContextOuterClass.AttributeContext.Peer prototype)
public AttributeContextOuterClass.AttributeContext.Peer.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttributeContextOuterClass.AttributeContext.Peer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttributeContextOuterClass.AttributeContext.Peer getDefaultInstance()
public static com.google.protobuf.Parser<AttributeContextOuterClass.AttributeContext.Peer> parser()
public com.google.protobuf.Parser<AttributeContextOuterClass.AttributeContext.Peer> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttributeContextOuterClass.AttributeContext.Peer getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 WSO2. All rights reserved.