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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateTagKeyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UpdateTagKeyRequest build()
Returns
buildPartial()
public UpdateTagKeyRequest buildPartial()
Returns
clear()
public UpdateTagKeyRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public UpdateTagKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateTagKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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,
FAILED_PRECONDITION
will be returned.
.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
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
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
clone()
public UpdateTagKeyRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public UpdateTagKeyRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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,
FAILED_PRECONDITION
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,
FAILED_PRECONDITION
will be returned.
.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
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,
FAILED_PRECONDITION
will be returned.
.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
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
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
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
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,
FAILED_PRECONDITION
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(UpdateTagKeyRequest other)
public UpdateTagKeyRequest.Builder mergeFrom(UpdateTagKeyRequest other)
Parameter
Returns
public UpdateTagKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UpdateTagKeyRequest.Builder mergeFrom(Message other)
Parameter
Returns
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,
FAILED_PRECONDITION
will be returned.
.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateTagKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateTagKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateTagKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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,
FAILED_PRECONDITION
will be returned.
.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
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,
FAILED_PRECONDITION
will be returned.
.google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateTagKeyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
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