Class CreateTagHoldRequest.Builder (1.20.0)
1.93.0 (latest)
1.90.0
1.89.0
1.87.0
1.85.0
1.84.0
1.82.0
1.80.0
1.78.0
1.77.0
1.76.0
1.75.0
1.74.0
1.72.0
1.70.0
1.69.0
1.66.0
1.65.0
1.64.0
1.62.0
1.61.0
1.60.0
1.59.0
1.58.0
1.57.0
1.56.0
1.55.0
1.54.0
1.53.0
1.51.0
1.50.0
1.49.0
1.48.0
1.47.0
1.46.0
1.45.0
1.44.0
1.43.0
1.42.0
1.41.0
1.39.0
1.38.0
1.37.0
1.36.0
1.35.0
1.34.0
1.33.0
1.32.0
1.31.0
1.30.0
1.29.0
1.26.0
1.25.0
1.24.0
1.23.0
1.22.0
1.21.0
1.20.0
1.19.0
1.18.0
1.17.0
1.16.0
1.15.0
1.14.0
1.13.0
1.11.0
1.10.0
1.9.0
1.8.0
1.7.0
1.6.0
1.5.6
1.4.0
1.3.2
1.2.12
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateTagHoldRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public CreateTagHoldRequest build ()
buildPartial()
public CreateTagHoldRequest buildPartial ()
clear()
public CreateTagHoldRequest . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateTagHoldRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateTagHoldRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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) = { ... }
clearTagHold()
public CreateTagHoldRequest . Builder clearTagHold ()
Required. The TagHold to be created.
.google.cloud.resourcemanager.v3.TagHold tag_hold = 2 [(.google.api.field_behavior) = REQUIRED];
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];
clone()
public CreateTagHoldRequest . Builder clone ()
Overrides
getDefaultInstanceForType()
public CreateTagHoldRequest getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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];
getTagHoldOrBuilder()
public TagHoldOrBuilder getTagHoldOrBuilder ()
Required. The TagHold to be created.
.google.cloud.resourcemanager.v3.TagHold tag_hold = 2 [(.google.api.field_behavior) = REQUIRED];
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(CreateTagHoldRequest other)
public CreateTagHoldRequest . Builder mergeFrom ( CreateTagHoldRequest other )
public CreateTagHoldRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public CreateTagHoldRequest . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateTagHoldRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateTagHoldRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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.
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateTagHoldRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateTagHoldRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-26 UTC."],[],[]]