Package com.google.rpc.context
Class AttributeContext.Api.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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,java.lang.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 typegoogle.rpc.context.AttributeContext.Api
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeContext.Api.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)AttributeContext.Apibuild()AttributeContext.ApibuildPartial()AttributeContext.Api.Builderclear()AttributeContext.Api.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AttributeContext.Api.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AttributeContext.Api.BuilderclearOperation()The API operation name.AttributeContext.Api.BuilderclearProtocol()The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".AttributeContext.Api.BuilderclearService()The API service name.AttributeContext.Api.BuilderclearVersion()The API version associated with the API operation above, such as "v1" or "v1alpha1".AttributeContext.Api.Builderclone()AttributeContext.ApigetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetOperation()The API operation name.com.google.protobuf.ByteStringgetOperationBytes()The API operation name.java.lang.StringgetProtocol()The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".com.google.protobuf.ByteStringgetProtocolBytes()The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".java.lang.StringgetService()The API service name.com.google.protobuf.ByteStringgetServiceBytes()The API service name.java.lang.StringgetVersion()The API version associated with the API operation above, such as "v1" or "v1alpha1".com.google.protobuf.ByteStringgetVersionBytes()The API version associated with the API operation above, such as "v1" or "v1alpha1".protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AttributeContext.Api.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AttributeContext.Api.BuildermergeFrom(com.google.protobuf.Message other)AttributeContext.Api.BuildermergeFrom(AttributeContext.Api other)AttributeContext.Api.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AttributeContext.Api.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)AttributeContext.Api.BuildersetOperation(java.lang.String value)The API operation name.AttributeContext.Api.BuildersetOperationBytes(com.google.protobuf.ByteString value)The API operation name.AttributeContext.Api.BuildersetProtocol(java.lang.String value)The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".AttributeContext.Api.BuildersetProtocolBytes(com.google.protobuf.ByteString value)The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".AttributeContext.Api.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)AttributeContext.Api.BuildersetService(java.lang.String value)The API service name.AttributeContext.Api.BuildersetServiceBytes(com.google.protobuf.ByteString value)The API service name.AttributeContext.Api.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AttributeContext.Api.BuildersetVersion(java.lang.String value)The API version associated with the API operation above, such as "v1" or "v1alpha1".AttributeContext.Api.BuildersetVersionBytes(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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
clear
public AttributeContext.Api.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
getDefaultInstanceForType
public AttributeContext.Api getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AttributeContext.Api build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AttributeContext.Api buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AttributeContext.Api.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
setField
public AttributeContext.Api.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
clearField
public AttributeContext.Api.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
clearOneof
public AttributeContext.Api.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
setRepeatedField
public AttributeContext.Api.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
addRepeatedField
public AttributeContext.Api.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
mergeFrom
public AttributeContext.Api.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Api.Builder>
-
mergeFrom
public AttributeContext.Api.Builder mergeFrom(AttributeContext.Api other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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 java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Api.Builder>- Throws:
java.io.IOException
-
getService
public java.lang.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;- Specified by:
getServicein 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:
getServiceBytesin interfaceAttributeContext.ApiOrBuilder- Returns:
- The bytes for service.
-
setService
public AttributeContext.Api.Builder setService(java.lang.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;- Parameters:
value- The service to set.- Returns:
- 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:
- This builder for chaining.
-
setServiceBytes
public AttributeContext.Api.Builder setServiceBytes(com.google.protobuf.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;- Parameters:
value- The bytes for service to set.- Returns:
- This builder for chaining.
-
getOperation
public java.lang.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;- Specified by:
getOperationin 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:
getOperationBytesin interfaceAttributeContext.ApiOrBuilder- Returns:
- The bytes for operation.
-
setOperation
public AttributeContext.Api.Builder setOperation(java.lang.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;- Parameters:
value- The operation to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setOperationBytes
public AttributeContext.Api.Builder setOperationBytes(com.google.protobuf.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;- Parameters:
value- The bytes for operation to set.- Returns:
- This builder for chaining.
-
getProtocol
public java.lang.String getProtocol()
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3;- Specified by:
getProtocolin 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:
getProtocolBytesin interfaceAttributeContext.ApiOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
public AttributeContext.Api.Builder setProtocol(java.lang.String value)
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
public AttributeContext.Api.Builder 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
public AttributeContext.Api.Builder setProtocolBytes(com.google.protobuf.ByteString value)
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
public java.lang.String getVersion()
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4;- Specified by:
getVersionin 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:
getVersionBytesin interfaceAttributeContext.ApiOrBuilder- Returns:
- The bytes for version.
-
setVersion
public AttributeContext.Api.Builder setVersion(java.lang.String value)
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
public AttributeContext.Api.Builder clearVersion()
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4;- Returns:
- This builder for chaining.
-
setVersionBytes
public AttributeContext.Api.Builder setVersionBytes(com.google.protobuf.ByteString value)
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
mergeUnknownFields
public final AttributeContext.Api.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>
-
-