public static final class TagValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder> implements TagValueOrBuilder
A TagValue is a child of a particular TagKey. This is used to group cloud resources for the purpose of controlling them using policies.Protobuf type
google.cloud.resourcemanager.v3.TagValue| Modifier and Type | Method and Description |
|---|---|
TagValue.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TagValue |
build() |
TagValue |
buildPartial() |
TagValue.Builder |
clear() |
TagValue.Builder |
clearCreateTime()
Output only.
|
TagValue.Builder |
clearDescription()
Optional.
|
TagValue.Builder |
clearEtag()
Optional.
|
TagValue.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TagValue.Builder |
clearName()
Immutable.
|
TagValue.Builder |
clearNamespacedName()
Output only.
|
TagValue.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TagValue.Builder |
clearParent()
Immutable.
|
TagValue.Builder |
clearShortName()
Required.
|
TagValue.Builder |
clearUpdateTime()
Output only.
|
TagValue.Builder |
clone() |
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
TagValue |
getDefaultInstanceForType() |
String |
getDescription()
Optional.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Optional.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEtag()
Optional.
|
com.google.protobuf.ByteString |
getEtagBytes()
Optional.
|
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
String |
getNamespacedName()
Output only.
|
com.google.protobuf.ByteString |
getNamespacedNameBytes()
Output only.
|
String |
getParent()
Immutable.
|
com.google.protobuf.ByteString |
getParentBytes()
Immutable.
|
String |
getShortName()
Required.
|
com.google.protobuf.ByteString |
getShortNameBytes()
Required.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TagValue.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
TagValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TagValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
TagValue.Builder |
mergeFrom(TagValue other) |
TagValue.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TagValue.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
TagValue.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
TagValue.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
TagValue.Builder |
setDescription(String value)
Optional.
|
TagValue.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Optional.
|
TagValue.Builder |
setEtag(String value)
Optional.
|
TagValue.Builder |
setEtagBytes(com.google.protobuf.ByteString value)
Optional.
|
TagValue.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TagValue.Builder |
setName(String value)
Immutable.
|
TagValue.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Immutable.
|
TagValue.Builder |
setNamespacedName(String value)
Output only.
|
TagValue.Builder |
setNamespacedNameBytes(com.google.protobuf.ByteString value)
Output only.
|
TagValue.Builder |
setParent(String value)
Immutable.
|
TagValue.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Immutable.
|
TagValue.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TagValue.Builder |
setShortName(String value)
Required.
|
TagValue.Builder |
setShortNameBytes(com.google.protobuf.ByteString value)
Required.
|
TagValue.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TagValue.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
TagValue.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public TagValue.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public TagValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TagValue build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TagValue buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TagValue.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public TagValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public TagValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public TagValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public TagValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public TagValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public TagValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TagValue.Builder>public TagValue.Builder mergeFrom(TagValue other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public TagValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TagValue.Builder>IOExceptionpublic String getName()
Immutable. Resource name for TagValue in the format `tagValues/456`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getName in interface TagValueOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Immutable. Resource name for TagValue in the format `tagValues/456`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getNameBytes in interface TagValueOrBuilderpublic TagValue.Builder setName(String value)
Immutable. Resource name for TagValue in the format `tagValues/456`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];value - The name to set.public TagValue.Builder clearName()
Immutable. Resource name for TagValue in the format `tagValues/456`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];public TagValue.Builder setNameBytes(com.google.protobuf.ByteString value)
Immutable. Resource name for TagValue in the format `tagValues/456`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];value - The bytes for name to set.public String getParent()
Immutable. The resource name of the new TagValue's parent TagKey.
Must be of the form `tagKeys/{tag_key_id}`.
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];getParent in interface TagValueOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
Immutable. The resource name of the new TagValue's parent TagKey.
Must be of the form `tagKeys/{tag_key_id}`.
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];getParentBytes in interface TagValueOrBuilderpublic TagValue.Builder setParent(String value)
Immutable. The resource name of the new TagValue's parent TagKey.
Must be of the form `tagKeys/{tag_key_id}`.
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];value - The parent to set.public TagValue.Builder clearParent()
Immutable. The resource name of the new TagValue's parent TagKey.
Must be of the form `tagKeys/{tag_key_id}`.
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];public TagValue.Builder setParentBytes(com.google.protobuf.ByteString value)
Immutable. The resource name of the new TagValue's parent TagKey.
Must be of the form `tagKeys/{tag_key_id}`.
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];value - The bytes for parent to set.public String getShortName()
Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey. The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
string short_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
getShortName in interface TagValueOrBuilderpublic com.google.protobuf.ByteString getShortNameBytes()
Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey. The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
string short_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
getShortNameBytes in interface TagValueOrBuilderpublic TagValue.Builder setShortName(String value)
Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey. The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
string short_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
value - The shortName to set.public TagValue.Builder clearShortName()
Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey. The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
string short_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
public TagValue.Builder setShortNameBytes(com.google.protobuf.ByteString value)
Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey. The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
string short_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
value - The bytes for shortName to set.public String getNamespacedName()
Output only. The namespaced name of the TagValue. Can be in the form
`{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getNamespacedName in interface TagValueOrBuilderpublic com.google.protobuf.ByteString getNamespacedNameBytes()
Output only. The namespaced name of the TagValue. Can be in the form
`{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getNamespacedNameBytes in interface TagValueOrBuilderpublic TagValue.Builder setNamespacedName(String value)
Output only. The namespaced name of the TagValue. Can be in the form
`{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The namespacedName to set.public TagValue.Builder clearNamespacedName()
Output only. The namespaced name of the TagValue. Can be in the form
`{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];public TagValue.Builder setNamespacedNameBytes(com.google.protobuf.ByteString value)
Output only. The namespaced name of the TagValue. Can be in the form
`{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
`{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for namespacedName to set.public String getDescription()
Optional. User-assigned description of the TagValue. Must not exceed 256 characters. Read-write.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];getDescription in interface TagValueOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Optional. User-assigned description of the TagValue. Must not exceed 256 characters. Read-write.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];getDescriptionBytes in interface TagValueOrBuilderpublic TagValue.Builder setDescription(String value)
Optional. User-assigned description of the TagValue. Must not exceed 256 characters. Read-write.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];value - The description to set.public TagValue.Builder clearDescription()
Optional. User-assigned description of the TagValue. Must not exceed 256 characters. Read-write.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];public TagValue.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. User-assigned description of the TagValue. Must not exceed 256 characters. Read-write.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for description to set.public boolean hasCreateTime()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface TagValueOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface TagValueOrBuilderpublic TagValue.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TagValue.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TagValue.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TagValue.Builder clearCreateTime()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface TagValueOrBuilderpublic boolean hasUpdateTime()
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface TagValueOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface TagValueOrBuilderpublic TagValue.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TagValue.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TagValue.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TagValue.Builder clearUpdateTime()
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface TagValueOrBuilderpublic String getEtag()
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];getEtag in interface TagValueOrBuilderpublic com.google.protobuf.ByteString getEtagBytes()
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];getEtagBytes in interface TagValueOrBuilderpublic TagValue.Builder setEtag(String value)
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];value - The etag to set.public TagValue.Builder clearEtag()
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];public TagValue.Builder setEtagBytes(com.google.protobuf.ByteString value)
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for etag to set.public final TagValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>public final TagValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TagValue.Builder>Copyright © 2025 Google LLC. All rights reserved.