Package com.google.cloud.kms.v1
Class CryptoKeyVersion
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.kms.v1.CryptoKeyVersion
-
- All Implemented Interfaces:
CryptoKeyVersionOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class CryptoKeyVersion extends com.google.protobuf.GeneratedMessageV3 implements CryptoKeyVersionOrBuilder
A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an individual cryptographic key, and the associated key material. An [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] version can be used for cryptographic operations. For security reasons, the raw cryptographic key material represented by a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] can never be viewed or exported. It can only be used to encrypt, decrypt, or sign data when an authorized user or application invokes Cloud KMS.
Protobuf typegoogle.cloud.kms.v1.CryptoKeyVersion
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CryptoKeyVersion.Builder
A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an individual cryptographic key, and the associated key material.static class
CryptoKeyVersion.CryptoKeyVersionAlgorithm
The algorithm of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating what parameters must be used for each cryptographic operation.static class
CryptoKeyVersion.CryptoKeyVersionState
The state of a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating if it can be used.static class
CryptoKeyVersion.CryptoKeyVersionView
A view for [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]s.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALGORITHM_FIELD_NUMBER
static int
ATTESTATION_FIELD_NUMBER
static int
CREATE_TIME_FIELD_NUMBER
static int
DESTROY_EVENT_TIME_FIELD_NUMBER
static int
DESTROY_TIME_FIELD_NUMBER
static int
EXTERNAL_DESTRUCTION_FAILURE_REASON_FIELD_NUMBER
static int
EXTERNAL_PROTECTION_LEVEL_OPTIONS_FIELD_NUMBER
static int
GENERATE_TIME_FIELD_NUMBER
static int
GENERATION_FAILURE_REASON_FIELD_NUMBER
static int
IMPORT_FAILURE_REASON_FIELD_NUMBER
static int
IMPORT_JOB_FIELD_NUMBER
static int
IMPORT_TIME_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PROTECTION_LEVEL_FIELD_NUMBER
static int
REIMPORT_ELIGIBLE_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CryptoKeyVersion.CryptoKeyVersionAlgorithm
getAlgorithm()
Output only.int
getAlgorithmValue()
Output only.KeyOperationAttestation
getAttestation()
Output only.KeyOperationAttestationOrBuilder
getAttestationOrBuilder()
Output only.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.static CryptoKeyVersion
getDefaultInstance()
CryptoKeyVersion
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Timestamp
getDestroyEventTime()
Output only.com.google.protobuf.TimestampOrBuilder
getDestroyEventTimeOrBuilder()
Output only.com.google.protobuf.Timestamp
getDestroyTime()
Output only.com.google.protobuf.TimestampOrBuilder
getDestroyTimeOrBuilder()
Output only.String
getExternalDestructionFailureReason()
Output only.com.google.protobuf.ByteString
getExternalDestructionFailureReasonBytes()
Output only.ExternalProtectionLevelOptions
getExternalProtectionLevelOptions()
ExternalProtectionLevelOptions stores a group of additional fields for configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that are specific to the [EXTERNAL][google.cloud.kms.v1.ProtectionLevel.EXTERNAL] protection level and [EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC] protection levels.ExternalProtectionLevelOptionsOrBuilder
getExternalProtectionLevelOptionsOrBuilder()
ExternalProtectionLevelOptions stores a group of additional fields for configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that are specific to the [EXTERNAL][google.cloud.kms.v1.ProtectionLevel.EXTERNAL] protection level and [EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC] protection levels.com.google.protobuf.Timestamp
getGenerateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getGenerateTimeOrBuilder()
Output only.String
getGenerationFailureReason()
Output only.com.google.protobuf.ByteString
getGenerationFailureReasonBytes()
Output only.String
getImportFailureReason()
Output only.com.google.protobuf.ByteString
getImportFailureReasonBytes()
Output only.String
getImportJob()
Output only.com.google.protobuf.ByteString
getImportJobBytes()
Output only.com.google.protobuf.Timestamp
getImportTime()
Output only.com.google.protobuf.TimestampOrBuilder
getImportTimeOrBuilder()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<CryptoKeyVersion>
getParserForType()
ProtectionLevel
getProtectionLevel()
Output only.int
getProtectionLevelValue()
Output only.boolean
getReimportEligible()
Output only.int
getSerializedSize()
CryptoKeyVersion.CryptoKeyVersionState
getState()
The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].int
getStateValue()
The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].boolean
hasAttestation()
Output only.boolean
hasCreateTime()
Output only.boolean
hasDestroyEventTime()
Output only.boolean
hasDestroyTime()
Output only.boolean
hasExternalProtectionLevelOptions()
ExternalProtectionLevelOptions stores a group of additional fields for configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that are specific to the [EXTERNAL][google.cloud.kms.v1.ProtectionLevel.EXTERNAL] protection level and [EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC] protection levels.boolean
hasGenerateTime()
Output only.int
hashCode()
boolean
hasImportTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static CryptoKeyVersion.Builder
newBuilder()
static CryptoKeyVersion.Builder
newBuilder(CryptoKeyVersion prototype)
CryptoKeyVersion.Builder
newBuilderForType()
protected CryptoKeyVersion.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static CryptoKeyVersion
parseDelimitedFrom(InputStream input)
static CryptoKeyVersion
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CryptoKeyVersion
parseFrom(byte[] data)
static CryptoKeyVersion
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CryptoKeyVersion
parseFrom(com.google.protobuf.ByteString data)
static CryptoKeyVersion
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CryptoKeyVersion
parseFrom(com.google.protobuf.CodedInputStream input)
static CryptoKeyVersion
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CryptoKeyVersion
parseFrom(InputStream input)
static CryptoKeyVersion
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CryptoKeyVersion
parseFrom(ByteBuffer data)
static CryptoKeyVersion
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<CryptoKeyVersion>
parser()
CryptoKeyVersion.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROTECTION_LEVEL_FIELD_NUMBER
public static final int PROTECTION_LEVEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALGORITHM_FIELD_NUMBER
public static final int ALGORITHM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTESTATION_FIELD_NUMBER
public static final int ATTESTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GENERATE_TIME_FIELD_NUMBER
public static final int GENERATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESTROY_TIME_FIELD_NUMBER
public static final int DESTROY_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESTROY_EVENT_TIME_FIELD_NUMBER
public static final int DESTROY_EVENT_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMPORT_JOB_FIELD_NUMBER
public static final int IMPORT_JOB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMPORT_TIME_FIELD_NUMBER
public static final int IMPORT_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMPORT_FAILURE_REASON_FIELD_NUMBER
public static final int IMPORT_FAILURE_REASON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GENERATION_FAILURE_REASON_FIELD_NUMBER
public static final int GENERATION_FAILURE_REASON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTERNAL_DESTRUCTION_FAILURE_REASON_FIELD_NUMBER
public static final int EXTERNAL_DESTRUCTION_FAILURE_REASON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTERNAL_PROTECTION_LEVEL_OPTIONS_FIELD_NUMBER
public static final int EXTERNAL_PROTECTION_LEVEL_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REIMPORT_ELIGIBLE_FIELD_NUMBER
public static final int REIMPORT_ELIGIBLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The bytes for name.
-
getStateValue
public int getStateValue()
The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3;
- Specified by:
getStateValue
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
getState
public CryptoKeyVersion.CryptoKeyVersionState getState()
The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3;
- Specified by:
getState
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The state.
-
getProtectionLevelValue
public int getProtectionLevelValue()
Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
.google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getProtectionLevelValue
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The enum numeric value on the wire for protectionLevel.
-
getProtectionLevel
public ProtectionLevel getProtectionLevel()
Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
.google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getProtectionLevel
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The protectionLevel.
-
getAlgorithmValue
public int getAlgorithmValue()
Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAlgorithmValue
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The enum numeric value on the wire for algorithm.
-
getAlgorithm
public CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm()
Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAlgorithm
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The algorithm.
-
hasAttestation
public boolean hasAttestation()
Output only. Statement that was generated and signed by the HSM at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only provided for key versions with [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasAttestation
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- Whether the attestation field is set.
-
getAttestation
public KeyOperationAttestation getAttestation()
Output only. Statement that was generated and signed by the HSM at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only provided for key versions with [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAttestation
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The attestation.
-
getAttestationOrBuilder
public KeyOperationAttestationOrBuilder getAttestationOrBuilder()
Output only. Statement that was generated and signed by the HSM at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only provided for key versions with [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAttestationOrBuilder
in interfaceCryptoKeyVersionOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceCryptoKeyVersionOrBuilder
-
hasGenerateTime
public boolean hasGenerateTime()
Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was generated.
.google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasGenerateTime
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- Whether the generateTime field is set.
-
getGenerateTime
public com.google.protobuf.Timestamp getGenerateTime()
Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was generated.
.google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGenerateTime
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The generateTime.
-
getGenerateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder()
Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was generated.
.google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGenerateTimeOrBuilder
in interfaceCryptoKeyVersionOrBuilder
-
hasDestroyTime
public boolean hasDestroyTime()
Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is scheduled for destruction. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
.google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasDestroyTime
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- Whether the destroyTime field is set.
-
getDestroyTime
public com.google.protobuf.Timestamp getDestroyTime()
Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is scheduled for destruction. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
.google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDestroyTime
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The destroyTime.
-
getDestroyTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder()
Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is scheduled for destruction. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
.google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDestroyTimeOrBuilder
in interfaceCryptoKeyVersionOrBuilder
-
hasDestroyEventTime
public boolean hasDestroyEventTime()
Output only. The time this CryptoKeyVersion's key material was destroyed. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
.google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasDestroyEventTime
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- Whether the destroyEventTime field is set.
-
getDestroyEventTime
public com.google.protobuf.Timestamp getDestroyEventTime()
Output only. The time this CryptoKeyVersion's key material was destroyed. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
.google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDestroyEventTime
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The destroyEventTime.
-
getDestroyEventTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDestroyEventTimeOrBuilder()
Output only. The time this CryptoKeyVersion's key material was destroyed. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
.google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDestroyEventTimeOrBuilder
in interfaceCryptoKeyVersionOrBuilder
-
getImportJob
public String getImportJob()
Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob] used in the most recent import of this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only present if the underlying key material was imported.
string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getImportJob
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The importJob.
-
getImportJobBytes
public com.google.protobuf.ByteString getImportJobBytes()
Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob] used in the most recent import of this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only present if the underlying key material was imported.
string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getImportJobBytes
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The bytes for importJob.
-
hasImportTime
public boolean hasImportTime()
Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was most recently imported.
.google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasImportTime
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- Whether the importTime field is set.
-
getImportTime
public com.google.protobuf.Timestamp getImportTime()
Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was most recently imported.
.google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getImportTime
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The importTime.
-
getImportTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getImportTimeOrBuilder()
Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was most recently imported.
.google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getImportTimeOrBuilder
in interfaceCryptoKeyVersionOrBuilder
-
getImportFailureReason
public String getImportFailureReason()
Output only. The root cause of the most recent import failure. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [IMPORT_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.IMPORT_FAILED].
string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getImportFailureReason
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The importFailureReason.
-
getImportFailureReasonBytes
public com.google.protobuf.ByteString getImportFailureReasonBytes()
Output only. The root cause of the most recent import failure. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [IMPORT_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.IMPORT_FAILED].
string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getImportFailureReasonBytes
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The bytes for importFailureReason.
-
getGenerationFailureReason
public String getGenerationFailureReason()
Output only. The root cause of the most recent generation failure. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [GENERATION_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.GENERATION_FAILED].
string generation_failure_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGenerationFailureReason
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The generationFailureReason.
-
getGenerationFailureReasonBytes
public com.google.protobuf.ByteString getGenerationFailureReasonBytes()
Output only. The root cause of the most recent generation failure. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [GENERATION_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.GENERATION_FAILED].
string generation_failure_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGenerationFailureReasonBytes
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The bytes for generationFailureReason.
-
getExternalDestructionFailureReason
public String getExternalDestructionFailureReason()
Output only. The root cause of the most recent external destruction failure. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [EXTERNAL_DESTRUCTION_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.EXTERNAL_DESTRUCTION_FAILED].
string external_destruction_failure_reason = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getExternalDestructionFailureReason
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The externalDestructionFailureReason.
-
getExternalDestructionFailureReasonBytes
public com.google.protobuf.ByteString getExternalDestructionFailureReasonBytes()
Output only. The root cause of the most recent external destruction failure. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is [EXTERNAL_DESTRUCTION_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.EXTERNAL_DESTRUCTION_FAILED].
string external_destruction_failure_reason = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getExternalDestructionFailureReasonBytes
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The bytes for externalDestructionFailureReason.
-
hasExternalProtectionLevelOptions
public boolean hasExternalProtectionLevelOptions()
ExternalProtectionLevelOptions stores a group of additional fields for configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that are specific to the [EXTERNAL][google.cloud.kms.v1.ProtectionLevel.EXTERNAL] protection level and [EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC] protection levels.
.google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17;
- Specified by:
hasExternalProtectionLevelOptions
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- Whether the externalProtectionLevelOptions field is set.
-
getExternalProtectionLevelOptions
public ExternalProtectionLevelOptions getExternalProtectionLevelOptions()
ExternalProtectionLevelOptions stores a group of additional fields for configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that are specific to the [EXTERNAL][google.cloud.kms.v1.ProtectionLevel.EXTERNAL] protection level and [EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC] protection levels.
.google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17;
- Specified by:
getExternalProtectionLevelOptions
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The externalProtectionLevelOptions.
-
getExternalProtectionLevelOptionsOrBuilder
public ExternalProtectionLevelOptionsOrBuilder getExternalProtectionLevelOptionsOrBuilder()
ExternalProtectionLevelOptions stores a group of additional fields for configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that are specific to the [EXTERNAL][google.cloud.kms.v1.ProtectionLevel.EXTERNAL] protection level and [EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC] protection levels.
.google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17;
- Specified by:
getExternalProtectionLevelOptionsOrBuilder
in interfaceCryptoKeyVersionOrBuilder
-
getReimportEligible
public boolean getReimportEligible()
Output only. Whether or not this key version is eligible for reimport, by being specified as a target in [ImportCryptoKeyVersionRequest.crypto_key_version][google.cloud.kms.v1.ImportCryptoKeyVersionRequest.crypto_key_version].
bool reimport_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getReimportEligible
in interfaceCryptoKeyVersionOrBuilder
- Returns:
- The reimportEligible.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CryptoKeyVersion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoKeyVersion parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoKeyVersion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoKeyVersion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoKeyVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoKeyVersion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoKeyVersion parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CryptoKeyVersion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CryptoKeyVersion parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CryptoKeyVersion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CryptoKeyVersion parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CryptoKeyVersion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CryptoKeyVersion.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CryptoKeyVersion.Builder newBuilder()
-
newBuilder
public static CryptoKeyVersion.Builder newBuilder(CryptoKeyVersion prototype)
-
toBuilder
public CryptoKeyVersion.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CryptoKeyVersion.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CryptoKeyVersion getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CryptoKeyVersion> parser()
-
getParserForType
public com.google.protobuf.Parser<CryptoKeyVersion> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CryptoKeyVersion getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-