Class ImportJob.WrappingPublicKey.Builder

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

public static final class ImportJob.WrappingPublicKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportJob.WrappingPublicKey.Builder> implements ImportJob.WrappingPublicKeyOrBuilder
 The public key component of the wrapping key. For details of the type of
 key this public key corresponds to, see the
 [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod].
 
Protobuf type google.cloud.kms.v1.ImportJob.WrappingPublicKey
  • 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<ImportJob.WrappingPublicKey.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<ImportJob.WrappingPublicKey.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<ImportJob.WrappingPublicKey.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public ImportJob.WrappingPublicKey.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.WrappingPublicKey.Builder>
      Throws:
      IOException
    • getPem

      public String getPem()
       The public key, encoded in PEM format. For more information, see the [RFC
       7468](https://tools.ietf.org/html/rfc7468) sections for [General
       Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       This field gets populated by default for RSA-based import methods, if no
       public_key_format is specified in the request.
       If you want to retrieve the wrapping key of an
       [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       and set the public_key_format to the desired public key format.
       
      string pem = 1;
      Specified by:
      getPem in interface ImportJob.WrappingPublicKeyOrBuilder
      Returns:
      The pem.
    • getPemBytes

      public com.google.protobuf.ByteString getPemBytes()
       The public key, encoded in PEM format. For more information, see the [RFC
       7468](https://tools.ietf.org/html/rfc7468) sections for [General
       Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       This field gets populated by default for RSA-based import methods, if no
       public_key_format is specified in the request.
       If you want to retrieve the wrapping key of an
       [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       and set the public_key_format to the desired public key format.
       
      string pem = 1;
      Specified by:
      getPemBytes in interface ImportJob.WrappingPublicKeyOrBuilder
      Returns:
      The bytes for pem.
    • setPem

       The public key, encoded in PEM format. For more information, see the [RFC
       7468](https://tools.ietf.org/html/rfc7468) sections for [General
       Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       This field gets populated by default for RSA-based import methods, if no
       public_key_format is specified in the request.
       If you want to retrieve the wrapping key of an
       [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       and set the public_key_format to the desired public key format.
       
      string pem = 1;
      Parameters:
      value - The pem to set.
      Returns:
      This builder for chaining.
    • clearPem

       The public key, encoded in PEM format. For more information, see the [RFC
       7468](https://tools.ietf.org/html/rfc7468) sections for [General
       Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       This field gets populated by default for RSA-based import methods, if no
       public_key_format is specified in the request.
       If you want to retrieve the wrapping key of an
       [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       and set the public_key_format to the desired public key format.
       
      string pem = 1;
      Returns:
      This builder for chaining.
    • setPemBytes

      public ImportJob.WrappingPublicKey.Builder setPemBytes(com.google.protobuf.ByteString value)
       The public key, encoded in PEM format. For more information, see the [RFC
       7468](https://tools.ietf.org/html/rfc7468) sections for [General
       Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       This field gets populated by default for RSA-based import methods, if no
       public_key_format is specified in the request.
       If you want to retrieve the wrapping key of an
       [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       and set the public_key_format to the desired public key format.
       
      string pem = 1;
      Parameters:
      value - The bytes for pem to set.
      Returns:
      This builder for chaining.
    • getData

      public com.google.protobuf.ByteString getData()
       Output only. Contains the public key, formatted according to the
       [PublicKey.PublicKeyFormat][google.cloud.kms.v1.PublicKey.PublicKeyFormat]
       specified in the
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       request.
       
      bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getData in interface ImportJob.WrappingPublicKeyOrBuilder
      Returns:
      The data.
    • setData

      public ImportJob.WrappingPublicKey.Builder setData(com.google.protobuf.ByteString value)
       Output only. Contains the public key, formatted according to the
       [PublicKey.PublicKeyFormat][google.cloud.kms.v1.PublicKey.PublicKeyFormat]
       specified in the
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       request.
       
      bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

       Output only. Contains the public key, formatted according to the
       [PublicKey.PublicKeyFormat][google.cloud.kms.v1.PublicKey.PublicKeyFormat]
       specified in the
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       request.
       
      bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.