Class GetImportJobRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GetImportJobRequest.Builder>
com.google.cloud.kms.v1.GetImportJobRequest.Builder
All Implemented Interfaces:
GetImportJobRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GetImportJobRequest

public static final class GetImportJobRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetImportJobRequest.Builder> implements GetImportJobRequestOrBuilder
 Request message for
 [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob].
 
Protobuf type google.cloud.kms.v1.GetImportJobRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GetImportJobRequest.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.GeneratedMessage.Builder<GetImportJobRequest.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.GeneratedMessage.Builder<GetImportJobRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public GetImportJobRequest.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<GetImportJobRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public GetImportJobRequest.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<GetImportJobRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
       [ImportJob][google.cloud.kms.v1.ImportJob] to get.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface GetImportJobRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
       [ImportJob][google.cloud.kms.v1.ImportJob] to get.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface GetImportJobRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GetImportJobRequest.Builder setName(String value)
       Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
       [ImportJob][google.cloud.kms.v1.ImportJob] to get.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GetImportJobRequest.Builder clearName()
       Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
       [ImportJob][google.cloud.kms.v1.ImportJob] to get.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public GetImportJobRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
       [ImportJob][google.cloud.kms.v1.ImportJob] to get.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getPublicKeyFormatValue

      public int getPublicKeyFormatValue()
       Optional. Specifies the [WrappingPublicKey][] format.
       If not specified:
       * For RSA-based import methods, the wrapping key will be returned in PEM
       format
       * For pure ML-KEM-based import methods, the wrapping key will be returned
       in the raw bytes format specified in FIPS-203
       * For X-Wing-based import methods, the wrapping key will be returned in
       the raw bytes format specified in
       https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeyFormatValue in interface GetImportJobRequestOrBuilder
      Returns:
      The enum numeric value on the wire for publicKeyFormat.
    • setPublicKeyFormatValue

      public GetImportJobRequest.Builder setPublicKeyFormatValue(int value)
       Optional. Specifies the [WrappingPublicKey][] format.
       If not specified:
       * For RSA-based import methods, the wrapping key will be returned in PEM
       format
       * For pure ML-KEM-based import methods, the wrapping key will be returned
       in the raw bytes format specified in FIPS-203
       * For X-Wing-based import methods, the wrapping key will be returned in
       the raw bytes format specified in
       https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for publicKeyFormat to set.
      Returns:
      This builder for chaining.
    • getPublicKeyFormat

      public PublicKey.PublicKeyFormat getPublicKeyFormat()
       Optional. Specifies the [WrappingPublicKey][] format.
       If not specified:
       * For RSA-based import methods, the wrapping key will be returned in PEM
       format
       * For pure ML-KEM-based import methods, the wrapping key will be returned
       in the raw bytes format specified in FIPS-203
       * For X-Wing-based import methods, the wrapping key will be returned in
       the raw bytes format specified in
       https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeyFormat in interface GetImportJobRequestOrBuilder
      Returns:
      The publicKeyFormat.
    • setPublicKeyFormat

      public GetImportJobRequest.Builder setPublicKeyFormat(PublicKey.PublicKeyFormat value)
       Optional. Specifies the [WrappingPublicKey][] format.
       If not specified:
       * For RSA-based import methods, the wrapping key will be returned in PEM
       format
       * For pure ML-KEM-based import methods, the wrapping key will be returned
       in the raw bytes format specified in FIPS-203
       * For X-Wing-based import methods, the wrapping key will be returned in
       the raw bytes format specified in
       https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The publicKeyFormat to set.
      Returns:
      This builder for chaining.
    • clearPublicKeyFormat

      public GetImportJobRequest.Builder clearPublicKeyFormat()
       Optional. Specifies the [WrappingPublicKey][] format.
       If not specified:
       * For RSA-based import methods, the wrapping key will be returned in PEM
       format
       * For pure ML-KEM-based import methods, the wrapping key will be returned
       in the raw bytes format specified in FIPS-203
       * For X-Wing-based import methods, the wrapping key will be returned in
       the raw bytes format specified in
       https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.