Class ImportJob.Builder

  • All Implemented Interfaces:
    ImportJobOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ImportJob

    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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • clear

        public ImportJob.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • getDefaultInstanceForType

        public ImportJob getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ImportJob build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ImportJob buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ImportJob.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • setField

        public ImportJob.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • clearField

        public ImportJob.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • clearOneof

        public ImportJob.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • setRepeatedField

        public ImportJob.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • addRepeatedField

        public ImportJob.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • mergeFrom

        public ImportJob.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportJob.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • mergeFrom

        public ImportJob.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportJob.Builder>
        Throws:
        IOException
      • getName

        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];
        Specified by:
        getName in interface ImportJobOrBuilder
        Returns:
        The name.
      • getNameBytes

        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];
        Specified by:
        getNameBytes in interface ImportJobOrBuilder
        Returns:
        The bytes for name.
      • setName

        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];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        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];
        Returns:
        This builder for chaining.
      • setNameBytes

        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];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getImportMethodValue in interface ImportJobOrBuilder
        Returns:
        The enum numeric value on the wire for importMethod.
      • setImportMethodValue

        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];
        Parameters:
        value - The enum numeric value on the wire for importMethod to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getImportMethod in interface ImportJobOrBuilder
        Returns:
        The importMethod.
      • setImportMethod

        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];
        Parameters:
        value - The importMethod to set.
        Returns:
        This builder for chaining.
      • 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];
        Returns:
        This builder for chaining.
      • getProtectionLevelValue

        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];
        Specified by:
        getProtectionLevelValue in interface ImportJobOrBuilder
        Returns:
        The enum numeric value on the wire for protectionLevel.
      • setProtectionLevelValue

        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];
        Parameters:
        value - The enum numeric value on the wire for protectionLevel to set.
        Returns:
        This builder for chaining.
      • getProtectionLevel

        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];
        Specified by:
        getProtectionLevel in interface ImportJobOrBuilder
        Returns:
        The protectionLevel.
      • setProtectionLevel

        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];
        Parameters:
        value - The protectionLevel to set.
        Returns:
        This builder for chaining.
      • clearProtectionLevel

        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];
        Returns:
        This builder for chaining.
      • hasCreateTime

        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];
        Specified by:
        hasCreateTime in interface ImportJobOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        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];
        Specified by:
        getCreateTime in interface ImportJobOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        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];
      • setCreateTime

        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];
      • mergeCreateTime

        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];
      • clearCreateTime

        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];
      • getCreateTimeBuilder

        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];
      • getCreateTimeOrBuilder

        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];
        Specified by:
        getCreateTimeOrBuilder in interface ImportJobOrBuilder
      • hasGenerateTime

        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];
        Specified by:
        hasGenerateTime in interface ImportJobOrBuilder
        Returns:
        Whether the generateTime field is set.
      • getGenerateTime

        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];
        Specified by:
        getGenerateTime in interface ImportJobOrBuilder
        Returns:
        The generateTime.
      • setGenerateTime

        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];
      • setGenerateTime

        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];
      • mergeGenerateTime

        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];
      • clearGenerateTime

        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];
      • getGenerateTimeBuilder

        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];
      • getGenerateTimeOrBuilder

        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];
        Specified by:
        getGenerateTimeOrBuilder in interface ImportJobOrBuilder
      • hasExpireTime

        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];
        Specified by:
        hasExpireTime in interface ImportJobOrBuilder
        Returns:
        Whether the expireTime field is set.
      • getExpireTime

        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];
        Specified by:
        getExpireTime in interface ImportJobOrBuilder
        Returns:
        The expireTime.
      • setExpireTime

        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];
      • setExpireTime

        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];
      • mergeExpireTime

        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];
      • clearExpireTime

        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];
      • getExpireTimeBuilder

        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];
      • getExpireTimeOrBuilder

        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];
        Specified by:
        getExpireTimeOrBuilder in interface ImportJobOrBuilder
      • hasExpireEventTime

        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];
        Specified by:
        hasExpireEventTime in interface ImportJobOrBuilder
        Returns:
        Whether the expireEventTime field is set.
      • getExpireEventTime

        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];
        Specified by:
        getExpireEventTime in interface ImportJobOrBuilder
        Returns:
        The expireEventTime.
      • setExpireEventTime

        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];
      • setExpireEventTime

        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];
      • mergeExpireEventTime

        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];
      • clearExpireEventTime

        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];
      • getExpireEventTimeBuilder

        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];
      • getExpireEventTimeOrBuilder

        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];
        Specified by:
        getExpireEventTimeOrBuilder in interface ImportJobOrBuilder
      • getStateValue

        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];
        Specified by:
        getStateValue in interface ImportJobOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        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];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        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];
        Specified by:
        getState in interface ImportJobOrBuilder
        Returns:
        The state.
      • setState

        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];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        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];
        Returns:
        This builder for chaining.
      • hasPublicKey

        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];
        Specified by:
        hasPublicKey in interface ImportJobOrBuilder
        Returns:
        Whether the publicKey field is set.
      • getPublicKey

        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];
        Specified by:
        getPublicKey in interface ImportJobOrBuilder
        Returns:
        The publicKey.
      • setPublicKey

        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];
      • setPublicKey

        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];
      • mergePublicKey

        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];
      • clearPublicKey

        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];
      • getPublicKeyBuilder

        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];
      • getPublicKeyOrBuilder

        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];
        Specified by:
        getPublicKeyOrBuilder in interface ImportJobOrBuilder
      • 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][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];
        Specified by:
        hasAttestation in interface ImportJobOrBuilder
        Returns:
        Whether the attestation field is set.
      • 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][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];
        Specified by:
        getAttestation in interface ImportJobOrBuilder
        Returns:
        The attestation.
      • setAttestation

        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];
      • setAttestation

        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];
      • mergeAttestation

        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];
      • 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][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];
      • 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][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

        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];
        Specified by:
        getAttestationOrBuilder in interface ImportJobOrBuilder
      • setUnknownFields

        public final ImportJob.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>
      • mergeUnknownFields

        public final ImportJob.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImportJob.Builder>