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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateTagKeyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateTagKeyRequest build()
Returns
buildPartial()
public CreateTagKeyRequest buildPartial()
Returns
clear()
public CreateTagKeyRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateTagKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateTagKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public CreateTagKeyRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateTagKeyRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateTagKeyRequest other)
public CreateTagKeyRequest.Builder mergeFrom(CreateTagKeyRequest other)
Parameter
Returns
public CreateTagKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateTagKeyRequest.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateTagKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateTagKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateTagKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateTagKeyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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