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()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttributeContext.Resource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AttributeContext.Resource.Builder |
build()
public AttributeContext.Resource build()
Type | Description |
AttributeContext.Resource |
buildPartial()
public AttributeContext.Resource buildPartial()
Type | Description |
AttributeContext.Resource |
clear()
public AttributeContext.Resource.Builder clear()
Type | Description |
AttributeContext.Resource.Builder |
clearAnnotations()
public AttributeContext.Resource.Builder clearAnnotations()
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;
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;
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;
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;
Type | Description |
AttributeContext.Resource.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AttributeContext.Resource.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
AttributeContext.Resource.Builder |
clearLabels()
public AttributeContext.Resource.Builder clearLabels()
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;
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;
Type | Description |
AttributeContext.Resource.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AttributeContext.Resource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
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;
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}".
string type = 3;
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;
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;
Type | Description |
AttributeContext.Resource.Builder |
clone()
public AttributeContext.Resource.Builder clone()
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;
Name | Description |
key | String |
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;
Name | Description |
key | String |
Type | Description |
boolean |
getAnnotations()
public Map<String,String> getAnnotations()
Use #getAnnotationsMap() instead.
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;
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;
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;
Name | Description |
key | String |
defaultValue | String |
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;
Name | Description |
key | String |
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;
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;
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;
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public AttributeContext.Resource getDefaultInstanceForType()
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;
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;
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;
Type | Description |
TimestampOrBuilder |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;
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;
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;
Type | Description |
ByteString | The bytes for etag. |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
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;
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;
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;
Name | Description |
key | String |
defaultValue | String |
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;
Name | Description |
key | String |
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;
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;
Type | Description |
ByteString | The bytes for location. |
getMutableAnnotations()
public Map<String,String> getMutableAnnotations()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
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;
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;
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;
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;
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}".
string type = 3;
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}".
string type = 3;
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;
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;
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;
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;
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;
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;
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;
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;
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
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;
Name | Description |
value | Timestamp |
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;
Name | Description |
value | Timestamp |
Type | Description |
AttributeContext.Resource.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AttributeContext.Resource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AttributeContext.Resource.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AttributeContext.Resource.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
AttributeContext.Resource.Builder |
mergeFrom(AttributeContext.Resource other)
public AttributeContext.Resource.Builder mergeFrom(AttributeContext.Resource other)
Name | Description |
other | AttributeContext.Resource |
Type | Description |
AttributeContext.Resource.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttributeContext.Resource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
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;
Name | Description |
value | Timestamp |
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;
Name | Description |
values | Map<String,String> |
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;
Name | Description |
values | Map<String,String> |
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;
Name | Description |
key | String |
value | String |
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;
Name | Description |
key | String |
value | String |
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;
Name | Description |
key | String |
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;
Name | Description |
key | String |
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;
Name | Description |
value | Timestamp |
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;
Name | Description |
builderForValue | Builder |
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;
Name | Description |
value | Timestamp |
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;
Name | Description |
builderForValue | Builder |
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;
Name | Description |
value | String The displayName to set. |
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;
Name | Description |
value | ByteString The bytes for displayName to set. |
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;
Name | Description |
value | String The etag to set. |
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;
Name | Description |
value | ByteString The bytes for etag to set. |
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)
Name | Description |
field | FieldDescriptor |
value | Object |
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;
Name | Description |
value | String The location to set. |
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;
Name | Description |
value | ByteString The bytes for location to set. |
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;
Name | Description |
value | String The name to set. |
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;
Name | Description |
value | ByteString The bytes for name to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
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;
Name | Description |
value | String The service to set. |
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;
Name | Description |
value | ByteString The bytes for service to set. |
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}".
string type = 3;
Name | Description |
value | String The type to set. |
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}".
string type = 3;
Name | Description |
value | ByteString The bytes for type to set. |
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;
Name | Description |
value | String The uid to set. |
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;
Name | Description |
value | ByteString The bytes for uid to set. |
Type | Description |
AttributeContext.Resource.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AttributeContext.Resource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
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;
Name | Description |
value | Timestamp |
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;
Name | Description |
builderForValue | Builder |
Type | Description |
AttributeContext.Resource.Builder |