Class TagHold.Builder (1.51.0)

public static final class TagHold.Builder extends GeneratedMessageV3.Builder<TagHold.Builder> implements TagHoldOrBuilder

A TagHold represents the use of a TagValue that is not captured by TagBindings. If a TagValue has any TagHolds, deletion will be blocked. This resource is intended to be created in the same cloud location as the holder.

Protobuf type google.cloud.resourcemanager.v3.TagHold

Implements

TagHoldOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TagHold build()
Returns
Type Description
TagHold

buildPartial()

public TagHold buildPartial()
Returns
Type Description
TagHold

clear()

public TagHold.Builder clear()
Returns
Type Description
TagHold.Builder
Overrides

clearCreateTime()

public TagHold.Builder clearCreateTime()

Output only. The time this TagHold was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TagHold.Builder

clearField(Descriptors.FieldDescriptor field)

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

Optional. A URL where an end user can learn more about removing this hold. E.g. https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing

string help_link = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TagHold.Builder

This builder for chaining.

clearHolder()

public TagHold.Builder clearHolder()

Required. The name of the resource where the TagValue is being used. Must be less than 200 characters. E.g. //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group

string holder = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagHold.Builder

This builder for chaining.

clearName()

public TagHold.Builder clearName()

Output only. The resource name of a TagHold. This is a String of the form: tagValues/{tag-value-id}/tagHolds/{tag-hold-id} (e.g. tagValues/123/tagHolds/456). This resource name is generated by the server.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TagHold.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrigin()

public TagHold.Builder clearOrigin()

Optional. An optional string representing the origin of this request. This field should include human-understandable information to distinguish origins from each other. Must be less than 200 characters. E.g. migs-35678234

string origin = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TagHold.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time this TagHold was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time this TagHold was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time this TagHold was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public TagHold getDefaultInstanceForType()
Returns
Type Description
TagHold

getDescriptorForType()

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

Optional. A URL where an end user can learn more about removing this hold. E.g. https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing

string help_link = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The helpLink.

getHelpLinkBytes()

public ByteString getHelpLinkBytes()

Optional. A URL where an end user can learn more about removing this hold. E.g. https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing

string help_link = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for helpLink.

getHolder()

public String getHolder()

Required. The name of the resource where the TagValue is being used. Must be less than 200 characters. E.g. //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group

string holder = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The holder.

getHolderBytes()

public ByteString getHolderBytes()

Required. The name of the resource where the TagValue is being used. Must be less than 200 characters. E.g. //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group

string holder = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for holder.

getName()

public String getName()

Output only. The resource name of a TagHold. This is a String of the form: tagValues/{tag-value-id}/tagHolds/{tag-hold-id} (e.g. tagValues/123/tagHolds/456). This resource name is generated by the server.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of a TagHold. This is a String of the form: tagValues/{tag-value-id}/tagHolds/{tag-hold-id} (e.g. tagValues/123/tagHolds/456). This resource name is generated by the server.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getOrigin()

public String getOrigin()

Optional. An optional string representing the origin of this request. This field should include human-understandable information to distinguish origins from each other. Must be less than 200 characters. E.g. migs-35678234

string origin = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The origin.

getOriginBytes()

public ByteString getOriginBytes()

Optional. An optional string representing the origin of this request. This field should include human-understandable information to distinguish origins from each other. Must be less than 200 characters. E.g. migs-35678234

string origin = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for origin.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time this TagHold was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public TagHold.Builder mergeCreateTime(Timestamp value)

Output only. The time this TagHold was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TagHold.Builder

mergeFrom(TagHold other)

public TagHold.Builder mergeFrom(TagHold other)
Parameter
Name Description
other TagHold
Returns
Type Description
TagHold.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TagHold.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagHold.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateTime(Timestamp value)

public TagHold.Builder setCreateTime(Timestamp value)

Output only. The time this TagHold was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TagHold.Builder

setCreateTime(Timestamp.Builder builderForValue)

public TagHold.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time this TagHold was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TagHold.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

Optional. A URL where an end user can learn more about removing this hold. E.g. https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing

string help_link = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The helpLink to set.

Returns
Type Description
TagHold.Builder

This builder for chaining.

setHelpLinkBytes(ByteString value)

public TagHold.Builder setHelpLinkBytes(ByteString value)

Optional. A URL where an end user can learn more about removing this hold. E.g. https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing

string help_link = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for helpLink to set.

Returns
Type Description
TagHold.Builder

This builder for chaining.

setHolder(String value)

public TagHold.Builder setHolder(String value)

Required. The name of the resource where the TagValue is being used. Must be less than 200 characters. E.g. //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group

string holder = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The holder to set.

Returns
Type Description
TagHold.Builder

This builder for chaining.

setHolderBytes(ByteString value)

public TagHold.Builder setHolderBytes(ByteString value)

Required. The name of the resource where the TagValue is being used. Must be less than 200 characters. E.g. //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group

string holder = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for holder to set.

Returns
Type Description
TagHold.Builder

This builder for chaining.

setName(String value)

public TagHold.Builder setName(String value)

Output only. The resource name of a TagHold. This is a String of the form: tagValues/{tag-value-id}/tagHolds/{tag-hold-id} (e.g. tagValues/123/tagHolds/456). This resource name is generated by the server.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TagHold.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TagHold.Builder setNameBytes(ByteString value)

Output only. The resource name of a TagHold. This is a String of the form: tagValues/{tag-value-id}/tagHolds/{tag-hold-id} (e.g. tagValues/123/tagHolds/456). This resource name is generated by the server.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TagHold.Builder

This builder for chaining.

setOrigin(String value)

public TagHold.Builder setOrigin(String value)

Optional. An optional string representing the origin of this request. This field should include human-understandable information to distinguish origins from each other. Must be less than 200 characters. E.g. migs-35678234

string origin = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The origin to set.

Returns
Type Description
TagHold.Builder

This builder for chaining.

setOriginBytes(ByteString value)

public TagHold.Builder setOriginBytes(ByteString value)

Optional. An optional string representing the origin of this request. This field should include human-understandable information to distinguish origins from each other. Must be less than 200 characters. E.g. migs-35678234

string origin = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for origin to set.

Returns
Type Description
TagHold.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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