Package com.google.rpc.context
Class AttributeContext.Api.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
com.google.rpc.context.AttributeContext.Api.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,AttributeContext.ApiOrBuilder
,Cloneable
- Enclosing class:
- AttributeContext.Api
public static final class AttributeContext.Api.Builder
extends com.google.protobuf.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
The 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".static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
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".protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(AttributeContext.Api other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Api.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
mergeFrom
public AttributeContext.Api.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Api.Builder>
- Throws:
IOException
-
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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- Returns:
- This builder for chaining.
-
setProtocolBytes
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3;
- 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;
- 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;
- 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;
- 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;
- Returns:
- This builder for chaining.
-
setVersionBytes
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4;
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AttributeContext.Api.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
mergeUnknownFields
public final AttributeContext.Api.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-