Package com.google.rpc.context
Class AttributeContext.Api.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<AttributeContext.Api,AttributeContext.Api.Builder>
com.google.rpc.context.AttributeContext.Api.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,AttributeContext.ApiOrBuilder
,Cloneable
- Enclosing class:
- AttributeContext.Api
public static final class AttributeContext.Api.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<AttributeContext.Api,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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionThe API operation name.The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".The API service name.The API version associated with the API operation above, such as "v1" or "v1alpha1".The API operation name.com.google.protobuf.ByteString
The API operation name.The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".com.google.protobuf.ByteString
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".The API service name.com.google.protobuf.ByteString
The API service name.The API version associated with the API operation above, such as "v1" or "v1alpha1".com.google.protobuf.ByteString
The API version associated with the API operation above, such as "v1" or "v1alpha1".setOperation
(String value) The API operation name.setOperationBytes
(com.google.protobuf.ByteString value) The API operation name.setProtocol
(String value) The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".setProtocolBytes
(com.google.protobuf.ByteString value) The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".setService
(String value) The API service name.setServiceBytes
(com.google.protobuf.ByteString value) The API service name.setVersion
(String value) The API version associated with the API operation above, such as "v1" or "v1alpha1".setVersionBytes
(com.google.protobuf.ByteString value) The API version associated with the API operation above, such as "v1" or "v1alpha1".Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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 [json_name = "service"];
- Specified by:
getService
in interfaceAttributeContext.ApiOrBuilder
- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.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 [json_name = "service"];
- Specified by:
getServiceBytes
in interfaceAttributeContext.ApiOrBuilder
- Returns:
- The bytes for service.
-
setService
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 [json_name = "service"];
- Parameters:
value
- The service to set.- Returns:
- This builder for chaining.
-
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 [json_name = "service"];
- Returns:
- This builder for chaining.
-
setServiceBytes
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 [json_name = "service"];
- Parameters:
value
- The bytes for service to set.- Returns:
- This builder for chaining.
-
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 [json_name = "operation"];
- Specified by:
getOperation
in interfaceAttributeContext.ApiOrBuilder
- Returns:
- The operation.
-
getOperationBytes
public com.google.protobuf.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 [json_name = "operation"];
- Specified by:
getOperationBytes
in interfaceAttributeContext.ApiOrBuilder
- Returns:
- The bytes for operation.
-
setOperation
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 [json_name = "operation"];
- Parameters:
value
- The operation to set.- Returns:
- This builder for chaining.
-
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 [json_name = "operation"];
- Returns:
- This builder for chaining.
-
setOperationBytes
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 [json_name = "operation"];
- Parameters:
value
- The bytes for operation to set.- Returns:
- This builder for chaining.
-
getProtocol
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3 [json_name = "protocol"];
- Specified by:
getProtocol
in interfaceAttributeContext.ApiOrBuilder
- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3 [json_name = "protocol"];
- Specified by:
getProtocolBytes
in interfaceAttributeContext.ApiOrBuilder
- Returns:
- The bytes for protocol.
-
setProtocol
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3 [json_name = "protocol"];
- Parameters:
value
- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3 [json_name = "protocol"];
- Returns:
- This builder for chaining.
-
setProtocolBytes
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3 [json_name = "protocol"];
- Parameters:
value
- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getVersion
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4 [json_name = "version"];
- Specified by:
getVersion
in interfaceAttributeContext.ApiOrBuilder
- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4 [json_name = "version"];
- Specified by:
getVersionBytes
in interfaceAttributeContext.ApiOrBuilder
- Returns:
- The bytes for version.
-
setVersion
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4 [json_name = "version"];
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4 [json_name = "version"];
- Returns:
- This builder for chaining.
-
setVersionBytes
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4 [json_name = "version"];
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-