Peer

com.google.rpc.context.attribute_context.AttributeContext.Peer
See thePeer companion object
final case class Peer(ip: String, port: Long, labels: Map[String, String], principal: String, regionCode: String, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Peer]

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 principal and labels as appropriate.

Value parameters

ip

The IP address of the peer.

labels

The labels associated with the peer.

port

The network port of the peer.

principal

The identity of this peer. Similar to Request.auth.principal, but relative to the peer instead of the request. For example, the identity associated with a load balancer that forwarded the request.

regionCode

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.

Attributes

Companion
object
Source
AttributeContext.scala
Graph
Supertypes
trait Updatable[Peer]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addAllLabels(`__vs`: Iterable[(String, String)]): Peer

Attributes

Source
AttributeContext.scala
def addLabels(`__vs`: (String, String)*): Peer

Attributes

Source
AttributeContext.scala

Attributes

Source
AttributeContext.scala
def companion: Peer.type

Attributes

Source
AttributeContext.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
AttributeContext.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
AttributeContext.scala
override def serializedSize: Int

Attributes

Definition Classes
Source
AttributeContext.scala

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

Source
AttributeContext.scala
def withIp(`__v`: String): Peer

Attributes

Source
AttributeContext.scala
def withLabels(`__v`: Map[String, String]): Peer

Attributes

Source
AttributeContext.scala
def withPort(`__v`: Long): Peer

Attributes

Source
AttributeContext.scala
def withPrincipal(`__v`: String): Peer

Attributes

Source
AttributeContext.scala
def withRegionCode(`__v`: String): Peer

Attributes

Source
AttributeContext.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
AttributeContext.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
def update(ms: (Lens[Peer, Peer]) => () => Peer*): Peer

Attributes

Inherited from:
Updatable
Source
Lenses.scala

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala