public static final class AttributeContext.Resource.Builder extends 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AttributeContext.Resource.BuilderImplements
AttributeContext.ResourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttributeContext.Resource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
build()
public AttributeContext.Resource build()
Returns | |
---|---|
Type | Description |
AttributeContext.Resource |
buildPartial()
public AttributeContext.Resource buildPartial()
Returns | |
---|---|
Type | Description |
AttributeContext.Resource |
clear()
public AttributeContext.Resource.Builder clear()
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
clearAnnotations()
public AttributeContext.Resource.Builder clearAnnotations()
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
clearCreateTime()
public AttributeContext.Resource.Builder clearCreateTime()
Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed.
.google.protobuf.Timestamp create_time = 8;
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
clearDeleteTime()
public AttributeContext.Resource.Builder clearDeleteTime()
Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 10;
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
clearDisplayName()
public AttributeContext.Resource.Builder clearDisplayName()
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
clearEtag()
public AttributeContext.Resource.Builder clearEtag()
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string etag = 11;
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AttributeContext.Resource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
clearLabels()
public AttributeContext.Resource.Builder clearLabels()
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
clearLocation()
public AttributeContext.Resource.Builder clearLocation()
Immutable. The location of the resource. The location encoding is specific to the service provider, and new encoding may be introduced as the service evolves.
For Google Cloud products, the encoding is what is used by Google Cloud
APIs, such as us-east1
, aws-us-east-1
, and azure-eastus2
. The
semantics of location
is identical to the
cloud.googleapis.com/location
label used by some Google Cloud APIs.
string location = 12;
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
clearName()
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;
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AttributeContext.Resource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
clearService()
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;
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
clearType()
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}", such as "pubsub.googleapis.com/Topic".
string type = 3;
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
clearUid()
public AttributeContext.Resource.Builder clearUid()
The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string uid = 5;
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
clearUpdateTime()
public AttributeContext.Resource.Builder clearUpdateTime()
Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
.google.protobuf.Timestamp update_time = 9;
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
clone()
public AttributeContext.Resource.Builder clone()
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
containsAnnotations(String key)
public boolean containsAnnotations(String key)
Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 6;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
containsLabels(String key)
public 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;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
getAnnotations() (deprecated)
public Map<String,String> getAnnotations()
Use #getAnnotationsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getAnnotationsCount()
public int getAnnotationsCount()
Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 6;
Returns | |
---|---|
Type | Description |
int |
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()
Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 6;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getAnnotationsOrDefault(String key, String defaultValue)
public String getAnnotationsOrDefault(String key, String defaultValue)
Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 6;
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
String |
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)
Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 6;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getCreateTime()
public Timestamp getCreateTime()
Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed.
.google.protobuf.Timestamp create_time = 8;
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed.
.google.protobuf.Timestamp create_time = 8;
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed.
.google.protobuf.Timestamp create_time = 8;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public AttributeContext.Resource getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AttributeContext.Resource |
getDeleteTime()
public Timestamp getDeleteTime()
Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 10;
Returns | |
---|---|
Type | Description |
Timestamp |
The deleteTime. |
getDeleteTimeBuilder()
public Timestamp.Builder getDeleteTimeBuilder()
Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 10;
Returns | |
---|---|
Type | Description |
Builder |
getDeleteTimeOrBuilder()
public TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 10;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;
Returns | |
---|---|
Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for displayName. |
getEtag()
public String getEtag()
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string etag = 11;
Returns | |
---|---|
Type | Description |
String |
The etag. |
getEtagBytes()
public ByteString getEtagBytes()
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string etag = 11;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for etag. |
getLabels() (deprecated)
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public 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;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public 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;
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public 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;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getLocation()
public String getLocation()
Immutable. The location of the resource. The location encoding is specific to the service provider, and new encoding may be introduced as the service evolves.
For Google Cloud products, the encoding is what is used by Google Cloud
APIs, such as us-east1
, aws-us-east-1
, and azure-eastus2
. The
semantics of location
is identical to the
cloud.googleapis.com/location
label used by some Google Cloud APIs.
string location = 12;
Returns | |
---|---|
Type | Description |
String |
The location. |
getLocationBytes()
public ByteString getLocationBytes()
Immutable. The location of the resource. The location encoding is specific to the service provider, and new encoding may be introduced as the service evolves.
For Google Cloud products, the encoding is what is used by Google Cloud
APIs, such as us-east1
, aws-us-east-1
, and azure-eastus2
. The
semantics of location
is identical to the
cloud.googleapis.com/location
label used by some Google Cloud APIs.
string location = 12;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for location. |
getMutableAnnotations() (deprecated)
public Map<String,String> getMutableAnnotations()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getName()
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;
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getService()
public 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;
Returns | |
---|---|
Type | Description |
String |
The service. |
getServiceBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for service. |
getType()
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}", such as "pubsub.googleapis.com/Topic".
string type = 3;
Returns | |
---|---|
Type | Description |
String |
The type. |
getTypeBytes()
public 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}", such as "pubsub.googleapis.com/Topic".
string type = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for type. |
getUid()
public String getUid()
The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string uid = 5;
Returns | |
---|---|
Type | Description |
String |
The uid. |
getUidBytes()
public ByteString getUidBytes()
The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string uid = 5;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for uid. |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
.google.protobuf.Timestamp update_time = 9;
Returns | |
---|---|
Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
.google.protobuf.Timestamp update_time = 9;
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
.google.protobuf.Timestamp update_time = 9;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed.
.google.protobuf.Timestamp create_time = 8;
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
hasDeleteTime()
public boolean hasDeleteTime()
Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 10;
Returns | |
---|---|
Type | Description |
boolean |
Whether the deleteTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
.google.protobuf.Timestamp update_time = 9;
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public AttributeContext.Resource.Builder mergeCreateTime(Timestamp value)
Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed.
.google.protobuf.Timestamp create_time = 8;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
mergeDeleteTime(Timestamp value)
public AttributeContext.Resource.Builder mergeDeleteTime(Timestamp value)
Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 10;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AttributeContext.Resource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AttributeContext.Resource.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
mergeFrom(AttributeContext.Resource other)
public AttributeContext.Resource.Builder mergeFrom(AttributeContext.Resource other)
Parameter | |
---|---|
Name | Description |
other |
AttributeContext.Resource |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttributeContext.Resource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
mergeUpdateTime(Timestamp value)
public AttributeContext.Resource.Builder mergeUpdateTime(Timestamp value)
Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
.google.protobuf.Timestamp update_time = 9;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
putAllAnnotations(Map<String,String> values)
public AttributeContext.Resource.Builder putAllAnnotations(Map<String,String> values)
Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 6;
Parameter | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
putAllLabels(Map<String,String> values)
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;
Parameter | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
putAnnotations(String key, String value)
public AttributeContext.Resource.Builder putAnnotations(String key, String value)
Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 6;
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
putLabels(String key, String value)
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;
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
removeAnnotations(String key)
public AttributeContext.Resource.Builder removeAnnotations(String key)
Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 6;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
removeLabels(String key)
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;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
setCreateTime(Timestamp value)
public AttributeContext.Resource.Builder setCreateTime(Timestamp value)
Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed.
.google.protobuf.Timestamp create_time = 8;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public AttributeContext.Resource.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed.
.google.protobuf.Timestamp create_time = 8;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
setDeleteTime(Timestamp value)
public AttributeContext.Resource.Builder setDeleteTime(Timestamp value)
Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 10;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
setDeleteTime(Timestamp.Builder builderForValue)
public AttributeContext.Resource.Builder setDeleteTime(Timestamp.Builder builderForValue)
Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty.
.google.protobuf.Timestamp delete_time = 10;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
setDisplayName(String value)
public AttributeContext.Resource.Builder setDisplayName(String value)
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;
Parameter | |
---|---|
Name | Description |
value |
String The displayName to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public AttributeContext.Resource.Builder setDisplayNameBytes(ByteString value)
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for displayName to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setEtag(String value)
public AttributeContext.Resource.Builder setEtag(String value)
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string etag = 11;
Parameter | |
---|---|
Name | Description |
value |
String The etag to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setEtagBytes(ByteString value)
public AttributeContext.Resource.Builder setEtagBytes(ByteString value)
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string etag = 11;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for etag to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AttributeContext.Resource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
setLocation(String value)
public AttributeContext.Resource.Builder setLocation(String value)
Immutable. The location of the resource. The location encoding is specific to the service provider, and new encoding may be introduced as the service evolves.
For Google Cloud products, the encoding is what is used by Google Cloud
APIs, such as us-east1
, aws-us-east-1
, and azure-eastus2
. The
semantics of location
is identical to the
cloud.googleapis.com/location
label used by some Google Cloud APIs.
string location = 12;
Parameter | |
---|---|
Name | Description |
value |
String The location to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public AttributeContext.Resource.Builder setLocationBytes(ByteString value)
Immutable. The location of the resource. The location encoding is specific to the service provider, and new encoding may be introduced as the service evolves.
For Google Cloud products, the encoding is what is used by Google Cloud
APIs, such as us-east1
, aws-us-east-1
, and azure-eastus2
. The
semantics of location
is identical to the
cloud.googleapis.com/location
label used by some Google Cloud APIs.
string location = 12;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for location to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setName(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AttributeContext.Resource.Builder setNameBytes(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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AttributeContext.Resource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
setService(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value |
String The service to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setServiceBytes(ByteString value)
public AttributeContext.Resource.Builder setServiceBytes(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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for service to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setType(String value)
public 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}", such as "pubsub.googleapis.com/Topic".
string type = 3;
Parameter | |
---|---|
Name | Description |
value |
String The type to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public AttributeContext.Resource.Builder setTypeBytes(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}", such as "pubsub.googleapis.com/Topic".
string type = 3;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for type to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setUid(String value)
public AttributeContext.Resource.Builder setUid(String value)
The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string uid = 5;
Parameter | |
---|---|
Name | Description |
value |
String The uid to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setUidBytes(ByteString value)
public AttributeContext.Resource.Builder setUidBytes(ByteString value)
The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string uid = 5;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for uid to set. |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AttributeContext.Resource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
setUpdateTime(Timestamp value)
public AttributeContext.Resource.Builder setUpdateTime(Timestamp value)
Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
.google.protobuf.Timestamp update_time = 9;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public AttributeContext.Resource.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
.google.protobuf.Timestamp update_time = 9;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
AttributeContext.Resource.Builder |