Class CreateTagHoldRequest.Builder (1.85.0)

public static final class CreateTagHoldRequest.Builder extends GeneratedMessage.Builder<CreateTagHoldRequest.Builder> implements CreateTagHoldRequestOrBuilder

The request message to create a TagHold.

Protobuf type google.cloud.resourcemanager.v3.CreateTagHoldRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateTagHoldRequest build()
Returns
Type Description
CreateTagHoldRequest

buildPartial()

public CreateTagHoldRequest buildPartial()
Returns
Type Description
CreateTagHoldRequest

clear()

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

clearParent()

public CreateTagHoldRequest.Builder clearParent()

Required. The resource name of the TagHold's parent TagValue. Must be of the form: tagValues/{tag-value-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateTagHoldRequest.Builder

This builder for chaining.

clearTagHold()

public CreateTagHoldRequest.Builder clearTagHold()

Required. The TagHold to be created.

.google.cloud.resourcemanager.v3.TagHold tag_hold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTagHoldRequest.Builder

clearValidateOnly()

public CreateTagHoldRequest.Builder clearValidateOnly()

Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateTagHoldRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateTagHoldRequest getDefaultInstanceForType()
Returns
Type Description
CreateTagHoldRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The resource name of the TagHold's parent TagValue. Must be of the form: tagValues/{tag-value-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the TagHold's parent TagValue. Must be of the form: tagValues/{tag-value-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getTagHold()

public TagHold getTagHold()

Required. The TagHold to be created.

.google.cloud.resourcemanager.v3.TagHold tag_hold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagHold

The tagHold.

getTagHoldBuilder()

public TagHold.Builder getTagHoldBuilder()

Required. The TagHold to be created.

.google.cloud.resourcemanager.v3.TagHold tag_hold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagHold.Builder

getTagHoldOrBuilder()

public TagHoldOrBuilder getTagHoldOrBuilder()

Required. The TagHold to be created.

.google.cloud.resourcemanager.v3.TagHold tag_hold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagHoldOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasTagHold()

public boolean hasTagHold()

Required. The TagHold to be created.

.google.cloud.resourcemanager.v3.TagHold tag_hold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the tagHold field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTagHoldRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTagHold(TagHold value)

public CreateTagHoldRequest.Builder mergeTagHold(TagHold value)

Required. The TagHold to be created.

.google.cloud.resourcemanager.v3.TagHold tag_hold = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TagHold
Returns
Type Description
CreateTagHoldRequest.Builder

setParent(String value)

public CreateTagHoldRequest.Builder setParent(String value)

Required. The resource name of the TagHold's parent TagValue. Must be of the form: tagValues/{tag-value-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateTagHoldRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateTagHoldRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the TagHold's parent TagValue. Must be of the form: tagValues/{tag-value-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateTagHoldRequest.Builder

This builder for chaining.

setTagHold(TagHold value)

public CreateTagHoldRequest.Builder setTagHold(TagHold value)

Required. The TagHold to be created.

.google.cloud.resourcemanager.v3.TagHold tag_hold = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TagHold
Returns
Type Description
CreateTagHoldRequest.Builder

setTagHold(TagHold.Builder builderForValue)

public CreateTagHoldRequest.Builder setTagHold(TagHold.Builder builderForValue)

Required. The TagHold to be created.

.google.cloud.resourcemanager.v3.TagHold tag_hold = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TagHold.Builder
Returns
Type Description
CreateTagHoldRequest.Builder

setValidateOnly(boolean value)

public CreateTagHoldRequest.Builder setValidateOnly(boolean value)

Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateTagHoldRequest.Builder

This builder for chaining.