public static final class TagKey.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TagKey.Builder> implements TagKeyOrBuilder
A TagKey, used to group a set of TagValues.Protobuf type
google.cloud.resourcemanager.v3.TagKey| Modifier and Type | Method and Description |
|---|---|
TagKey.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TagKey |
build() |
TagKey |
buildPartial() |
TagKey.Builder |
clear() |
TagKey.Builder |
clearCreateTime()
Output only.
|
TagKey.Builder |
clearDescription()
Optional.
|
TagKey.Builder |
clearEtag()
Optional.
|
TagKey.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TagKey.Builder |
clearName()
Immutable.
|
TagKey.Builder |
clearNamespacedName()
Output only.
|
TagKey.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TagKey.Builder |
clearParent()
Immutable.
|
TagKey.Builder |
clearPurpose()
Optional.
|
TagKey.Builder |
clearPurposeData() |
TagKey.Builder |
clearShortName()
Required.
|
TagKey.Builder |
clearUpdateTime()
Output only.
|
TagKey.Builder |
clone() |
boolean |
containsPurposeData(String key)
Optional.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
TagKey |
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.
|
Map<String,String> |
getMutablePurposeData()
Deprecated.
|
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.
|
Purpose |
getPurpose()
Optional.
|
Map<String,String> |
getPurposeData()
Deprecated.
|
int |
getPurposeDataCount()
Optional.
|
Map<String,String> |
getPurposeDataMap()
Optional.
|
String |
getPurposeDataOrDefault(String key,
String defaultValue)
Optional.
|
String |
getPurposeDataOrThrow(String key)
Optional.
|
int |
getPurposeValue()
Optional.
|
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() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
TagKey.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
TagKey.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TagKey.Builder |
mergeFrom(com.google.protobuf.Message other) |
TagKey.Builder |
mergeFrom(TagKey other) |
TagKey.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TagKey.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
TagKey.Builder |
putAllPurposeData(Map<String,String> values)
Optional.
|
TagKey.Builder |
putPurposeData(String key,
String value)
Optional.
|
TagKey.Builder |
removePurposeData(String key)
Optional.
|
TagKey.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
TagKey.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
TagKey.Builder |
setDescription(String value)
Optional.
|
TagKey.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Optional.
|
TagKey.Builder |
setEtag(String value)
Optional.
|
TagKey.Builder |
setEtagBytes(com.google.protobuf.ByteString value)
Optional.
|
TagKey.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TagKey.Builder |
setName(String value)
Immutable.
|
TagKey.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Immutable.
|
TagKey.Builder |
setNamespacedName(String value)
Output only.
|
TagKey.Builder |
setNamespacedNameBytes(com.google.protobuf.ByteString value)
Output only.
|
TagKey.Builder |
setParent(String value)
Immutable.
|
TagKey.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Immutable.
|
TagKey.Builder |
setPurpose(Purpose value)
Optional.
|
TagKey.Builder |
setPurposeValue(int value)
Optional.
|
TagKey.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TagKey.Builder |
setShortName(String value)
Required.
|
TagKey.Builder |
setShortNameBytes(com.google.protobuf.ByteString value)
Required.
|
TagKey.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TagKey.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
TagKey.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<TagKey.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<TagKey.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TagKey.Builder>public TagKey.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TagKey.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<TagKey.Builder>public TagKey getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TagKey build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TagKey buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TagKey.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TagKey.Builder>public TagKey.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<TagKey.Builder>public TagKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TagKey.Builder>public TagKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TagKey.Builder>public TagKey.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<TagKey.Builder>public TagKey.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<TagKey.Builder>public TagKey.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TagKey.Builder>public TagKey.Builder mergeFrom(TagKey other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TagKey.Builder>public TagKey.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<TagKey.Builder>IOExceptionpublic String getName()
Immutable. The resource name for a TagKey. Must be in the format
`tagKeys/{tag_key_id}`, where `tag_key_id` is the generated numeric id for
the TagKey.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getName in interface TagKeyOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Immutable. The resource name for a TagKey. Must be in the format
`tagKeys/{tag_key_id}`, where `tag_key_id` is the generated numeric id for
the TagKey.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getNameBytes in interface TagKeyOrBuilderpublic TagKey.Builder setName(String value)
Immutable. The resource name for a TagKey. Must be in the format
`tagKeys/{tag_key_id}`, where `tag_key_id` is the generated numeric id for
the TagKey.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];value - The name to set.public TagKey.Builder clearName()
Immutable. The resource name for a TagKey. Must be in the format
`tagKeys/{tag_key_id}`, where `tag_key_id` is the generated numeric id for
the TagKey.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];public TagKey.Builder setNameBytes(com.google.protobuf.ByteString value)
Immutable. The resource name for a TagKey. Must be in the format
`tagKeys/{tag_key_id}`, where `tag_key_id` is the generated numeric id for
the TagKey.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];value - The bytes for name to set.public String getParent()
Immutable. The resource name of the TagKey's parent. A TagKey can be
parented by an Organization or a Project. For a TagKey parented by an
Organization, its parent must be in the form `organizations/{org_id}`. For
a TagKey parented by a Project, its parent can be in the form
`projects/{project_id}` or `projects/{project_number}`.
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];getParent in interface TagKeyOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
Immutable. The resource name of the TagKey's parent. A TagKey can be
parented by an Organization or a Project. For a TagKey parented by an
Organization, its parent must be in the form `organizations/{org_id}`. For
a TagKey parented by a Project, its parent can be in the form
`projects/{project_id}` or `projects/{project_number}`.
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];getParentBytes in interface TagKeyOrBuilderpublic TagKey.Builder setParent(String value)
Immutable. The resource name of the TagKey's parent. A TagKey can be
parented by an Organization or a Project. For a TagKey parented by an
Organization, its parent must be in the form `organizations/{org_id}`. For
a TagKey parented by a Project, its parent can be in the form
`projects/{project_id}` or `projects/{project_number}`.
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];value - The parent to set.public TagKey.Builder clearParent()
Immutable. The resource name of the TagKey's parent. A TagKey can be
parented by an Organization or a Project. For a TagKey parented by an
Organization, its parent must be in the form `organizations/{org_id}`. For
a TagKey parented by a Project, its parent can be in the form
`projects/{project_id}` or `projects/{project_number}`.
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];public TagKey.Builder setParentBytes(com.google.protobuf.ByteString value)
Immutable. The resource name of the TagKey's parent. A TagKey can be
parented by an Organization or a Project. For a TagKey parented by an
Organization, its parent must be in the form `organizations/{org_id}`. For
a TagKey parented by a Project, its parent can be in the form
`projects/{project_id}` or `projects/{project_number}`.
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];value - The bytes for parent to set.public String getShortName()
Required. Immutable. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. The short name must be 1-63 characters, 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 TagKeyOrBuilderpublic com.google.protobuf.ByteString getShortNameBytes()
Required. Immutable. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. The short name must be 1-63 characters, 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 TagKeyOrBuilderpublic TagKey.Builder setShortName(String value)
Required. Immutable. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. The short name must be 1-63 characters, 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 TagKey.Builder clearShortName()
Required. Immutable. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. The short name must be 1-63 characters, 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 TagKey.Builder setShortNameBytes(com.google.protobuf.ByteString value)
Required. Immutable. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. The short name must be 1-63 characters, 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. Immutable. Namespaced name of the TagKey.
string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
getNamespacedName in interface TagKeyOrBuilderpublic com.google.protobuf.ByteString getNamespacedNameBytes()
Output only. Immutable. Namespaced name of the TagKey.
string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
getNamespacedNameBytes in interface TagKeyOrBuilderpublic TagKey.Builder setNamespacedName(String value)
Output only. Immutable. Namespaced name of the TagKey.
string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
value - The namespacedName to set.public TagKey.Builder clearNamespacedName()
Output only. Immutable. Namespaced name of the TagKey.
string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
public TagKey.Builder setNamespacedNameBytes(com.google.protobuf.ByteString value)
Output only. Immutable. Namespaced name of the TagKey.
string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
value - The bytes for namespacedName to set.public String getDescription()
Optional. User-assigned description of the TagKey. Must not exceed 256 characters. Read-write.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];getDescription in interface TagKeyOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Optional. User-assigned description of the TagKey. Must not exceed 256 characters. Read-write.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];getDescriptionBytes in interface TagKeyOrBuilderpublic TagKey.Builder setDescription(String value)
Optional. User-assigned description of the TagKey. Must not exceed 256 characters. Read-write.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];value - The description to set.public TagKey.Builder clearDescription()
Optional. User-assigned description of the TagKey. Must not exceed 256 characters. Read-write.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];public TagKey.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. User-assigned description of the TagKey. 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 TagKeyOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface TagKeyOrBuilderpublic TagKey.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TagKey.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 TagKey.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TagKey.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 TagKeyOrBuilderpublic boolean hasUpdateTime()
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface TagKeyOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface TagKeyOrBuilderpublic TagKey.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TagKey.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 TagKey.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. Update time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TagKey.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 TagKeyOrBuilderpublic String getEtag()
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagKeyRequest for details.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];getEtag in interface TagKeyOrBuilderpublic 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 UpdateTagKeyRequest for details.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];getEtagBytes in interface TagKeyOrBuilderpublic TagKey.Builder setEtag(String value)
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagKeyRequest for details.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];value - The etag to set.public TagKey.Builder clearEtag()
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagKeyRequest for details.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];public TagKey.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 UpdateTagKeyRequest for details.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for etag to set.public int getPurposeValue()
Optional. A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines. A purpose cannot be changed once set.
.google.cloud.resourcemanager.v3.Purpose purpose = 11 [(.google.api.field_behavior) = OPTIONAL];
getPurposeValue in interface TagKeyOrBuilderpublic TagKey.Builder setPurposeValue(int value)
Optional. A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines. A purpose cannot be changed once set.
.google.cloud.resourcemanager.v3.Purpose purpose = 11 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for purpose to set.public Purpose getPurpose()
Optional. A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines. A purpose cannot be changed once set.
.google.cloud.resourcemanager.v3.Purpose purpose = 11 [(.google.api.field_behavior) = OPTIONAL];
getPurpose in interface TagKeyOrBuilderpublic TagKey.Builder setPurpose(Purpose value)
Optional. A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines. A purpose cannot be changed once set.
.google.cloud.resourcemanager.v3.Purpose purpose = 11 [(.google.api.field_behavior) = OPTIONAL];
value - The purpose to set.public TagKey.Builder clearPurpose()
Optional. A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines. A purpose cannot be changed once set.
.google.cloud.resourcemanager.v3.Purpose purpose = 11 [(.google.api.field_behavior) = OPTIONAL];
public int getPurposeDataCount()
TagKeyOrBuilderOptional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field. Purpose data cannot be changed once set.
map<string, string> purpose_data = 12 [(.google.api.field_behavior) = OPTIONAL];
getPurposeDataCount in interface TagKeyOrBuilderpublic boolean containsPurposeData(String key)
Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field. Purpose data cannot be changed once set.
map<string, string> purpose_data = 12 [(.google.api.field_behavior) = OPTIONAL];
containsPurposeData in interface TagKeyOrBuilder@Deprecated public Map<String,String> getPurposeData()
getPurposeDataMap() instead.getPurposeData in interface TagKeyOrBuilderpublic Map<String,String> getPurposeDataMap()
Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field. Purpose data cannot be changed once set.
map<string, string> purpose_data = 12 [(.google.api.field_behavior) = OPTIONAL];
getPurposeDataMap in interface TagKeyOrBuilderpublic String getPurposeDataOrDefault(String key, String defaultValue)
Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field. Purpose data cannot be changed once set.
map<string, string> purpose_data = 12 [(.google.api.field_behavior) = OPTIONAL];
getPurposeDataOrDefault in interface TagKeyOrBuilderpublic String getPurposeDataOrThrow(String key)
Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field. Purpose data cannot be changed once set.
map<string, string> purpose_data = 12 [(.google.api.field_behavior) = OPTIONAL];
getPurposeDataOrThrow in interface TagKeyOrBuilderpublic TagKey.Builder clearPurposeData()
public TagKey.Builder removePurposeData(String key)
Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field. Purpose data cannot be changed once set.
map<string, string> purpose_data = 12 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated public Map<String,String> getMutablePurposeData()
public TagKey.Builder putPurposeData(String key, String value)
Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field. Purpose data cannot be changed once set.
map<string, string> purpose_data = 12 [(.google.api.field_behavior) = OPTIONAL];
public TagKey.Builder putAllPurposeData(Map<String,String> values)
Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field. Purpose data cannot be changed once set.
map<string, string> purpose_data = 12 [(.google.api.field_behavior) = OPTIONAL];
public final TagKey.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TagKey.Builder>public final TagKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TagKey.Builder>Copyright © 2025 Google LLC. All rights reserved.