Class AttributeContext.Api.Builder (2.38.0)

public static final class AttributeContext.Api.Builder extends GeneratedMessageV3.Builder<AttributeContext.Api.Builder> implements AttributeContext.ApiOrBuilder

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.

Protobuf type google.rpc.context.AttributeContext.Api

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttributeContext.Api.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttributeContext.Api.Builder
Overrides

build()

public AttributeContext.Api build()
Returns
Type Description
AttributeContext.Api

buildPartial()

public AttributeContext.Api buildPartial()
Returns
Type Description
AttributeContext.Api

clear()

public AttributeContext.Api.Builder clear()
Returns
Type Description
AttributeContext.Api.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AttributeContext.Api.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AttributeContext.Api.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AttributeContext.Api.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AttributeContext.Api.Builder
Overrides

clearOperation()

public AttributeContext.Api.Builder clearOperation()

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
AttributeContext.Api.Builder

This builder for chaining.

clearProtocol()

public AttributeContext.Api.Builder clearProtocol()

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

string protocol = 3;

Returns
Type Description
AttributeContext.Api.Builder

This builder for chaining.

clearService()

public AttributeContext.Api.Builder clearService()

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
AttributeContext.Api.Builder

This builder for chaining.

clearVersion()

public AttributeContext.Api.Builder clearVersion()

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

string version = 4;

Returns
Type Description
AttributeContext.Api.Builder

This builder for chaining.

clone()

public AttributeContext.Api.Builder clone()
Returns
Type Description
AttributeContext.Api.Builder
Overrides

getDefaultInstanceForType()

public AttributeContext.Api getDefaultInstanceForType()
Returns
Type Description
AttributeContext.Api

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOperation()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttributeContext.Api.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttributeContext.Api.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AttributeContext.Api.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AttributeContext.Api.Builder
Overrides

mergeFrom(AttributeContext.Api other)

public AttributeContext.Api.Builder mergeFrom(AttributeContext.Api other)
Parameter
Name Description
other AttributeContext.Api
Returns
Type Description
AttributeContext.Api.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttributeContext.Api.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttributeContext.Api.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AttributeContext.Api.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttributeContext.Api.Builder
Overrides

setOperation(String value)

public AttributeContext.Api.Builder setOperation(String value)

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;

Parameter
Name Description
value String

The operation to set.

Returns
Type Description
AttributeContext.Api.Builder

This builder for chaining.

setOperationBytes(ByteString value)

public AttributeContext.Api.Builder setOperationBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for operation to set.

Returns
Type Description
AttributeContext.Api.Builder

This builder for chaining.

setProtocol(String value)

public AttributeContext.Api.Builder setProtocol(String value)

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

string protocol = 3;

Parameter
Name Description
value String

The protocol to set.

Returns
Type Description
AttributeContext.Api.Builder

This builder for chaining.

setProtocolBytes(ByteString value)

public AttributeContext.Api.Builder setProtocolBytes(ByteString value)

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

string protocol = 3;

Parameter
Name Description
value ByteString

The bytes for protocol to set.

Returns
Type Description
AttributeContext.Api.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AttributeContext.Api.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AttributeContext.Api.Builder
Overrides

setService(String value)

public AttributeContext.Api.Builder setService(String value)

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;

Parameter
Name Description
value String

The service to set.

Returns
Type Description
AttributeContext.Api.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public AttributeContext.Api.Builder setServiceBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
AttributeContext.Api.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AttributeContext.Api.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttributeContext.Api.Builder
Overrides

setVersion(String value)

public AttributeContext.Api.Builder setVersion(String value)

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

string version = 4;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
AttributeContext.Api.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public AttributeContext.Api.Builder setVersionBytes(ByteString value)

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

string version = 4;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
AttributeContext.Api.Builder

This builder for chaining.