public static interface AttributeContext.ResourceOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 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.
|
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`.
|
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString 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;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;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;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;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;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;int getLabelsCount()
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;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;@Deprecated Map<String,String> getLabels()
getLabelsMap() instead.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;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;Copyright © 2020 Google LLC. All rights reserved.