This message defines attributes for a typical network response. It generally models semantics of an HTTP response.
Generated from protobuf message google.rpc.context.AttributeContext.Response
Methods |
public __construct( $data = NULL) Constructor.
|
public clearBackendLatency() |
public clearTime() |
public getBackendLatency() 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. Generated from protobuf field .google.protobuf.Duration backend_latency = 5;
|
public getCode() The HTTP response status code, such as Generated from protobuf field int64 code = 1;
|
public getHeaders() 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. Generated from protobuf field map<string, string> headers = 3;
|
public getSize() The HTTP response size in bytes. If unknown, it must be -1. Generated from protobuf field int64 size = 2;
|
public getTime() The timestamp when the Generated from protobuf field .google.protobuf.Timestamp time = 4;
|
public hasBackendLatency() |
public hasTime() |
public setBackendLatency( $var) 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. Generated from protobuf field .google.protobuf.Duration backend_latency = 5;
|
public setCode( $var) The HTTP response status code, such as Generated from protobuf field int64 code = 1;
|
public setHeaders( $var) 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. Generated from protobuf field map<string, string> headers = 3;
|
public setSize( $var) The HTTP response size in bytes. If unknown, it must be -1. Generated from protobuf field int64 size = 2;
|
public setTime( $var) The timestamp when the Generated from protobuf field .google.protobuf.Timestamp time = 4;
|
Properties |
protected $backend_latency = NULL 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. Generated from protobuf field .google.protobuf.Duration backend_latency = 5; |
protected $code = 0 The HTTP response status code, such as Generated from protobuf field int64 code = 1; |
protected $size = 0 The HTTP response size in bytes. If unknown, it must be -1. Generated from protobuf field int64 size = 2; |
protected $time = NULL The timestamp when the Generated from protobuf field .google.protobuf.Timestamp time = 4; |
Methods |
Properties |
private $headers = NULL 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. Generated from protobuf field map<string, string> headers = 3; |