public static interface AttributeContext.PeerOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
The labels associated with the peer.
|
String |
getIp()
The IP address of the peer.
|
com.google.protobuf.ByteString |
getIpBytes()
The IP address of the peer.
|
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.
|
long |
getPort()
The network port of the peer.
|
String |
getPrincipal()
The identity of this peer.
|
com.google.protobuf.ByteString |
getPrincipalBytes()
The identity of this peer.
|
String |
getRegionCode()
The CLDR country/region code associated with the above IP address.
|
com.google.protobuf.ByteString |
getRegionCodeBytes()
The CLDR country/region code associated with the above IP address.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getIp()
The IP address of the peer.
string ip = 1;com.google.protobuf.ByteString getIpBytes()
The IP address of the peer.
string ip = 1;long getPort()
The network port of the peer.
int64 port = 2;int getLabelsCount()
The labels associated with the peer.
map<string, string> labels = 6;boolean containsLabels(String key)
The labels associated with the peer.
map<string, string> labels = 6;@Deprecated Map<String,String> getLabels()
getLabelsMap() instead.Map<String,String> getLabelsMap()
The labels associated with the peer.
map<string, string> labels = 6;String getLabelsOrDefault(String key, String defaultValue)
The labels associated with the peer.
map<string, string> labels = 6;String getLabelsOrThrow(String key)
The labels associated with the peer.
map<string, string> labels = 6;String getPrincipal()
The identity of this peer. Similar to `Request.auth.principal`, but relative to the peer instead of the request. For example, the idenity associated with a load balancer that forwared the request.
string principal = 7;com.google.protobuf.ByteString getPrincipalBytes()
The identity of this peer. Similar to `Request.auth.principal`, but relative to the peer instead of the request. For example, the idenity associated with a load balancer that forwared the request.
string principal = 7;String getRegionCode()
The CLDR country/region code associated with the above IP address. If the IP address is private, the `region_code` should reflect the physical location where this peer is running.
string region_code = 8;com.google.protobuf.ByteString getRegionCodeBytes()
The CLDR country/region code associated with the above IP address. If the IP address is private, the `region_code` should reflect the physical location where this peer is running.
string region_code = 8;Copyright © 2021 Google LLC. All rights reserved.