Class AttributeContext.Resource.Builder (2.8.4)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttributeContext.Resource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides

build()

public AttributeContext.Resource build()
Returns
TypeDescription
AttributeContext.Resource

buildPartial()

public AttributeContext.Resource buildPartial()
Returns
TypeDescription
AttributeContext.Resource

clear()

public AttributeContext.Resource.Builder clear()
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides

clearAnnotations()

public AttributeContext.Resource.Builder clearAnnotations()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AttributeContext.Resource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AttributeContext.Resource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides

clearLabels()

public AttributeContext.Resource.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
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:

string name = 2;

Returns
TypeDescription
AttributeContext.Resource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AttributeContext.Resource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides

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
TypeDescription
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;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AttributeContext.Resource.Builder

clone()

public AttributeContext.Resource.Builder clone()
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides

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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public AttributeContext.Resource getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Mutable. The display name set by clients. Must be <= 63 characters.

string display_name = 7;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Mutable. The display name set by clients. Must be <= 63 characters.

string display_name = 7;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for etag.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for location.

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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:

string name = 2;

Returns
TypeDescription
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:

string name = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
AttributeContext.Resource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttributeContext.Resource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AttributeContext.Resource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides

mergeFrom(AttributeContext.Resource other)

public AttributeContext.Resource.Builder mergeFrom(AttributeContext.Resource other)
Parameter
NameDescription
otherAttributeContext.Resource
Returns
TypeDescription
AttributeContext.Resource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttributeContext.Resource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
AttributeContext.Resource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AttributeContext.Resource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides

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
NameDescription
valueString

The location to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
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:

string name = 2;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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:

string name = 2;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides

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
NameDescription
valueString

The service to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
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
NameDescription
valueString

The uid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
AttributeContext.Resource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AttributeContext.Resource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttributeContext.Resource.Builder
Overrides

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AttributeContext.Resource.Builder