public static final class AttributeContext.Resource extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
AttributeContext.Resource.Builder
This message defines core attributes for a resource.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
LABELS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
The labels or tags on the resource, such as AWS resource tags and
Kubernetes resource labels.
|
boolean |
equals(Object obj) |
static AttributeContext.Resource |
getDefaultInstance() |
AttributeContext.Resource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
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`.
|
com.google.protobuf.Parser<AttributeContext.Resource> |
getParserForType() |
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static AttributeContext.Resource.Builder |
newBuilder() |
static AttributeContext.Resource.Builder |
newBuilder(AttributeContext.Resource prototype) |
AttributeContext.Resource.Builder |
newBuilderForType() |
protected AttributeContext.Resource.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AttributeContext.Resource |
parseDelimitedFrom(InputStream input) |
static AttributeContext.Resource |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Resource |
parseFrom(byte[] data) |
static AttributeContext.Resource |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Resource |
parseFrom(ByteBuffer data) |
static AttributeContext.Resource |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Resource |
parseFrom(com.google.protobuf.ByteString data) |
static AttributeContext.Resource |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Resource |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttributeContext.Resource |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Resource |
parseFrom(InputStream input) |
static AttributeContext.Resource |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttributeContext.Resource> |
parser() |
AttributeContext.Resource.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SERVICE_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AttributeContext.Resource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Resource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Resource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Resource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Resource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Resource parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext.Resource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext.Resource parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext.Resource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext.Resource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttributeContext.Resource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttributeContext.Resource.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttributeContext.Resource.Builder newBuilder()
public static AttributeContext.Resource.Builder newBuilder(AttributeContext.Resource prototype)
public AttributeContext.Resource.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttributeContext.Resource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttributeContext.Resource getDefaultInstance()
public static com.google.protobuf.Parser<AttributeContext.Resource> parser()
public com.google.protobuf.Parser<AttributeContext.Resource> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttributeContext.Resource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.