Request

com.google.rpc.context.attribute_context.AttributeContext$.Request
See theRequest companion object
final case class Request(id: String, method: String, headers: Map[String, String], path: String, host: String, scheme: String, query: String, time: Option[Timestamp], size: Long, protocol: String, reason: String, auth: Option[Auth], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Request]

This message defines attributes for an HTTP request. If the actual request is not an HTTP request, the runtime system should try to map the actual request to an equivalent HTTP request.

Attributes

auth

The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request Authorization header or equivalent.

headers

The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.

host

The HTTP request Host header value.

id

The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service.

method

The HTTP request method, such as GET, POST.

path

The HTTP URL path, excluding the query parameters.

protocol

The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for details.

query

The HTTP URL query in the format of name1=value1&name2=value2, as it appears in the first line of the HTTP request. No decoding is performed.

reason

A special parameter for request reason. It is used by security systems to associate auditing information with a request.

scheme

The HTTP URL scheme, such as http and https.

size

The HTTP request size in bytes. If unknown, it must be -1.

time

The timestamp when the destination service receives the last byte of the request.

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

Members list

Concise view

Value members

Concrete methods

def addHeaders(`__vs`: (String, String)*): Request

Attributes

Source:
AttributeContext.scala
def companion: Request.type

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
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
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 withAuth(`__v`: Auth): Request

Attributes

Source:
AttributeContext.scala
def withHost(`__v`: String): Request

Attributes

Source:
AttributeContext.scala
def withId(`__v`: String): Request

Attributes

Source:
AttributeContext.scala

Attributes

Source:
AttributeContext.scala
def withPath(`__v`: String): Request

Attributes

Source:
AttributeContext.scala

Attributes

Source:
AttributeContext.scala
def withQuery(`__v`: String): Request

Attributes

Source:
AttributeContext.scala

Attributes

Source:
AttributeContext.scala

Attributes

Source:
AttributeContext.scala
def withSize(`__v`: Long): Request

Attributes

Source:
AttributeContext.scala

Attributes

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

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
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
def update(ms: Lens[Request, Request] => () => Request*): A

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