Class TagHold.Builder (1.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TagHold build()
Returns
TypeDescription
TagHold

buildPartial()

public TagHold buildPartial()
Returns
TypeDescription
TagHold

clear()

public TagHold.Builder clear()
Returns
TypeDescription
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
TypeDescription
TagHold.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public TagHold.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public TagHold getDefaultInstanceForType()
Returns
TypeDescription
TagHold

getDescriptorForType()

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

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
TagHold.Builder

mergeFrom(TagHold other)

public TagHold.Builder mergeFrom(TagHold other)
Parameter
NameDescription
otherTagHold
Returns
TypeDescription
TagHold.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TagHold.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
TagHold.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The helpLink to set.

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

The bytes for helpLink to set.

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

The holder to set.

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

The bytes for holder to set.

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

The name to set.

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

The bytes for name to set.

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

The origin to set.

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

The bytes for origin to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TagHold.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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