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 type
google.cloud.kms.v1.CryptoKeyVersion
Modifier and Type | Class and 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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and 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_PROTECTION_LEVEL_OPTIONS_FIELD_NUMBER |
static int |
GENERATE_TIME_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 |
STATE_FIELD_NUMBER |
Modifier and Type | Method and 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.
|
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.
|
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.
|
com.google.protobuf.Timestamp |
getGenerateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getGenerateTimeOrBuilder()
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.
|
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].
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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.
|
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(ByteBuffer data) |
static CryptoKeyVersion |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<CryptoKeyVersion> |
parser() |
CryptoKeyVersion.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int NAME_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int PROTECTION_LEVEL_FIELD_NUMBER
public static final int ALGORITHM_FIELD_NUMBER
public static final int ATTESTATION_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int GENERATE_TIME_FIELD_NUMBER
public static final int DESTROY_TIME_FIELD_NUMBER
public static final int DESTROY_EVENT_TIME_FIELD_NUMBER
public static final int IMPORT_JOB_FIELD_NUMBER
public static final int IMPORT_TIME_FIELD_NUMBER
public static final int IMPORT_FAILURE_REASON_FIELD_NUMBER
public static final int EXTERNAL_PROTECTION_LEVEL_OPTIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
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];
getName
in interface CryptoKeyVersionOrBuilder
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];
getNameBytes
in interface CryptoKeyVersionOrBuilder
public int getStateValue()
The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3;
getStateValue
in interface CryptoKeyVersionOrBuilder
public CryptoKeyVersion.CryptoKeyVersionState getState()
The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3;
getState
in interface CryptoKeyVersionOrBuilder
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];
getProtectionLevelValue
in interface CryptoKeyVersionOrBuilder
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];
getProtectionLevel
in interface CryptoKeyVersionOrBuilder
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];
getAlgorithmValue
in interface CryptoKeyVersionOrBuilder
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];
getAlgorithm
in interface CryptoKeyVersionOrBuilder
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];
hasAttestation
in interface CryptoKeyVersionOrBuilder
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];
getAttestation
in interface CryptoKeyVersionOrBuilder
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];
getAttestationOrBuilder
in interface CryptoKeyVersionOrBuilder
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];
hasCreateTime
in interface CryptoKeyVersionOrBuilder
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];
getCreateTime
in interface CryptoKeyVersionOrBuilder
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];
getCreateTimeOrBuilder
in interface CryptoKeyVersionOrBuilder
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];
hasGenerateTime
in interface CryptoKeyVersionOrBuilder
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];
getGenerateTime
in interface CryptoKeyVersionOrBuilder
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];
getGenerateTimeOrBuilder
in interface CryptoKeyVersionOrBuilder
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];
hasDestroyTime
in interface CryptoKeyVersionOrBuilder
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];
getDestroyTime
in interface CryptoKeyVersionOrBuilder
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];
getDestroyTimeOrBuilder
in interface CryptoKeyVersionOrBuilder
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];
hasDestroyEventTime
in interface CryptoKeyVersionOrBuilder
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];
getDestroyEventTime
in interface CryptoKeyVersionOrBuilder
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];
getDestroyEventTimeOrBuilder
in interface CryptoKeyVersionOrBuilder
public String getImportJob()
Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob] used to import 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];
getImportJob
in interface CryptoKeyVersionOrBuilder
public com.google.protobuf.ByteString getImportJobBytes()
Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob] used to import 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];
getImportJobBytes
in interface CryptoKeyVersionOrBuilder
public boolean hasImportTime()
Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was imported.
.google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasImportTime
in interface CryptoKeyVersionOrBuilder
public com.google.protobuf.Timestamp getImportTime()
Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was imported.
.google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
getImportTime
in interface CryptoKeyVersionOrBuilder
public com.google.protobuf.TimestampOrBuilder getImportTimeOrBuilder()
Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was imported.
.google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
getImportTimeOrBuilder
in interface CryptoKeyVersionOrBuilder
public String getImportFailureReason()
Output only. The root cause of an 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];
getImportFailureReason
in interface CryptoKeyVersionOrBuilder
public com.google.protobuf.ByteString getImportFailureReasonBytes()
Output only. The root cause of an 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];
getImportFailureReasonBytes
in interface CryptoKeyVersionOrBuilder
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.
.google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17;
hasExternalProtectionLevelOptions
in interface CryptoKeyVersionOrBuilder
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.
.google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17;
getExternalProtectionLevelOptions
in interface CryptoKeyVersionOrBuilder
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.
.google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17;
getExternalProtectionLevelOptionsOrBuilder
in interface CryptoKeyVersionOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static CryptoKeyVersion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CryptoKeyVersion parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CryptoKeyVersion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CryptoKeyVersion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CryptoKeyVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CryptoKeyVersion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CryptoKeyVersion parseFrom(InputStream input) throws IOException
IOException
public static CryptoKeyVersion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static CryptoKeyVersion parseDelimitedFrom(InputStream input) throws IOException
IOException
public static CryptoKeyVersion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static CryptoKeyVersion parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static CryptoKeyVersion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public CryptoKeyVersion.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static CryptoKeyVersion.Builder newBuilder()
public static CryptoKeyVersion.Builder newBuilder(CryptoKeyVersion prototype)
public CryptoKeyVersion.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected CryptoKeyVersion.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static CryptoKeyVersion getDefaultInstance()
public static com.google.protobuf.Parser<CryptoKeyVersion> parser()
public com.google.protobuf.Parser<CryptoKeyVersion> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public CryptoKeyVersion getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2021 Google LLC. All rights reserved.