Class TagBinding.Builder (1.44.0)

public static final class TagBinding.Builder extends 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

Implements

TagBindingOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TagBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TagBinding.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public TagBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TagBinding.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public TagBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TagBinding.Builder
Overrides

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.

clone()

public TagBinding.Builder clone()
Returns
Type Description
TagBinding.Builder
Overrides

getDefaultInstanceForType()

public TagBinding getDefaultInstanceForType()
Returns
Type Description
TagBinding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TagBinding.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TagBinding.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TagBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TagBinding.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TagBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TagBinding.Builder
Overrides

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for parent to set.

Returns
Type Description
TagBinding.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TagBinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TagBinding.Builder
Overrides

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for tagValueNamespacedName to set.

Returns
Type Description
TagBinding.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TagBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TagBinding.Builder
Overrides