Class 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.GeneratedMessageV3.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 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.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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).
         
        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).
         
        string pem = 1;
        Specified by:
        getPemBytes in interface ImportJob.WrappingPublicKeyOrBuilder
        Returns:
        The bytes for pem.
      • setPem

        public ImportJob.WrappingPublicKey.Builder setPem​(String 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).
         
        string pem = 1;
        Parameters:
        value - The pem to set.
        Returns:
        This builder for chaining.
      • clearPem

        public ImportJob.WrappingPublicKey.Builder 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).
         
        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).
         
        string pem = 1;
        Parameters:
        value - The bytes for pem to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

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