Class UpdateTagKeyRequest.Builder (1.45.0)

public static final class UpdateTagKeyRequest.Builder extends GeneratedMessageV3.Builder<UpdateTagKeyRequest.Builder> implements UpdateTagKeyRequestOrBuilder

The request message for updating a TagKey.

Protobuf type google.cloud.resourcemanager.v3.UpdateTagKeyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateTagKeyRequest build()
Returns
Type Description
UpdateTagKeyRequest

buildPartial()

public UpdateTagKeyRequest buildPartial()
Returns
Type Description
UpdateTagKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTagKey()

public UpdateTagKeyRequest.Builder clearTagKey()

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

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

Returns
Type Description
UpdateTagKeyRequest.Builder

clearUpdateMask()

public UpdateTagKeyRequest.Builder clearUpdateMask()

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateTagKeyRequest.Builder

clearValidateOnly()

public UpdateTagKeyRequest.Builder clearValidateOnly()

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

bool validate_only = 3;

Returns
Type Description
UpdateTagKeyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpdateTagKeyRequest getDefaultInstanceForType()
Returns
Type Description
UpdateTagKeyRequest

getDescriptorForType()

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

getTagKey()

public TagKey getTagKey()

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

.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 new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

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

Returns
Type Description
TagKey.Builder

getTagKeyOrBuilder()

public TagKeyOrBuilder getTagKeyOrBuilder()

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

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

Returns
Type Description
TagKeyOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

getValidateOnly()

public boolean getValidateOnly()

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

bool validate_only = 3;

Returns
Type Description
boolean

The validateOnly.

hasTagKey()

public boolean hasTagKey()

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

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

Returns
Type Description
boolean

Whether the tagKey field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateTagKeyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTagKey(TagKey value)

public UpdateTagKeyRequest.Builder mergeTagKey(TagKey value)

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

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

Parameter
Name Description
value TagKey
Returns
Type Description
UpdateTagKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateTagKeyRequest.Builder mergeUpdateMask(FieldMask value)

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateTagKeyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTagKey(TagKey value)

public UpdateTagKeyRequest.Builder setTagKey(TagKey value)

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

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

Parameter
Name Description
value TagKey
Returns
Type Description
UpdateTagKeyRequest.Builder

setTagKey(TagKey.Builder builderForValue)

public UpdateTagKeyRequest.Builder setTagKey(TagKey.Builder builderForValue)

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateTagKeyRequest.Builder setUpdateMask(FieldMask value)

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateTagKeyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateTagKeyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateTagKeyRequest.Builder

setValidateOnly(boolean value)

public UpdateTagKeyRequest.Builder setValidateOnly(boolean value)

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

bool validate_only = 3;

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
UpdateTagKeyRequest.Builder

This builder for chaining.