Package com.google.rpc.context
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(java.lang.String key)The labels associated with the peer.java.lang.StringgetIp()The IP address of the peer.com.google.protobuf.ByteStringgetIpBytes()The IP address of the peer.java.util.Map<java.lang.String,java.lang.String>getLabels()Deprecated.intgetLabelsCount()The labels associated with the peer.java.util.Map<java.lang.String,java.lang.String>getLabelsMap()The labels associated with the peer.java.lang.StringgetLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)The labels associated with the peer.java.lang.StringgetLabelsOrThrow(java.lang.String key)The labels associated with the peer.longgetPort()The network port of the peer.java.lang.StringgetPrincipal()The identity of this peer.com.google.protobuf.ByteStringgetPrincipalBytes()The identity of this peer.java.lang.StringgetRegionCode()The CLDR country/region code associated with the above IP address.com.google.protobuf.ByteStringgetRegionCodeBytes()The CLDR country/region code associated with the above IP address.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getIp
java.lang.String getIp()
The IP address of the peer.
string ip = 1;- Returns:
- The ip.
-
getIpBytes
com.google.protobuf.ByteString getIpBytes()
The IP address of the peer.
string ip = 1;- Returns:
- The bytes for ip.
-
getPort
long getPort()
The network port of the peer.
int64 port = 2;- Returns:
- The port.
-
getLabelsCount
int getLabelsCount()
The labels associated with the peer.
map<string, string> labels = 6;
-
containsLabels
boolean containsLabels(java.lang.String key)
The labels associated with the peer.
map<string, string> labels = 6;
-
getLabels
@Deprecated java.util.Map<java.lang.String,java.lang.String> getLabels()
Deprecated.UsegetLabelsMap()instead.
-
getLabelsMap
java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
The labels associated with the peer.
map<string, string> labels = 6;
-
getLabelsOrDefault
java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)The labels associated with the peer.
map<string, string> labels = 6;
-
getLabelsOrThrow
java.lang.String getLabelsOrThrow(java.lang.String key)
The labels associated with the peer.
map<string, string> labels = 6;
-
getPrincipal
java.lang.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;- Returns:
- The principal.
-
getPrincipalBytes
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;- Returns:
- The bytes for principal.
-
getRegionCode
java.lang.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;- Returns:
- The regionCode.
-
getRegionCodeBytes
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;- Returns:
- The bytes for regionCode.
-
-