public static final class ImportJob.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder> implements ImportJobOrBuilder
An [ImportJob][google.cloud.kms.v1.ImportJob] can be used to create [CryptoKeys][google.cloud.kms.v1.CryptoKey] and [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] using pre-existing key material, generated outside of Cloud KMS. When an [ImportJob][google.cloud.kms.v1.ImportJob] is created, Cloud KMS will generate a "wrapping key", which is a public/private key pair. You use the wrapping key to encrypt (also known as wrap) the pre-existing key material to protect it during the import process. The nature of the wrapping key depends on the choice of [import_method][google.cloud.kms.v1.ImportJob.import_method]. When the wrapping key generation is complete, the [state][google.cloud.kms.v1.ImportJob.state] will be set to [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE] and the [public_key][google.cloud.kms.v1.ImportJob.public_key] can be fetched. The fetched public key can then be used to wrap your pre-existing key material. Once the key material is wrapped, it can be imported into a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in an existing [CryptoKey][google.cloud.kms.v1.CryptoKey] by calling [ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion]. Multiple [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] can be imported with a single [ImportJob][google.cloud.kms.v1.ImportJob]. Cloud KMS uses the private key portion of the wrapping key to unwrap the key material. Only Cloud KMS has access to the private key. An [ImportJob][google.cloud.kms.v1.ImportJob] expires 3 days after it is created. Once expired, Cloud KMS will no longer be able to import or unwrap any key material that was wrapped with the [ImportJob][google.cloud.kms.v1.ImportJob]'s public key. For more information, see [Importing a key](https://cloud.google.com/kms/docs/importing-a-key).Protobuf type
google.cloud.kms.v1.ImportJob
Modifier and Type | Method and Description |
---|---|
ImportJob.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ImportJob |
build() |
ImportJob |
buildPartial() |
ImportJob.Builder |
clear() |
ImportJob.Builder |
clearAttestation()
Output only.
|
ImportJob.Builder |
clearCreateTime()
Output only.
|
ImportJob.Builder |
clearExpireEventTime()
Output only.
|
ImportJob.Builder |
clearExpireTime()
Output only.
|
ImportJob.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ImportJob.Builder |
clearGenerateTime()
Output only.
|
ImportJob.Builder |
clearImportMethod()
Required.
|
ImportJob.Builder |
clearName()
Output only.
|
ImportJob.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ImportJob.Builder |
clearProtectionLevel()
Required.
|
ImportJob.Builder |
clearPublicKey()
Output only.
|
ImportJob.Builder |
clearState()
Output only.
|
ImportJob.Builder |
clone() |
KeyOperationAttestation |
getAttestation()
Output only.
|
KeyOperationAttestation.Builder |
getAttestationBuilder()
Output only.
|
KeyOperationAttestationOrBuilder |
getAttestationOrBuilder()
Output only.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
ImportJob |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Timestamp |
getExpireEventTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getExpireEventTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getExpireEventTimeOrBuilder()
Output only.
|
com.google.protobuf.Timestamp |
getExpireTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getExpireTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getExpireTimeOrBuilder()
Output only.
|
com.google.protobuf.Timestamp |
getGenerateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getGenerateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getGenerateTimeOrBuilder()
Output only.
|
ImportJob.ImportMethod |
getImportMethod()
Required.
|
int |
getImportMethodValue()
Required.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
ProtectionLevel |
getProtectionLevel()
Required.
|
int |
getProtectionLevelValue()
Required.
|
ImportJob.WrappingPublicKey |
getPublicKey()
Output only.
|
ImportJob.WrappingPublicKey.Builder |
getPublicKeyBuilder()
Output only.
|
ImportJob.WrappingPublicKeyOrBuilder |
getPublicKeyOrBuilder()
Output only.
|
ImportJob.ImportJobState |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
boolean |
hasAttestation()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasExpireEventTime()
Output only.
|
boolean |
hasExpireTime()
Output only.
|
boolean |
hasGenerateTime()
Output only.
|
boolean |
hasPublicKey()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ImportJob.Builder |
mergeAttestation(KeyOperationAttestation value)
Output only.
|
ImportJob.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
ImportJob.Builder |
mergeExpireEventTime(com.google.protobuf.Timestamp value)
Output only.
|
ImportJob.Builder |
mergeExpireTime(com.google.protobuf.Timestamp value)
Output only.
|
ImportJob.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ImportJob.Builder |
mergeFrom(ImportJob other) |
ImportJob.Builder |
mergeFrom(com.google.protobuf.Message other) |
ImportJob.Builder |
mergeGenerateTime(com.google.protobuf.Timestamp value)
Output only.
|
ImportJob.Builder |
mergePublicKey(ImportJob.WrappingPublicKey value)
Output only.
|
ImportJob.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ImportJob.Builder |
setAttestation(KeyOperationAttestation.Builder builderForValue)
Output only.
|
ImportJob.Builder |
setAttestation(KeyOperationAttestation value)
Output only.
|
ImportJob.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
ImportJob.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
ImportJob.Builder |
setExpireEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
ImportJob.Builder |
setExpireEventTime(com.google.protobuf.Timestamp value)
Output only.
|
ImportJob.Builder |
setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
ImportJob.Builder |
setExpireTime(com.google.protobuf.Timestamp value)
Output only.
|
ImportJob.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ImportJob.Builder |
setGenerateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
ImportJob.Builder |
setGenerateTime(com.google.protobuf.Timestamp value)
Output only.
|
ImportJob.Builder |
setImportMethod(ImportJob.ImportMethod value)
Required.
|
ImportJob.Builder |
setImportMethodValue(int value)
Required.
|
ImportJob.Builder |
setName(String value)
Output only.
|
ImportJob.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
ImportJob.Builder |
setProtectionLevel(ProtectionLevel value)
Required.
|
ImportJob.Builder |
setProtectionLevelValue(int value)
Required.
|
ImportJob.Builder |
setPublicKey(ImportJob.WrappingPublicKey.Builder builderForValue)
Output only.
|
ImportJob.Builder |
setPublicKey(ImportJob.WrappingPublicKey value)
Output only.
|
ImportJob.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ImportJob.Builder |
setState(ImportJob.ImportJobState value)
Output only.
|
ImportJob.Builder |
setStateValue(int value)
Output only.
|
ImportJob.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public ImportJob.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public ImportJob getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ImportJob build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ImportJob buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ImportJob.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public ImportJob.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public ImportJob.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public ImportJob.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public ImportJob.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public ImportJob.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public ImportJob.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ImportJob.Builder>
public ImportJob.Builder mergeFrom(ImportJob other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public ImportJob.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ImportJob.Builder>
IOException
public String getName()
Output only. The resource name for this [ImportJob][google.cloud.kms.v1.ImportJob] in the format `projects/*/locations/*/keyRings/*/importJobs/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getName
in interface ImportJobOrBuilder
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name for this [ImportJob][google.cloud.kms.v1.ImportJob] in the format `projects/*/locations/*/keyRings/*/importJobs/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNameBytes
in interface ImportJobOrBuilder
public ImportJob.Builder setName(String value)
Output only. The resource name for this [ImportJob][google.cloud.kms.v1.ImportJob] in the format `projects/*/locations/*/keyRings/*/importJobs/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The name to set.public ImportJob.Builder clearName()
Output only. The resource name for this [ImportJob][google.cloud.kms.v1.ImportJob] in the format `projects/*/locations/*/keyRings/*/importJobs/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name for this [ImportJob][google.cloud.kms.v1.ImportJob] in the format `projects/*/locations/*/keyRings/*/importJobs/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The bytes for name to set.public int getImportMethodValue()
Required. Immutable. The wrapping method to be used for incoming key material.
.google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
getImportMethodValue
in interface ImportJobOrBuilder
public ImportJob.Builder setImportMethodValue(int value)
Required. Immutable. The wrapping method to be used for incoming key material.
.google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
value
- The enum numeric value on the wire for importMethod to set.public ImportJob.ImportMethod getImportMethod()
Required. Immutable. The wrapping method to be used for incoming key material.
.google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
getImportMethod
in interface ImportJobOrBuilder
public ImportJob.Builder setImportMethod(ImportJob.ImportMethod value)
Required. Immutable. The wrapping method to be used for incoming key material.
.google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
value
- The importMethod to set.public ImportJob.Builder clearImportMethod()
Required. Immutable. The wrapping method to be used for incoming key material.
.google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
public int getProtectionLevelValue()
Required. Immutable. The protection level of the [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level] of the [version_template][google.cloud.kms.v1.CryptoKey.version_template] on the [CryptoKey][google.cloud.kms.v1.CryptoKey] you attempt to import into.
.google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
getProtectionLevelValue
in interface ImportJobOrBuilder
public ImportJob.Builder setProtectionLevelValue(int value)
Required. Immutable. The protection level of the [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level] of the [version_template][google.cloud.kms.v1.CryptoKey.version_template] on the [CryptoKey][google.cloud.kms.v1.CryptoKey] you attempt to import into.
.google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
value
- The enum numeric value on the wire for protectionLevel to set.public ProtectionLevel getProtectionLevel()
Required. Immutable. The protection level of the [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level] of the [version_template][google.cloud.kms.v1.CryptoKey.version_template] on the [CryptoKey][google.cloud.kms.v1.CryptoKey] you attempt to import into.
.google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
getProtectionLevel
in interface ImportJobOrBuilder
public ImportJob.Builder setProtectionLevel(ProtectionLevel value)
Required. Immutable. The protection level of the [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level] of the [version_template][google.cloud.kms.v1.CryptoKey.version_template] on the [CryptoKey][google.cloud.kms.v1.CryptoKey] you attempt to import into.
.google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
value
- The protectionLevel to set.public ImportJob.Builder clearProtectionLevel()
Required. Immutable. The protection level of the [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level] of the [version_template][google.cloud.kms.v1.CryptoKey.version_template] on the [CryptoKey][google.cloud.kms.v1.CryptoKey] you attempt to import into.
.google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
public boolean hasCreateTime()
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime
in interface ImportJobOrBuilder
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime
in interface ImportJobOrBuilder
public ImportJob.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder clearCreateTime()
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder
in interface ImportJobOrBuilder
public boolean hasGenerateTime()
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasGenerateTime
in interface ImportJobOrBuilder
public com.google.protobuf.Timestamp getGenerateTime()
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getGenerateTime
in interface ImportJobOrBuilder
public ImportJob.Builder setGenerateTime(com.google.protobuf.Timestamp value)
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder setGenerateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder mergeGenerateTime(com.google.protobuf.Timestamp value)
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder clearGenerateTime()
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getGenerateTimeBuilder()
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder()
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getGenerateTimeOrBuilder
in interface ImportJobOrBuilder
public boolean hasExpireTime()
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and can no longer be used to import key material.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasExpireTime
in interface ImportJobOrBuilder
public com.google.protobuf.Timestamp getExpireTime()
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and can no longer be used to import key material.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExpireTime
in interface ImportJobOrBuilder
public ImportJob.Builder setExpireTime(com.google.protobuf.Timestamp value)
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and can no longer be used to import key material.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and can no longer be used to import key material.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and can no longer be used to import key material.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder clearExpireTime()
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and can no longer be used to import key material.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and can no longer be used to import key material.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and can no longer be used to import key material.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExpireTimeOrBuilder
in interface ImportJobOrBuilder
public boolean hasExpireEventTime()
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob] expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasExpireEventTime
in interface ImportJobOrBuilder
public com.google.protobuf.Timestamp getExpireEventTime()
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob] expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExpireEventTime
in interface ImportJobOrBuilder
public ImportJob.Builder setExpireEventTime(com.google.protobuf.Timestamp value)
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob] expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder setExpireEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob] expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder mergeExpireEventTime(com.google.protobuf.Timestamp value)
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob] expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder clearExpireEventTime()
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob] expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getExpireEventTimeBuilder()
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob] expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getExpireEventTimeOrBuilder()
Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob] expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExpireEventTimeOrBuilder
in interface ImportJobOrBuilder
public int getStateValue()
Output only. The current state of the [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
.google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue
in interface ImportJobOrBuilder
public ImportJob.Builder setStateValue(int value)
Output only. The current state of the [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
.google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The enum numeric value on the wire for state to set.public ImportJob.ImportJobState getState()
Output only. The current state of the [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
.google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState
in interface ImportJobOrBuilder
public ImportJob.Builder setState(ImportJob.ImportJobState value)
Output only. The current state of the [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
.google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The state to set.public ImportJob.Builder clearState()
Output only. The current state of the [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
.google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public boolean hasPublicKey()
Output only. The public key with which to wrap key material prior to import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasPublicKey
in interface ImportJobOrBuilder
public ImportJob.WrappingPublicKey getPublicKey()
Output only. The public key with which to wrap key material prior to import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPublicKey
in interface ImportJobOrBuilder
public ImportJob.Builder setPublicKey(ImportJob.WrappingPublicKey value)
Output only. The public key with which to wrap key material prior to import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder setPublicKey(ImportJob.WrappingPublicKey.Builder builderForValue)
Output only. The public key with which to wrap key material prior to import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder mergePublicKey(ImportJob.WrappingPublicKey value)
Output only. The public key with which to wrap key material prior to import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder clearPublicKey()
Output only. The public key with which to wrap key material prior to import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.WrappingPublicKey.Builder getPublicKeyBuilder()
Output only. The public key with which to wrap key material prior to import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.WrappingPublicKeyOrBuilder getPublicKeyOrBuilder()
Output only. The public key with which to wrap key material prior to import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPublicKeyOrBuilder
in interface ImportJobOrBuilder
public boolean hasAttestation()
Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] is one with a protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasAttestation
in interface ImportJobOrBuilder
public KeyOperationAttestation getAttestation()
Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] is one with a protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAttestation
in interface ImportJobOrBuilder
public ImportJob.Builder setAttestation(KeyOperationAttestation value)
Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] is one with a protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder setAttestation(KeyOperationAttestation.Builder builderForValue)
Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] is one with a protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder mergeAttestation(KeyOperationAttestation value)
Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] is one with a protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ImportJob.Builder clearAttestation()
Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] is one with a protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public KeyOperationAttestation.Builder getAttestationBuilder()
Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] is one with a protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public KeyOperationAttestationOrBuilder getAttestationOrBuilder()
Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] is one with a protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAttestationOrBuilder
in interface ImportJobOrBuilder
public final ImportJob.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
public final ImportJob.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
Copyright © 2021 Google LLC. All rights reserved.