AttributeContext

com.google.rpc.context.attribute_context.AttributeContext
See theAttributeContext companion object
final case class AttributeContext(origin: Option[Peer], source: Option[Peer], destination: Option[Peer], request: Option[Request], response: Option[Response], resource: Option[Resource], api: Option[Api], extensions: Seq[Any], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[AttributeContext]

This message defines the standard attribute vocabulary for Google APIs.

An attribute is a piece of metadata that describes an activity on a network service. For example, the size of an HTTP request, or the status code of an HTTP response.

Each attribute has a type and a name, which is logically defined as a proto message field in AttributeContext. The field type becomes the attribute type, and the field path becomes the attribute name. For example, the attribute source.ip maps to field AttributeContext.source.ip.

This message definition is guaranteed not to have any wire breaking change. So you can use it directly for passing attributes across different systems.

NOTE: Different system may generate different subset of attributes. Please verify the system specification before relying on an attribute generated a system.

Value parameters

api

Represents an API operation that is involved to a network activity.

destination

The destination of a network activity, such as accepting a TCP connection. In a multi hop network activity, the destination represents the receiver of the last hop.

extensions

Supports extensions for advanced use cases, such as logs and metrics.

origin

The origin of a network activity. In a multi hop network activity, the origin represents the sender of the first hop. For the first hop, the source and the origin must have the same content.

request

Represents a network request, such as an HTTP request.

resource

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

response

Represents a network response, such as an HTTP response.

source

The source of a network activity, such as starting a TCP connection. In a multi hop network activity, the source represents the sender of the last hop.

Attributes

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

Members list

Value members

Concrete methods

def addAllExtensions(`__vs`: Iterable[Any]): AttributeContext

Attributes

Source
AttributeContext.scala

Attributes

Source
AttributeContext.scala

Attributes

Source
AttributeContext.scala
def getApi: Api

Attributes

Source
AttributeContext.scala

Attributes

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

Attributes

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

Attributes

Source
AttributeContext.scala

Attributes

Source
AttributeContext.scala

Attributes

Source
AttributeContext.scala

Attributes

Source
AttributeContext.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
AttributeContext.scala
def toProtoString: String

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

Attributes

Source
AttributeContext.scala
def withExtensions(`__v`: Seq[Any]): AttributeContext

Attributes

Source
AttributeContext.scala

Attributes

Source
AttributeContext.scala

Attributes

Source
AttributeContext.scala
def withUnknownFields(`__v`: UnknownFieldSet): AttributeContext

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

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

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
final def toByteString: ByteString

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

Attributes

Inherited from:
Updatable
Source
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala