public static final class TagBinding.Builder extends GeneratedMessage.Builder<TagBinding.Builder> implements TagBindingOrBuilderA 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TagBinding.BuilderImplements
TagBindingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TagBinding build()| Returns | |
|---|---|
| Type | Description |
TagBinding |
|
buildPartial()
public TagBinding buildPartial()| Returns | |
|---|---|
| Type | Description |
TagBinding |
|
clear()
public TagBinding.Builder clear()| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
|
clearName()
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];
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
clearParent()
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;
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
clearTagValue()
public TagBinding.Builder clearTagValue() The TagValue of the TagBinding.
Must be of the form tagValues/456.
string tag_value = 3;
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
clearTagValueNamespacedName()
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;
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public TagBinding getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TagBinding |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public 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];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public 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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getParent()
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;
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() The full resource name of the resource the TagValue is bound to.
E.g. //cloudresourcemanager.googleapis.com/projects/123
string parent = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getTagValue()
public String getTagValue() The TagValue of the TagBinding.
Must be of the form tagValues/456.
string tag_value = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The tagValue. |
getTagValueBytes()
public ByteString getTagValueBytes() The TagValue of the TagBinding.
Must be of the form tagValues/456.
string tag_value = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tagValue. |
getTagValueNamespacedName()
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;
| Returns | |
|---|---|
| Type | Description |
String |
The tagValueNamespacedName. |
getTagValueNamespacedNameBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tagValueNamespacedName. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TagBinding other)
public TagBinding.Builder mergeFrom(TagBinding other)| Parameter | |
|---|---|
| Name | Description |
other |
TagBinding |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TagBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TagBinding.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
|
setName(String value)
public 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public TagBinding.Builder setNameBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
setParent(String value)
public 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public TagBinding.Builder setParentBytes(ByteString value) The full resource name of the resource the TagValue is bound to.
E.g. //cloudresourcemanager.googleapis.com/projects/123
string parent = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
setTagValue(String value)
public TagBinding.Builder setTagValue(String value) The TagValue of the TagBinding.
Must be of the form tagValues/456.
string tag_value = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tagValue to set. |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
setTagValueBytes(ByteString value)
public TagBinding.Builder setTagValueBytes(ByteString value) The TagValue of the TagBinding.
Must be of the form tagValues/456.
string tag_value = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tagValue to set. |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
setTagValueNamespacedName(String value)
public 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tagValueNamespacedName to set. |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |
setTagValueNamespacedNameBytes(ByteString value)
public TagBinding.Builder setTagValueNamespacedNameBytes(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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tagValueNamespacedName to set. |
| Returns | |
|---|---|
| Type | Description |
TagBinding.Builder |
This builder for chaining. |