Class AttributeContext.Api.Builder (2.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttributeContext.Api.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttributeContext.Api.Builder
Overrides

build()

public AttributeContext.Api build()
Returns
TypeDescription
AttributeContext.Api

buildPartial()

public AttributeContext.Api buildPartial()
Returns
TypeDescription
AttributeContext.Api

clear()

public AttributeContext.Api.Builder clear()
Returns
TypeDescription
AttributeContext.Api.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AttributeContext.Api.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AttributeContext.Api.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AttributeContext.Api.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AttributeContext.Api.Builder

This builder for chaining.

clone()

public AttributeContext.Api.Builder clone()
Returns
TypeDescription
AttributeContext.Api.Builder
Overrides

getDefaultInstanceForType()

public AttributeContext.Api getDefaultInstanceForType()
Returns
TypeDescription
AttributeContext.Api

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttributeContext.Api.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeContext.Api.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AttributeContext.Api.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AttributeContext.Api.Builder
Overrides

mergeFrom(AttributeContext.Api other)

public AttributeContext.Api.Builder mergeFrom(AttributeContext.Api other)
Parameter
NameDescription
otherAttributeContext.Api
Returns
TypeDescription
AttributeContext.Api.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttributeContext.Api.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttributeContext.Api.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AttributeContext.Api.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The operation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for operation to set.

Returns
TypeDescription
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
NameDescription
valueString

The protocol to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for protocol to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The service to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
AttributeContext.Api.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AttributeContext.Api.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The version to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
AttributeContext.Api.Builder

This builder for chaining.