Class UpdateCryptoKeyVersionRequest (2.5.1)

public final class UpdateCryptoKeyVersionRequest extends GeneratedMessageV3 implements UpdateCryptoKeyVersionRequestOrBuilder

Request message for KeyManagementService.UpdateCryptoKeyVersion.

Protobuf type google.cloud.kms.v1.UpdateCryptoKeyVersionRequest

Static Fields

CRYPTO_KEY_VERSION_FIELD_NUMBER

public static final int CRYPTO_KEY_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpdateCryptoKeyVersionRequest getDefaultInstance()
Returns
TypeDescription
UpdateCryptoKeyVersionRequest

getDescriptor()

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

newBuilder()

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

newBuilder(UpdateCryptoKeyVersionRequest prototype)

public static UpdateCryptoKeyVersionRequest.Builder newBuilder(UpdateCryptoKeyVersionRequest prototype)
Parameter
NameDescription
prototypeUpdateCryptoKeyVersionRequest
Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCryptoKeyVersion()

public CryptoKeyVersion getCryptoKeyVersion()

Required. CryptoKeyVersion with updated values.

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

Returns
TypeDescription
CryptoKeyVersion

The cryptoKeyVersion.

getCryptoKeyVersionOrBuilder()

public CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBuilder()

Required. CryptoKeyVersion with updated values.

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

Returns
TypeDescription
CryptoKeyVersionOrBuilder

getDefaultInstanceForType()

public UpdateCryptoKeyVersionRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateCryptoKeyVersionRequest

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMaskOrBuilder

hasCryptoKeyVersion()

public boolean hasCryptoKeyVersion()

Required. CryptoKeyVersion with updated values.

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

Returns
TypeDescription
boolean

Whether the cryptoKeyVersion field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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