Class CreateTagKeyRequest.Builder (1.47.0)

public static final class CreateTagKeyRequest.Builder extends GeneratedMessageV3.Builder<CreateTagKeyRequest.Builder> implements CreateTagKeyRequestOrBuilder

The request message for creating a TagKey.

Protobuf type google.cloud.resourcemanager.v3.CreateTagKeyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTagKeyRequest build()
Returns
Type Description
CreateTagKeyRequest

buildPartial()

public CreateTagKeyRequest buildPartial()
Returns
Type Description
CreateTagKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTagKey()

public CreateTagKeyRequest.Builder clearTagKey()

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

.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTagKeyRequest.Builder

clearValidateOnly()

public CreateTagKeyRequest.Builder clearValidateOnly()

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

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

Returns
Type Description
CreateTagKeyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTagKeyRequest getDefaultInstanceForType()
Returns
Type Description
CreateTagKeyRequest

getDescriptorForType()

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

getTagKey()

public TagKey getTagKey()

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

.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagKey

The tagKey.

getTagKeyBuilder()

public TagKey.Builder getTagKeyBuilder()

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

.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagKey.Builder

getTagKeyOrBuilder()

public TagKeyOrBuilder getTagKeyOrBuilder()

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

.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagKeyOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. Set to true to perform 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.

hasTagKey()

public boolean hasTagKey()

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

.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the tagKey field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTagKeyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTagKey(TagKey value)

public CreateTagKeyRequest.Builder mergeTagKey(TagKey value)

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

.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TagKey
Returns
Type Description
CreateTagKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTagKey(TagKey value)

public CreateTagKeyRequest.Builder setTagKey(TagKey value)

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

.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TagKey
Returns
Type Description
CreateTagKeyRequest.Builder

setTagKey(TagKey.Builder builderForValue)

public CreateTagKeyRequest.Builder setTagKey(TagKey.Builder builderForValue)

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

.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TagKey.Builder
Returns
Type Description
CreateTagKeyRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateTagKeyRequest.Builder setValidateOnly(boolean value)

Optional. Set to true to perform 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
CreateTagKeyRequest.Builder

This builder for chaining.