Class CreateTagKeyRequest.Builder (1.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTagKeyRequest build()
Returns
TypeDescription
CreateTagKeyRequest

buildPartial()

public CreateTagKeyRequest buildPartial()
Returns
TypeDescription
CreateTagKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTagKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTagKeyRequest

getDescriptorForType()

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

Whether the tagKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateTagKeyRequest other)

public CreateTagKeyRequest.Builder mergeFrom(CreateTagKeyRequest other)
Parameter
NameDescription
otherCreateTagKeyRequest
Returns
TypeDescription
CreateTagKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The validateOnly to set.

Returns
TypeDescription
CreateTagKeyRequest.Builder

This builder for chaining.