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| Modifier and Type | Method and Description |
|---|---|
AttributeContext.Api.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Api |
build() |
AttributeContext.Api |
buildPartial() |
AttributeContext.Api.Builder |
clear() |
AttributeContext.Api.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AttributeContext.Api.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AttributeContext.Api.Builder |
clearOperation()
The API operation name.
|
AttributeContext.Api.Builder |
clearProtocol()
The API protocol used for sending the request, such as "http", "https",
"grpc", or "internal".
|
AttributeContext.Api.Builder |
clearService()
The API service name.
|
AttributeContext.Api.Builder |
clearVersion()
The API version associated with the API operation above, such as "v1" or
"v1alpha1".
|
AttributeContext.Api.Builder |
clone() |
AttributeContext.Api |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getOperation()
The API operation name.
|
com.google.protobuf.ByteString |
getOperationBytes()
The API operation name.
|
String |
getProtocol()
The API protocol used for sending the request, such as "http", "https",
"grpc", or "internal".
|
com.google.protobuf.ByteString |
getProtocolBytes()
The API protocol used for sending the request, such as "http", "https",
"grpc", or "internal".
|
String |
getService()
The API service name.
|
com.google.protobuf.ByteString |
getServiceBytes()
The API service name.
|
String |
getVersion()
The API version associated with the API operation above, such as "v1" or
"v1alpha1".
|
com.google.protobuf.ByteString |
getVersionBytes()
The API version associated with the API operation above, such as "v1" or
"v1alpha1".
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AttributeContext.Api.Builder |
mergeFrom(AttributeContext.Api other) |
AttributeContext.Api.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AttributeContext.Api.Builder |
mergeFrom(com.google.protobuf.Message other) |
AttributeContext.Api.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AttributeContext.Api.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Api.Builder |
setOperation(String value)
The API operation name.
|
AttributeContext.Api.Builder |
setOperationBytes(com.google.protobuf.ByteString value)
The API operation name.
|
AttributeContext.Api.Builder |
setProtocol(String value)
The API protocol used for sending the request, such as "http", "https",
"grpc", or "internal".
|
AttributeContext.Api.Builder |
setProtocolBytes(com.google.protobuf.ByteString value)
The API protocol used for sending the request, such as "http", "https",
"grpc", or "internal".
|
AttributeContext.Api.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttributeContext.Api.Builder |
setService(String value)
The API service name.
|
AttributeContext.Api.Builder |
setServiceBytes(com.google.protobuf.ByteString value)
The API service name.
|
AttributeContext.Api.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AttributeContext.Api.Builder |
setVersion(String value)
The API version associated with the API operation above, such as "v1" or
"v1alpha1".
|
AttributeContext.Api.Builder |
setVersionBytes(com.google.protobuf.ByteString value)
The API version associated with the API operation above, such as "v1" or
"v1alpha1".
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public AttributeContext.Api.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public AttributeContext.Api getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttributeContext.Api build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttributeContext.Api buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttributeContext.Api.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public AttributeContext.Api.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public AttributeContext.Api.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public AttributeContext.Api.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public AttributeContext.Api.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public AttributeContext.Api.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public AttributeContext.Api.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Api.Builder>public AttributeContext.Api.Builder mergeFrom(AttributeContext.Api other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public AttributeContext.Api.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Api.Builder>IOExceptionpublic 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;getService in interface AttributeContext.ApiOrBuilderpublic 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;getServiceBytes in interface AttributeContext.ApiOrBuilderpublic 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;value - The service to set.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;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;value - The bytes for service to set.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;getOperation in interface AttributeContext.ApiOrBuilderpublic 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;getOperationBytes in interface AttributeContext.ApiOrBuilderpublic 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;value - The operation to set.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;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;value - The bytes for operation to set.public String getProtocol()
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3;getProtocol in interface AttributeContext.ApiOrBuilderpublic com.google.protobuf.ByteString getProtocolBytes()
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3;getProtocolBytes in interface AttributeContext.ApiOrBuilderpublic AttributeContext.Api.Builder setProtocol(String value)
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3;value - The protocol to set.public AttributeContext.Api.Builder clearProtocol()
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
string protocol = 3;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;value - The bytes for protocol to set.public String getVersion()
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4;getVersion in interface AttributeContext.ApiOrBuilderpublic com.google.protobuf.ByteString getVersionBytes()
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4;getVersionBytes in interface AttributeContext.ApiOrBuilderpublic AttributeContext.Api.Builder setVersion(String value)
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4;value - The version to set.public AttributeContext.Api.Builder clearVersion()
The API version associated with the API operation above, such as "v1" or "v1alpha1".
string version = 4;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;value - The bytes for version to set.public final AttributeContext.Api.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>public final AttributeContext.Api.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Api.Builder>Copyright © 2021 Google LLC. All rights reserved.