Interface AttributeContext.ApiOrBuilder (2.40.0)

public static interface AttributeContext.ApiOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getOperation()

public abstract String 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 operationId, such as "getPet".

string operation = 2;

Returns
Type Description
String

The operation.

getOperationBytes()

public abstract ByteString getOperationBytes()

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 operationId, such as "getPet".

string operation = 2;

Returns
Type Description
ByteString

The bytes for operation.

getProtocol()

public abstract String getProtocol()

The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".

string protocol = 3;

Returns
Type Description
String

The protocol.

getProtocolBytes()

public abstract ByteString getProtocolBytes()

The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".

string protocol = 3;

Returns
Type Description
ByteString

The bytes for protocol.

getService()

public abstract String 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.

string service = 1;

Returns
Type Description
String

The service.

getServiceBytes()

public abstract ByteString getServiceBytes()

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.

string service = 1;

Returns
Type Description
ByteString

The bytes for service.

getVersion()

public abstract String getVersion()

The API version associated with the API operation above, such as "v1" or "v1alpha1".

string version = 4;

Returns
Type Description
String

The version.

getVersionBytes()

public abstract ByteString getVersionBytes()

The API version associated with the API operation above, such as "v1" or "v1alpha1".

string version = 4;

Returns
Type Description
ByteString

The bytes for version.