Class CreateTagHoldRequest.Builder (1.21.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTagHoldRequest build()
Returns
TypeDescription
CreateTagHoldRequest

buildPartial()

public CreateTagHoldRequest buildPartial()
Returns
TypeDescription
CreateTagHoldRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateTagHoldRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateTagHoldRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTagHoldRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTagHoldRequest

getDescriptorForType()

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

Whether the tagHold field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateTagHoldRequest other)

public CreateTagHoldRequest.Builder mergeFrom(CreateTagHoldRequest other)
Parameter
NameDescription
otherCreateTagHoldRequest
Returns
TypeDescription
CreateTagHoldRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateTagHoldRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTagHold
Returns
TypeDescription
CreateTagHoldRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTagHold
Returns
TypeDescription
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
NameDescription
builderForValueTagHold.Builder
Returns
TypeDescription
CreateTagHoldRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateTagHoldRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateTagHoldRequest.Builder

This builder for chaining.