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.
Generated from protobuf message google.rpc.context.AttributeContext
Methods |
public __construct( $data = NULL) Constructor.
|
public clearApi() |
public clearDestination() |
public clearOrigin() |
public clearRequest() |
public clearResource() |
public clearResponse() |
public clearSource() |
public getApi() Represents an API operation that is involved to a network activity. Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6;
|
public getDestination() 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. Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2;
|
public getExtensions() Supports extensions for advanced use cases, such as logs and metrics. Generated from protobuf field repeated .google.protobuf.Any extensions = 8;
|
public getOrigin() 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 Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7;
|
public getRequest() Represents a network request, such as an HTTP request. Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3;
|
public getResource() 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. Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5;
|
public getResponse() Represents a network response, such as an HTTP response. Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4;
|
public getSource() 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. Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1;
|
public hasApi() |
public hasDestination() |
public hasOrigin() |
public hasRequest() |
public hasResource() |
public hasResponse() |
public hasSource() |
public setApi( $var) Represents an API operation that is involved to a network activity. Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6;
|
public setDestination( $var) 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. Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2;
|
public setExtensions( $var) Supports extensions for advanced use cases, such as logs and metrics. Generated from protobuf field repeated .google.protobuf.Any extensions = 8;
|
public setOrigin( $var) 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 Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7;
|
public setRequest( $var) Represents a network request, such as an HTTP request. Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3;
|
public setResource( $var) 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. Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5;
|
public setResponse( $var) Represents a network response, such as an HTTP response. Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4;
|
public setSource( $var) 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. Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1;
|
Properties |
protected $api = NULL Represents an API operation that is involved to a network activity. Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; |
protected $destination = NULL 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. Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; |
protected $origin = NULL 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 Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; |
protected $request = NULL Represents a network request, such as an HTTP request. Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; |
protected $resource = NULL 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. Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; |
protected $response = NULL Represents a network response, such as an HTTP response. Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; |
protected $source = NULL 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. Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; |
Methods |
Properties |
private $extensions = NULL Supports extensions for advanced use cases, such as logs and metrics. Generated from protobuf field repeated .google.protobuf.Any extensions = 8; |