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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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.
|