Class CreateTagKeyRequest (1.2.11)

public final class CreateTagKeyRequest extends GeneratedMessageV3 implements CreateTagKeyRequestOrBuilder

The request message for creating a TagKey.

Protobuf type google.cloud.resourcemanager.v3.CreateTagKeyRequest

Static Fields

TAG_KEY_FIELD_NUMBER

public static final int TAG_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

VALIDATE_ONLY_FIELD_NUMBER

public static final int VALIDATE_ONLY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateTagKeyRequest getDefaultInstance()
Returns
TypeDescription
CreateTagKeyRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateTagKeyRequest.Builder newBuilder()
Returns
TypeDescription
CreateTagKeyRequest.Builder

newBuilder(CreateTagKeyRequest prototype)

public static CreateTagKeyRequest.Builder newBuilder(CreateTagKeyRequest prototype)
Parameter
NameDescription
prototypeCreateTagKeyRequest
Returns
TypeDescription
CreateTagKeyRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateTagKeyRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateTagKeyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateTagKeyRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateTagKeyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateTagKeyRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateTagKeyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateTagKeyRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateTagKeyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateTagKeyRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateTagKeyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateTagKeyRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateTagKeyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTagKeyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateTagKeyRequest> parser()
Returns
TypeDescription
Parser<CreateTagKeyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateTagKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTagKeyRequest

getParserForType()

public Parser<CreateTagKeyRequest> getParserForType()
Returns
TypeDescription
Parser<CreateTagKeyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateTagKeyRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateTagKeyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateTagKeyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateTagKeyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateTagKeyRequest.Builder toBuilder()
Returns
TypeDescription
CreateTagKeyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException