Class CreateTagHoldRequest.Builder (1.47.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateTagHoldRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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.