This message defines attributes associated with API operations, such as a network API request. The terminology is based on the conventions used by Google APIs, Istio, and OpenAPI.
Generated from protobuf message google.rpc.context.AttributeContext.Api
Methods |
public __construct( $data = NULL) Constructor.
|
public getOperation() The API operation name. For gRPC requests, it is the fully qualified API
method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
requests, it is the Generated from protobuf field string operation = 2;
|
public getProtocol() The API protocol used for sending the request, such as "http", "https", "grpc", or "internal". Generated from protobuf field string protocol = 3;
|
public getService() The API service name. It is a logical identifier for a networked API, such as "pubsub.googleapis.com". The naming syntax depends on the API management system being used for handling the request. Generated from protobuf field string service = 1;
|
public getVersion() The API version associated with the API operation above, such as "v1" or "v1alpha1". Generated from protobuf field string version = 4;
|
public setOperation( $var) The API operation name. For gRPC requests, it is the fully qualified API
method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
requests, it is the Generated from protobuf field string operation = 2;
|
public setProtocol( $var) The API protocol used for sending the request, such as "http", "https", "grpc", or "internal". Generated from protobuf field string protocol = 3;
|
public setService( $var) The API service name. It is a logical identifier for a networked API, such as "pubsub.googleapis.com". The naming syntax depends on the API management system being used for handling the request. Generated from protobuf field string service = 1;
|
public setVersion( $var) The API version associated with the API operation above, such as "v1" or "v1alpha1". Generated from protobuf field string version = 4;
|
Properties |
protected $operation = '' The API operation name. For gRPC requests, it is the fully qualified API
method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
requests, it is the Generated from protobuf field string operation = 2; |
protected $protocol = '' The API protocol used for sending the request, such as "http", "https", "grpc", or "internal". Generated from protobuf field string protocol = 3; |
protected $service = '' The API service name. It is a logical identifier for a networked API, such as "pubsub.googleapis.com". The naming syntax depends on the API management system being used for handling the request. Generated from protobuf field string service = 1; |
protected $version = '' The API version associated with the API operation above, such as "v1" or "v1alpha1". Generated from protobuf field string version = 4; |
Methods |