public static final class AttributeContext.Resource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder> implements AttributeContext.ResourceOrBuilder
This message defines core attributes for a resource. A resource is an addressable (named) entity provided by the destination service. For example, a file stored on a network storage service.Protobuf type
google.rpc.context.AttributeContext.Resource| Modifier and Type | Method and Description |
|---|---|
AttributeContext.Resource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Resource |
build() |
AttributeContext.Resource |
buildPartial() |
AttributeContext.Resource.Builder |
clear() |
AttributeContext.Resource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AttributeContext.Resource.Builder |
clearLabels() |
AttributeContext.Resource.Builder |
clearName()
The stable identifier (name) of a resource on the `service`.
|
AttributeContext.Resource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AttributeContext.Resource.Builder |
clearService()
The name of the service that this resource belongs to, such as
`pubsub.googleapis.com`.
|
AttributeContext.Resource.Builder |
clearType()
The type of the resource.
|
AttributeContext.Resource.Builder |
clone() |
boolean |
containsLabels(String key)
The labels or tags on the resource, such as AWS resource tags and
Kubernetes resource labels.
|
AttributeContext.Resource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The labels or tags on the resource, such as AWS resource tags and
Kubernetes resource labels.
|
Map<String,String> |
getLabelsMap()
The labels or tags on the resource, such as AWS resource tags and
Kubernetes resource labels.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
The labels or tags on the resource, such as AWS resource tags and
Kubernetes resource labels.
|
String |
getLabelsOrThrow(String key)
The labels or tags on the resource, such as AWS resource tags and
Kubernetes resource labels.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
The stable identifier (name) of a resource on the `service`.
|
com.google.protobuf.ByteString |
getNameBytes()
The stable identifier (name) of a resource on the `service`.
|
String |
getService()
The name of the service that this resource belongs to, such as
`pubsub.googleapis.com`.
|
com.google.protobuf.ByteString |
getServiceBytes()
The name of the service that this resource belongs to, such as
`pubsub.googleapis.com`.
|
String |
getType()
The type of the resource.
|
com.google.protobuf.ByteString |
getTypeBytes()
The type of the resource.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
AttributeContext.Resource.Builder |
mergeFrom(AttributeContext.Resource other) |
AttributeContext.Resource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AttributeContext.Resource.Builder |
mergeFrom(com.google.protobuf.Message other) |
AttributeContext.Resource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AttributeContext.Resource.Builder |
putAllLabels(Map<String,String> values)
The labels or tags on the resource, such as AWS resource tags and
Kubernetes resource labels.
|
AttributeContext.Resource.Builder |
putLabels(String key,
String value)
The labels or tags on the resource, such as AWS resource tags and
Kubernetes resource labels.
|
AttributeContext.Resource.Builder |
removeLabels(String key)
The labels or tags on the resource, such as AWS resource tags and
Kubernetes resource labels.
|
AttributeContext.Resource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Resource.Builder |
setName(String value)
The stable identifier (name) of a resource on the `service`.
|
AttributeContext.Resource.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The stable identifier (name) of a resource on the `service`.
|
AttributeContext.Resource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttributeContext.Resource.Builder |
setService(String value)
The name of the service that this resource belongs to, such as
`pubsub.googleapis.com`.
|
AttributeContext.Resource.Builder |
setServiceBytes(com.google.protobuf.ByteString value)
The name of the service that this resource belongs to, such as
`pubsub.googleapis.com`.
|
AttributeContext.Resource.Builder |
setType(String value)
The type of the resource.
|
AttributeContext.Resource.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
The type of the resource.
|
AttributeContext.Resource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, 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.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>public AttributeContext.Resource.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.Resource.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.Resource.Builder>public AttributeContext.Resource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttributeContext.Resource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttributeContext.Resource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttributeContext.Resource.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.Resource.Builder>public AttributeContext.Resource.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.Resource.Builder>public AttributeContext.Resource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>public AttributeContext.Resource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>public AttributeContext.Resource.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.Resource.Builder>public AttributeContext.Resource.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.Resource.Builder>public AttributeContext.Resource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Resource.Builder>public AttributeContext.Resource.Builder mergeFrom(AttributeContext.Resource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>public AttributeContext.Resource.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.Resource.Builder>IOExceptionpublic String getService()
The name of the service that this resource belongs to, such as `pubsub.googleapis.com`. The service may be different from the DNS hostname that actually serves the request.
string service = 1;getService in interface AttributeContext.ResourceOrBuilderpublic com.google.protobuf.ByteString getServiceBytes()
The name of the service that this resource belongs to, such as `pubsub.googleapis.com`. The service may be different from the DNS hostname that actually serves the request.
string service = 1;getServiceBytes in interface AttributeContext.ResourceOrBuilderpublic AttributeContext.Resource.Builder setService(String value)
The name of the service that this resource belongs to, such as `pubsub.googleapis.com`. The service may be different from the DNS hostname that actually serves the request.
string service = 1;value - The service to set.public AttributeContext.Resource.Builder clearService()
The name of the service that this resource belongs to, such as `pubsub.googleapis.com`. The service may be different from the DNS hostname that actually serves the request.
string service = 1;public AttributeContext.Resource.Builder setServiceBytes(com.google.protobuf.ByteString value)
The name of the service that this resource belongs to, such as `pubsub.googleapis.com`. The service may be different from the DNS hostname that actually serves the request.
string service = 1;value - The bytes for service to set.public String getName()
The stable identifier (name) of a resource on the `service`. A resource
can be logically identified as "//{resource.service}/{resource.name}".
The differences between a resource name and a URI are:
* Resource name is a logical identifier, independent of network
protocol and API version. For example,
`//pubsub.googleapis.com/projects/123/topics/news-feed`.
* URI often includes protocol and version information, so it can
be used directly by applications. For example,
`https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
See https://cloud.google.com/apis/design/resource_names for details.
string name = 2;getName in interface AttributeContext.ResourceOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The stable identifier (name) of a resource on the `service`. A resource
can be logically identified as "//{resource.service}/{resource.name}".
The differences between a resource name and a URI are:
* Resource name is a logical identifier, independent of network
protocol and API version. For example,
`//pubsub.googleapis.com/projects/123/topics/news-feed`.
* URI often includes protocol and version information, so it can
be used directly by applications. For example,
`https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
See https://cloud.google.com/apis/design/resource_names for details.
string name = 2;getNameBytes in interface AttributeContext.ResourceOrBuilderpublic AttributeContext.Resource.Builder setName(String value)
The stable identifier (name) of a resource on the `service`. A resource
can be logically identified as "//{resource.service}/{resource.name}".
The differences between a resource name and a URI are:
* Resource name is a logical identifier, independent of network
protocol and API version. For example,
`//pubsub.googleapis.com/projects/123/topics/news-feed`.
* URI often includes protocol and version information, so it can
be used directly by applications. For example,
`https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
See https://cloud.google.com/apis/design/resource_names for details.
string name = 2;value - The name to set.public AttributeContext.Resource.Builder clearName()
The stable identifier (name) of a resource on the `service`. A resource
can be logically identified as "//{resource.service}/{resource.name}".
The differences between a resource name and a URI are:
* Resource name is a logical identifier, independent of network
protocol and API version. For example,
`//pubsub.googleapis.com/projects/123/topics/news-feed`.
* URI often includes protocol and version information, so it can
be used directly by applications. For example,
`https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
See https://cloud.google.com/apis/design/resource_names for details.
string name = 2;public AttributeContext.Resource.Builder setNameBytes(com.google.protobuf.ByteString value)
The stable identifier (name) of a resource on the `service`. A resource
can be logically identified as "//{resource.service}/{resource.name}".
The differences between a resource name and a URI are:
* Resource name is a logical identifier, independent of network
protocol and API version. For example,
`//pubsub.googleapis.com/projects/123/topics/news-feed`.
* URI often includes protocol and version information, so it can
be used directly by applications. For example,
`https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
See https://cloud.google.com/apis/design/resource_names for details.
string name = 2;value - The bytes for name to set.public String getType()
The type of the resource. The syntax is platform-specific because
different platforms define their resources differently.
For Google APIs, the type format must be "{service}/{kind}".
string type = 3;getType in interface AttributeContext.ResourceOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
The type of the resource. The syntax is platform-specific because
different platforms define their resources differently.
For Google APIs, the type format must be "{service}/{kind}".
string type = 3;getTypeBytes in interface AttributeContext.ResourceOrBuilderpublic AttributeContext.Resource.Builder setType(String value)
The type of the resource. The syntax is platform-specific because
different platforms define their resources differently.
For Google APIs, the type format must be "{service}/{kind}".
string type = 3;value - The type to set.public AttributeContext.Resource.Builder clearType()
The type of the resource. The syntax is platform-specific because
different platforms define their resources differently.
For Google APIs, the type format must be "{service}/{kind}".
string type = 3;public AttributeContext.Resource.Builder setTypeBytes(com.google.protobuf.ByteString value)
The type of the resource. The syntax is platform-specific because
different platforms define their resources differently.
For Google APIs, the type format must be "{service}/{kind}".
string type = 3;value - The bytes for type to set.public int getLabelsCount()
AttributeContext.ResourceOrBuilderThe labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;getLabelsCount in interface AttributeContext.ResourceOrBuilderpublic boolean containsLabels(String key)
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;containsLabels in interface AttributeContext.ResourceOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface AttributeContext.ResourceOrBuilderpublic Map<String,String> getLabelsMap()
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;getLabelsMap in interface AttributeContext.ResourceOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;getLabelsOrDefault in interface AttributeContext.ResourceOrBuilderpublic String getLabelsOrThrow(String key)
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;getLabelsOrThrow in interface AttributeContext.ResourceOrBuilderpublic AttributeContext.Resource.Builder clearLabels()
public AttributeContext.Resource.Builder removeLabels(String key)
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;@Deprecated public Map<String,String> getMutableLabels()
public AttributeContext.Resource.Builder putLabels(String key, String value)
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;public AttributeContext.Resource.Builder putAllLabels(Map<String,String> values)
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;public final AttributeContext.Resource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>public final AttributeContext.Resource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>Copyright © 2020 Google LLC. All rights reserved.