Class CreateCryptoKeyVersionRequest (2.21.0)

public final class CreateCryptoKeyVersionRequest extends GeneratedMessageV3 implements CreateCryptoKeyVersionRequestOrBuilder

Request message for KeyManagementService.CreateCryptoKeyVersion.

Protobuf type google.cloud.kms.v1.CreateCryptoKeyVersionRequest

Static Fields

CRYPTO_KEY_VERSION_FIELD_NUMBER

public static final int CRYPTO_KEY_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateCryptoKeyVersionRequest getDefaultInstance()
Returns
TypeDescription
CreateCryptoKeyVersionRequest

getDescriptor()

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

newBuilder()

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

newBuilder(CreateCryptoKeyVersionRequest prototype)

public static CreateCryptoKeyVersionRequest.Builder newBuilder(CreateCryptoKeyVersionRequest prototype)
Parameter
NameDescription
prototypeCreateCryptoKeyVersionRequest
Returns
TypeDescription
CreateCryptoKeyVersionRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCryptoKeyVersion()

public CryptoKeyVersion getCryptoKeyVersion()

Required. A CryptoKeyVersion with initial field values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CryptoKeyVersion

The cryptoKeyVersion.

getCryptoKeyVersionOrBuilder()

public CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBuilder()

Required. A CryptoKeyVersion with initial field values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CryptoKeyVersionOrBuilder

getDefaultInstanceForType()

public CreateCryptoKeyVersionRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateCryptoKeyVersionRequest

getParent()

public String getParent()

Required. The name of the CryptoKey associated with the CryptoKeyVersions.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the CryptoKey associated with the CryptoKeyVersions.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCryptoKeyVersion()

public boolean hasCryptoKeyVersion()

Required. A CryptoKeyVersion with initial field values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the cryptoKeyVersion 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 CreateCryptoKeyVersionRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateCryptoKeyVersionRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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