Interface AttributeContext.PeerOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
AttributeContext.Peer, AttributeContext.Peer.Builder
Enclosing class:
AttributeContext

public static interface AttributeContext.PeerOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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 X.509 certificate used to authenticate the identify of this peer.
    com.google.protobuf.ByteString
    The X.509 certificate used to authenticate the identify of this peer.
    Deprecated.
    int
    The labels associated with the peer.
    The labels associated with the peer.
    getLabelsOrDefault(String key, String defaultValue)
    The labels associated with the peer.
    The labels associated with the peer.
    The authenticated identity of this peer.
    com.google.protobuf.ByteString
    The authenticated identity of this peer.
    The canonical service name of the peer.
    com.google.protobuf.ByteString
    The canonical service name of the peer.
    boolean
    The address of the peer, this is typically the IP address.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasAddress

      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;
      Returns:
      Whether the address field is set.
    • getAddress

      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;
      Returns:
      The address.
    • getAddressOrBuilder

      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;
    • getService

      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;
      Returns:
      The service.
    • getServiceBytes

      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;
      Returns:
      The bytes for service.
    • getLabelsCount

      int getLabelsCount()
       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

      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;
    • getLabels

      Deprecated.
      Use getLabelsMap() instead.
    • getLabelsMap

      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;
    • getLabelsOrDefault

      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;
    • getLabelsOrThrow

      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;
    • getPrincipal

      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;
      Returns:
      The principal.
    • getPrincipalBytes

      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;
      Returns:
      The bytes for principal.
    • getCertificate

      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;
      Returns:
      The certificate.
    • getCertificateBytes

      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;
      Returns:
      The bytes for certificate.