Class UpdateTagKeyRequest.Builder (1.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateTagKeyRequest build()
Returns
TypeDescription
UpdateTagKeyRequest

buildPartial()

public UpdateTagKeyRequest buildPartial()
Returns
TypeDescription
UpdateTagKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpdateTagKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateTagKeyRequest

getDescriptorForType()

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

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateTagKeyRequest other)

public UpdateTagKeyRequest.Builder mergeFrom(UpdateTagKeyRequest other)
Parameter
NameDescription
otherUpdateTagKeyRequest
Returns
TypeDescription
UpdateTagKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateTagKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateTagKeyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The validateOnly to set.

Returns
TypeDescription
UpdateTagKeyRequest.Builder

This builder for chaining.