Class TagBinding.Builder (1.14.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 (currently project, folder, or organization). Once a TagBinding is created, the TagValue is applied to all the descendants of the cloud resource.

Protobuf type google.cloud.resourcemanager.v3.TagBinding

Implements

TagBindingOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TagBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TagBinding.Builder
Overrides

build()

public TagBinding build()
Returns
TypeDescription
TagBinding

buildPartial()

public TagBinding buildPartial()
Returns
TypeDescription
TagBinding

clear()

public TagBinding.Builder clear()
Returns
TypeDescription
TagBinding.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TagBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
TagBinding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TagBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TagBinding.Builder

This builder for chaining.

clone()

public TagBinding.Builder clone()
Returns
TypeDescription
TagBinding.Builder
Overrides

getDefaultInstanceForType()

public TagBinding getDefaultInstanceForType()
Returns
TypeDescription
TagBinding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The tagValue.

getTagValueBytes()

public ByteString getTagValueBytes()

The TagValue of the TagBinding. Must be of the form tagValues/456.

string tag_value = 3;

Returns
TypeDescription
ByteString

The bytes for tagValue.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TagBinding other)

public TagBinding.Builder mergeFrom(TagBinding other)
Parameter
NameDescription
otherTagBinding
Returns
TypeDescription
TagBinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TagBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TagBinding.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TagBinding.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TagBinding.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TagBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TagBinding.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TagBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The tagValue to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for tagValue to set.

Returns
TypeDescription
TagBinding.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TagBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TagBinding.Builder
Overrides