Class CreateTagValueRequest.Builder (1.46.0)

public static final class CreateTagValueRequest.Builder extends GeneratedMessageV3.Builder<CreateTagValueRequest.Builder> implements CreateTagValueRequestOrBuilder

The request message for creating a TagValue.

Protobuf type google.cloud.resourcemanager.v3.CreateTagValueRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTagValueRequest build()
Returns
Type Description
CreateTagValueRequest

buildPartial()

public CreateTagValueRequest buildPartial()
Returns
Type Description
CreateTagValueRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateTagValueRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateTagValueRequest.Builder
Overrides

clearTagValue()

public CreateTagValueRequest.Builder clearTagValue()

Required. The TagValue to be created. Only fields short_name, description, and parent are considered during the creation request.

.google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTagValueRequest.Builder

clearValidateOnly()

public CreateTagValueRequest.Builder clearValidateOnly()

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

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

Returns
Type Description
CreateTagValueRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTagValueRequest getDefaultInstanceForType()
Returns
Type Description
CreateTagValueRequest

getDescriptorForType()

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

getTagValue()

public TagValue getTagValue()

Required. The TagValue to be created. Only fields short_name, description, and parent are considered during the creation request.

.google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagValue

The tagValue.

getTagValueBuilder()

public TagValue.Builder getTagValueBuilder()

Required. The TagValue to be created. Only fields short_name, description, and parent are considered during the creation request.

.google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagValue.Builder

getTagValueOrBuilder()

public TagValueOrBuilder getTagValueOrBuilder()

Required. The TagValue to be created. Only fields short_name, description, and parent are considered during the creation request.

.google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagValueOrBuilder

getValidateOnly()

public boolean getValidateOnly()

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

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

Returns
Type Description
boolean

The validateOnly.

hasTagValue()

public boolean hasTagValue()

Required. The TagValue to be created. Only fields short_name, description, and parent are considered during the creation request.

.google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the tagValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTagValueRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTagValue(TagValue value)

public CreateTagValueRequest.Builder mergeTagValue(TagValue value)

Required. The TagValue to be created. Only fields short_name, description, and parent are considered during the creation request.

.google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TagValue
Returns
Type Description
CreateTagValueRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTagValue(TagValue value)

public CreateTagValueRequest.Builder setTagValue(TagValue value)

Required. The TagValue to be created. Only fields short_name, description, and parent are considered during the creation request.

.google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TagValue
Returns
Type Description
CreateTagValueRequest.Builder

setTagValue(TagValue.Builder builderForValue)

public CreateTagValueRequest.Builder setTagValue(TagValue.Builder builderForValue)

Required. The TagValue to be created. Only fields short_name, description, and parent are considered during the creation request.

.google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TagValue.Builder
Returns
Type Description
CreateTagValueRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateTagValueRequest.Builder setValidateOnly(boolean value)

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

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

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateTagValueRequest.Builder

This builder for chaining.