public static final class TagBinding.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TagBinding.Builder> implements TagBindingOrBuilder
A TagBinding represents a connection between a TagValue and a cloud resource Once a TagBinding is created, the TagValue is applied to all the descendants of the Google Cloud resource.Protobuf type
google.cloud.resourcemanager.v3.TagBinding| Modifier and Type | Method and Description |
|---|---|
TagBinding.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TagBinding |
build() |
TagBinding |
buildPartial() |
TagBinding.Builder |
clear() |
TagBinding.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TagBinding.Builder |
clearName()
Output only.
|
TagBinding.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TagBinding.Builder |
clearParent()
The full resource name of the resource the TagValue is bound to.
|
TagBinding.Builder |
clearTagValue()
The TagValue of the TagBinding.
|
TagBinding.Builder |
clearTagValueNamespacedName()
The namespaced name for the TagValue of the TagBinding.
|
TagBinding.Builder |
clone() |
TagBinding |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
String |
getParent()
The full resource name of the resource the TagValue is bound to.
|
com.google.protobuf.ByteString |
getParentBytes()
The full resource name of the resource the TagValue is bound to.
|
String |
getTagValue()
The TagValue of the TagBinding.
|
com.google.protobuf.ByteString |
getTagValueBytes()
The TagValue of the TagBinding.
|
String |
getTagValueNamespacedName()
The namespaced name for the TagValue of the TagBinding.
|
com.google.protobuf.ByteString |
getTagValueNamespacedNameBytes()
The namespaced name for the TagValue of the TagBinding.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TagBinding.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TagBinding.Builder |
mergeFrom(com.google.protobuf.Message other) |
TagBinding.Builder |
mergeFrom(TagBinding other) |
TagBinding.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TagBinding.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TagBinding.Builder |
setName(String value)
Output only.
|
TagBinding.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
TagBinding.Builder |
setParent(String value)
The full resource name of the resource the TagValue is bound to.
|
TagBinding.Builder |
setParentBytes(com.google.protobuf.ByteString value)
The full resource name of the resource the TagValue is bound to.
|
TagBinding.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TagBinding.Builder |
setTagValue(String value)
The TagValue of the TagBinding.
|
TagBinding.Builder |
setTagValueBytes(com.google.protobuf.ByteString value)
The TagValue of the TagBinding.
|
TagBinding.Builder |
setTagValueNamespacedName(String value)
The namespaced name for the TagValue of the TagBinding.
|
TagBinding.Builder |
setTagValueNamespacedNameBytes(com.google.protobuf.ByteString value)
The namespaced name for the TagValue of the TagBinding.
|
TagBinding.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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<TagBinding.Builder>public TagBinding.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TagBinding.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<TagBinding.Builder>public TagBinding getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TagBinding build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TagBinding buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TagBinding.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TagBinding.Builder>public TagBinding.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<TagBinding.Builder>public TagBinding.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TagBinding.Builder>public TagBinding.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TagBinding.Builder>public TagBinding.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<TagBinding.Builder>public TagBinding.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<TagBinding.Builder>public TagBinding.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TagBinding.Builder>public TagBinding.Builder mergeFrom(TagBinding other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TagBinding.Builder>public TagBinding.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<TagBinding.Builder>IOExceptionpublic String getName()
Output only. The name of the TagBinding. This is a String of the form:
`tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
`tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface TagBindingOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The name of the TagBinding. This is a String of the form:
`tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
`tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface TagBindingOrBuilderpublic TagBinding.Builder setName(String value)
Output only. The name of the TagBinding. This is a String of the form:
`tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
`tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public TagBinding.Builder clearName()
Output only. The name of the TagBinding. This is a String of the form:
`tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
`tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public TagBinding.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The name of the TagBinding. This is a String of the form:
`tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
`tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public String getParent()
The full resource name of the resource the TagValue is bound to. E.g. `//cloudresourcemanager.googleapis.com/projects/123`
string parent = 2;getParent in interface TagBindingOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
The full resource name of the resource the TagValue is bound to. E.g. `//cloudresourcemanager.googleapis.com/projects/123`
string parent = 2;getParentBytes in interface TagBindingOrBuilderpublic TagBinding.Builder setParent(String value)
The full resource name of the resource the TagValue is bound to. E.g. `//cloudresourcemanager.googleapis.com/projects/123`
string parent = 2;value - The parent to set.public TagBinding.Builder clearParent()
The full resource name of the resource the TagValue is bound to. E.g. `//cloudresourcemanager.googleapis.com/projects/123`
string parent = 2;public TagBinding.Builder setParentBytes(com.google.protobuf.ByteString value)
The full resource name of the resource the TagValue is bound to. E.g. `//cloudresourcemanager.googleapis.com/projects/123`
string parent = 2;value - The bytes for parent to set.public String getTagValue()
The TagValue of the TagBinding. Must be of the form `tagValues/456`.
string tag_value = 3;getTagValue in interface TagBindingOrBuilderpublic com.google.protobuf.ByteString getTagValueBytes()
The TagValue of the TagBinding. Must be of the form `tagValues/456`.
string tag_value = 3;getTagValueBytes in interface TagBindingOrBuilderpublic TagBinding.Builder setTagValue(String value)
The TagValue of the TagBinding. Must be of the form `tagValues/456`.
string tag_value = 3;value - The tagValue to set.public TagBinding.Builder clearTagValue()
The TagValue of the TagBinding. Must be of the form `tagValues/456`.
string tag_value = 3;public TagBinding.Builder setTagValueBytes(com.google.protobuf.ByteString value)
The TagValue of the TagBinding. Must be of the form `tagValues/456`.
string tag_value = 3;value - The bytes for tagValue to set.public String getTagValueNamespacedName()
The namespaced name for the TagValue of the TagBinding.
Must be in the format
`{parent_id}/{tag_key_short_name}/{short_name}`.
For methods that support TagValue namespaced name, only one of
tag_value_namespaced_name or tag_value may be filled. Requests with both
fields will be rejected.
string tag_value_namespaced_name = 4;getTagValueNamespacedName in interface TagBindingOrBuilderpublic com.google.protobuf.ByteString getTagValueNamespacedNameBytes()
The namespaced name for the TagValue of the TagBinding.
Must be in the format
`{parent_id}/{tag_key_short_name}/{short_name}`.
For methods that support TagValue namespaced name, only one of
tag_value_namespaced_name or tag_value may be filled. Requests with both
fields will be rejected.
string tag_value_namespaced_name = 4;getTagValueNamespacedNameBytes in interface TagBindingOrBuilderpublic TagBinding.Builder setTagValueNamespacedName(String value)
The namespaced name for the TagValue of the TagBinding.
Must be in the format
`{parent_id}/{tag_key_short_name}/{short_name}`.
For methods that support TagValue namespaced name, only one of
tag_value_namespaced_name or tag_value may be filled. Requests with both
fields will be rejected.
string tag_value_namespaced_name = 4;value - The tagValueNamespacedName to set.public TagBinding.Builder clearTagValueNamespacedName()
The namespaced name for the TagValue of the TagBinding.
Must be in the format
`{parent_id}/{tag_key_short_name}/{short_name}`.
For methods that support TagValue namespaced name, only one of
tag_value_namespaced_name or tag_value may be filled. Requests with both
fields will be rejected.
string tag_value_namespaced_name = 4;public TagBinding.Builder setTagValueNamespacedNameBytes(com.google.protobuf.ByteString value)
The namespaced name for the TagValue of the TagBinding.
Must be in the format
`{parent_id}/{tag_key_short_name}/{short_name}`.
For methods that support TagValue namespaced name, only one of
tag_value_namespaced_name or tag_value may be filled. Requests with both
fields will be rejected.
string tag_value_namespaced_name = 4;value - The bytes for tagValueNamespacedName to set.public final TagBinding.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TagBinding.Builder>public final TagBinding.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TagBinding.Builder>Copyright © 2025 Google LLC. All rights reserved.