- 2.50.0 (latest)
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.8
- 2.5.3
- 2.4.4
- 2.3.1
public static final class ImportJob.Builder extends GeneratedMessageV3.Builder<ImportJob.Builder> implements ImportJobOrBuilder
An ImportJob can be used to create CryptoKeys and CryptoKeyVersions using pre-existing key material, generated outside of Cloud KMS. When an 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. When the wrapping key generation is complete, the state will be set to ACTIVE and the 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 in an existing CryptoKey by calling ImportCryptoKeyVersion. Multiple CryptoKeyVersions can be imported with a single 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 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's public key. For more information, see Importing a key.
Protobuf type google.cloud.kms.v1.ImportJob
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ImportJob.BuilderImplements
ImportJobOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImportJob.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ImportJob.Builder |
build()
public ImportJob build()
Type | Description |
ImportJob |
buildPartial()
public ImportJob buildPartial()
Type | Description |
ImportJob |
clear()
public ImportJob.Builder clear()
Type | Description |
ImportJob.Builder |
clearAttestation()
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 is one with a protection level of HSM.
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.Builder |
clearCreateTime()
public ImportJob.Builder clearCreateTime()
Output only. The time at which this ImportJob was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.Builder |
clearExpireEventTime()
public ImportJob.Builder clearExpireEventTime()
Output only. The time this ImportJob expired. Only present if state is EXPIRED.
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.Builder |
clearExpireTime()
public ImportJob.Builder clearExpireTime()
Output only. The time at which this 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];
Type | Description |
ImportJob.Builder |
clearField(Descriptors.FieldDescriptor field)
public ImportJob.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ImportJob.Builder |
clearGenerateTime()
public ImportJob.Builder clearGenerateTime()
Output only. The time this ImportJob's key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.Builder |
clearImportMethod()
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];
Type | Description |
ImportJob.Builder | This builder for chaining. |
clearName()
public ImportJob.Builder clearName()
Output only. The resource name for this
ImportJob in the format
projects/*/locations/*/keyRings/*/importJobs/*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportJob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ImportJob.Builder |
clearProtectionLevel()
public ImportJob.Builder clearProtectionLevel()
Required. Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into.
.google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
ImportJob.Builder | This builder for chaining. |
clearPublicKey()
public ImportJob.Builder clearPublicKey()
Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE.
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.Builder |
clearState()
public ImportJob.Builder clearState()
Output only. The current state of the ImportJob, indicating if it can be used.
.google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.Builder | This builder for chaining. |
clone()
public ImportJob.Builder clone()
Type | Description |
ImportJob.Builder |
getAttestation()
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 is one with a protection level of HSM.
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
KeyOperationAttestation | The attestation. |
getAttestationBuilder()
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 is one with a protection level of HSM.
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
KeyOperationAttestation.Builder |
getAttestationOrBuilder()
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 is one with a protection level of HSM.
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
KeyOperationAttestationOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time at which this ImportJob was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time at which this ImportJob was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time at which this ImportJob was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public ImportJob getDefaultInstanceForType()
Type | Description |
ImportJob |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getExpireEventTime()
public Timestamp getExpireEventTime()
Output only. The time this ImportJob expired. Only present if state is EXPIRED.
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The expireEventTime. |
getExpireEventTimeBuilder()
public Timestamp.Builder getExpireEventTimeBuilder()
Output only. The time this ImportJob expired. Only present if state is EXPIRED.
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getExpireEventTimeOrBuilder()
public TimestampOrBuilder getExpireEventTimeOrBuilder()
Output only. The time this ImportJob expired. Only present if state is EXPIRED.
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getExpireTime()
public Timestamp getExpireTime()
Output only. The time at which this 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];
Type | Description |
Timestamp | The expireTime. |
getExpireTimeBuilder()
public Timestamp.Builder getExpireTimeBuilder()
Output only. The time at which this 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];
Type | Description |
Builder |
getExpireTimeOrBuilder()
public TimestampOrBuilder getExpireTimeOrBuilder()
Output only. The time at which this 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];
Type | Description |
TimestampOrBuilder |
getGenerateTime()
public Timestamp getGenerateTime()
Output only. The time this ImportJob's key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The generateTime. |
getGenerateTimeBuilder()
public Timestamp.Builder getGenerateTimeBuilder()
Output only. The time this ImportJob's key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getGenerateTimeOrBuilder()
public TimestampOrBuilder getGenerateTimeOrBuilder()
Output only. The time this ImportJob's key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getImportMethod()
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];
Type | Description |
ImportJob.ImportMethod | The importMethod. |
getImportMethodValue()
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];
Type | Description |
int | The enum numeric value on the wire for importMethod. |
getName()
public String getName()
Output only. The resource name for this
ImportJob in the format
projects/*/locations/*/keyRings/*/importJobs/*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. The resource name for this
ImportJob in the format
projects/*/locations/*/keyRings/*/importJobs/*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for name. |
getProtectionLevel()
public ProtectionLevel getProtectionLevel()
Required. Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into.
.google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
ProtectionLevel | The protectionLevel. |
getProtectionLevelValue()
public int getProtectionLevelValue()
Required. Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into.
.google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
int | The enum numeric value on the wire for protectionLevel. |
getPublicKey()
public ImportJob.WrappingPublicKey getPublicKey()
Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE.
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.WrappingPublicKey | The publicKey. |
getPublicKeyBuilder()
public ImportJob.WrappingPublicKey.Builder getPublicKeyBuilder()
Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE.
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.WrappingPublicKey.Builder |
getPublicKeyOrBuilder()
public ImportJob.WrappingPublicKeyOrBuilder getPublicKeyOrBuilder()
Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE.
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.WrappingPublicKeyOrBuilder |
getState()
public ImportJob.ImportJobState getState()
Output only. The current state of the ImportJob, indicating if it can be used.
.google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ImportJob.ImportJobState | The state. |
getStateValue()
public int getStateValue()
Output only. The current state of the ImportJob, indicating if it can be used.
.google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
int | The enum numeric value on the wire for state. |
hasAttestation()
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 is one with a protection level of HSM.
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the attestation field is set. |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time at which this ImportJob was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the createTime field is set. |
hasExpireEventTime()
public boolean hasExpireEventTime()
Output only. The time this ImportJob expired. Only present if state is EXPIRED.
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the expireEventTime field is set. |
hasExpireTime()
public boolean hasExpireTime()
Output only. The time at which this 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];
Type | Description |
boolean | Whether the expireTime field is set. |
hasGenerateTime()
public boolean hasGenerateTime()
Output only. The time this ImportJob's key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the generateTime field is set. |
hasPublicKey()
public boolean hasPublicKey()
Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE.
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the publicKey field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeAttestation(KeyOperationAttestation value)
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 is one with a protection level of HSM.
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | KeyOperationAttestation |
Type | Description |
ImportJob.Builder |
mergeCreateTime(Timestamp value)
public ImportJob.Builder mergeCreateTime(Timestamp value)
Output only. The time at which this ImportJob was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
ImportJob.Builder |
mergeExpireEventTime(Timestamp value)
public ImportJob.Builder mergeExpireEventTime(Timestamp value)
Output only. The time this ImportJob expired. Only present if state is EXPIRED.
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
ImportJob.Builder |
mergeExpireTime(Timestamp value)
public ImportJob.Builder mergeExpireTime(Timestamp value)
Output only. The time at which this 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];
Name | Description |
value | Timestamp |
Type | Description |
ImportJob.Builder |
mergeFrom(ImportJob other)
public ImportJob.Builder mergeFrom(ImportJob other)
Name | Description |
other | ImportJob |
Type | Description |
ImportJob.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImportJob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ImportJob.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ImportJob.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ImportJob.Builder |
mergeGenerateTime(Timestamp value)
public ImportJob.Builder mergeGenerateTime(Timestamp value)
Output only. The time this ImportJob's key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
ImportJob.Builder |
mergePublicKey(ImportJob.WrappingPublicKey value)
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 is ACTIVE.
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ImportJob.WrappingPublicKey |
Type | Description |
ImportJob.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportJob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ImportJob.Builder |
setAttestation(KeyOperationAttestation value)
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 is one with a protection level of HSM.
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | KeyOperationAttestation |
Type | Description |
ImportJob.Builder |
setAttestation(KeyOperationAttestation.Builder builderForValue)
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 is one with a protection level of HSM.
.google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | KeyOperationAttestation.Builder |
Type | Description |
ImportJob.Builder |
setCreateTime(Timestamp value)
public ImportJob.Builder setCreateTime(Timestamp value)
Output only. The time at which this ImportJob was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
ImportJob.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public ImportJob.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time at which this ImportJob was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
ImportJob.Builder |
setExpireEventTime(Timestamp value)
public ImportJob.Builder setExpireEventTime(Timestamp value)
Output only. The time this ImportJob expired. Only present if state is EXPIRED.
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
ImportJob.Builder |
setExpireEventTime(Timestamp.Builder builderForValue)
public ImportJob.Builder setExpireEventTime(Timestamp.Builder builderForValue)
Output only. The time this ImportJob expired. Only present if state is EXPIRED.
.google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
ImportJob.Builder |
setExpireTime(Timestamp value)
public ImportJob.Builder setExpireTime(Timestamp value)
Output only. The time at which this 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];
Name | Description |
value | Timestamp |
Type | Description |
ImportJob.Builder |
setExpireTime(Timestamp.Builder builderForValue)
public ImportJob.Builder setExpireTime(Timestamp.Builder builderForValue)
Output only. The time at which this 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];
Name | Description |
builderForValue | Builder |
Type | Description |
ImportJob.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ImportJob.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ImportJob.Builder |
setGenerateTime(Timestamp value)
public ImportJob.Builder setGenerateTime(Timestamp value)
Output only. The time this ImportJob's key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
ImportJob.Builder |
setGenerateTime(Timestamp.Builder builderForValue)
public ImportJob.Builder setGenerateTime(Timestamp.Builder builderForValue)
Output only. The time this ImportJob's key material was generated.
.google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
ImportJob.Builder |
setImportMethod(ImportJob.ImportMethod value)
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];
Name | Description |
value | ImportJob.ImportMethod The importMethod to set. |
Type | Description |
ImportJob.Builder | This builder for chaining. |
setImportMethodValue(int value)
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];
Name | Description |
value | int The enum numeric value on the wire for importMethod to set. |
Type | Description |
ImportJob.Builder | This builder for chaining. |
setName(String value)
public ImportJob.Builder setName(String value)
Output only. The resource name for this
ImportJob in the format
projects/*/locations/*/keyRings/*/importJobs/*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The name to set. |
Type | Description |
ImportJob.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public ImportJob.Builder setNameBytes(ByteString value)
Output only. The resource name for this
ImportJob in the format
projects/*/locations/*/keyRings/*/importJobs/*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
ImportJob.Builder | This builder for chaining. |
setProtectionLevel(ProtectionLevel value)
public ImportJob.Builder setProtectionLevel(ProtectionLevel value)
Required. Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into.
.google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | ProtectionLevel The protectionLevel to set. |
Type | Description |
ImportJob.Builder | This builder for chaining. |
setProtectionLevelValue(int value)
public ImportJob.Builder setProtectionLevelValue(int value)
Required. Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into.
.google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | int The enum numeric value on the wire for protectionLevel to set. |
Type | Description |
ImportJob.Builder | This builder for chaining. |
setPublicKey(ImportJob.WrappingPublicKey value)
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 is ACTIVE.
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ImportJob.WrappingPublicKey |
Type | Description |
ImportJob.Builder |
setPublicKey(ImportJob.WrappingPublicKey.Builder builderForValue)
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 is ACTIVE.
.google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | ImportJob.WrappingPublicKey.Builder |
Type | Description |
ImportJob.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportJob.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ImportJob.Builder |
setState(ImportJob.ImportJobState value)
public ImportJob.Builder setState(ImportJob.ImportJobState value)
Output only. The current state of the ImportJob, indicating if it can be used.
.google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ImportJob.ImportJobState The state to set. |
Type | Description |
ImportJob.Builder | This builder for chaining. |
setStateValue(int value)
public ImportJob.Builder setStateValue(int value)
Output only. The current state of the ImportJob, indicating if it can be used.
.google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
ImportJob.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportJob.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ImportJob.Builder |