Response

com.google.rpc.context.attribute_context.AttributeContext$.Response
See theResponse companion object
final case class Response(code: Long, size: Long, headers: Map[String, String], time: Option[Timestamp], backendLatency: Option[Duration], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Response]

This message defines attributes for a typical network response. It generally models semantics of an HTTP response.

Attributes

backendLatency

The amount of time it takes the backend service to fully respond to a request. Measured from when the destination service starts to send the request to the backend until when the destination service receives the complete response from the backend.

code

The HTTP response status code, such as 200 and 404.

headers

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

size

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

time

The timestamp when the destination service sends the last byte of the response.

Companion:
object
Source:
AttributeContext.scala
Graph
Supertypes
trait Updatable[Response]
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)*): Response

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 withCode(`__v`: Long): Response

Attributes

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

Attributes

Source:
AttributeContext.scala

Attributes

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

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[Response, Response] => () => Response*): 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