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.
Generated from protobuf message google.rpc.context.AttributeContext.Request
| Methods |
| public __construct( $data = NULL) Constructor.
|
| public clearAuth() |
| public clearTime() |
| public getAuth() The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13;
|
| public getHeaders() 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. Generated from protobuf field map<string, string> headers = 3;
|
| public getHost() The HTTP request Generated from protobuf field string host = 5;
|
| public getId() 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. Generated from protobuf field string id = 1;
|
| public getMethod() The HTTP request method, such as Generated from protobuf field string method = 2;
|
| public getOrigin() The values from Origin header from the HTTP request, such as "https://console.cloud.google.com". Modern browsers can only have one origin. Special browsers and/or HTTP clients may require multiple origins. Generated from protobuf field string origin = 14;
|
| public getPath() The HTTP URL path, excluding the query parameters. Generated from protobuf field string path = 4;
|
| public getProtocol() 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. Generated from protobuf field string protocol = 11;
|
| public getQuery() The HTTP URL query in the format of Generated from protobuf field string query = 7;
|
| public getReason() A special parameter for request reason. It is used by security systems to associate auditing information with a request. Generated from protobuf field string reason = 12;
|
| public getScheme() The HTTP URL scheme, such as Generated from protobuf field string scheme = 6;
|
| public getSize() The HTTP request size in bytes. If unknown, it must be -1. Generated from protobuf field int64 size = 10;
|
| public getTime() The timestamp when the Generated from protobuf field .google.protobuf.Timestamp time = 9;
|
| public hasAuth() |
| public hasTime() |
| public setAuth( $var) The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13;
|
| public setHeaders( $var) 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. Generated from protobuf field map<string, string> headers = 3;
|
| public setHost( $var) The HTTP request Generated from protobuf field string host = 5;
|
| public setId( $var) 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. Generated from protobuf field string id = 1;
|
| public setMethod( $var) The HTTP request method, such as Generated from protobuf field string method = 2;
|
| public setOrigin( $var) The values from Origin header from the HTTP request, such as "https://console.cloud.google.com". Modern browsers can only have one origin. Special browsers and/or HTTP clients may require multiple origins. Generated from protobuf field string origin = 14;
|
| public setPath( $var) The HTTP URL path, excluding the query parameters. Generated from protobuf field string path = 4;
|
| public setProtocol( $var) 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. Generated from protobuf field string protocol = 11;
|
| public setQuery( $var) The HTTP URL query in the format of Generated from protobuf field string query = 7;
|
| public setReason( $var) A special parameter for request reason. It is used by security systems to associate auditing information with a request. Generated from protobuf field string reason = 12;
|
| public setScheme( $var) The HTTP URL scheme, such as Generated from protobuf field string scheme = 6;
|
| public setSize( $var) The HTTP request size in bytes. If unknown, it must be -1. Generated from protobuf field int64 size = 10;
|
| public setTime( $var) The timestamp when the Generated from protobuf field .google.protobuf.Timestamp time = 9;
|
| Properties |
| protected $auth = NULL The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; |
| protected $host = '' The HTTP request Generated from protobuf field string host = 5; |
| protected $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. Generated from protobuf field string id = 1; |
| protected $method = '' The HTTP request method, such as Generated from protobuf field string method = 2; |
| protected $origin = '' The values from Origin header from the HTTP request, such as "https://console.cloud.google.com". Modern browsers can only have one origin. Special browsers and/or HTTP clients may require multiple origins. Generated from protobuf field string origin = 14; |
| protected $path = '' The HTTP URL path, excluding the query parameters. Generated from protobuf field string path = 4; |
| protected $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. Generated from protobuf field string protocol = 11; |
| protected $query = '' The HTTP URL query in the format of Generated from protobuf field string query = 7; |
| protected $reason = '' A special parameter for request reason. It is used by security systems to associate auditing information with a request. Generated from protobuf field string reason = 12; |
| protected $scheme = '' The HTTP URL scheme, such as Generated from protobuf field string scheme = 6; |
| protected $size = 0 The HTTP request size in bytes. If unknown, it must be -1. Generated from protobuf field int64 size = 10; |
| protected $time = NULL The timestamp when the Generated from protobuf field .google.protobuf.Timestamp time = 9; |
| Methods |
| Properties |
| private $headers = NULL 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. Generated from protobuf field map<string, string> headers = 3; |