Class CreateTagValueRequest.Builder (1.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTagValueRequest build()
Returns
TypeDescription
CreateTagValueRequest

buildPartial()

public CreateTagValueRequest buildPartial()
Returns
TypeDescription
CreateTagValueRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTagValueRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTagValueRequest

getDescriptorForType()

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

Whether the tagValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateTagValueRequest other)

public CreateTagValueRequest.Builder mergeFrom(CreateTagValueRequest other)
Parameter
NameDescription
otherCreateTagValueRequest
Returns
TypeDescription
CreateTagValueRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public CreateTagValueRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTagValue
Returns
TypeDescription
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
NameDescription
builderForValueTagValue.Builder
Returns
TypeDescription
CreateTagValueRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

The validateOnly to set.

Returns
TypeDescription
CreateTagValueRequest.Builder

This builder for chaining.