Class CertificateAuthority.KeyVersionSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CertificateAuthority.KeyVersionSpec.Builder>
com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder
All Implemented Interfaces:
CertificateAuthority.KeyVersionSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CertificateAuthority.KeyVersionSpec

public static final class CertificateAuthority.KeyVersionSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<CertificateAuthority.KeyVersionSpec.Builder> implements CertificateAuthority.KeyVersionSpecOrBuilder
 A Cloud KMS key configuration that a
 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
 will use.
 
Protobuf type google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec
  • 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<CertificateAuthority.KeyVersionSpec.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<CertificateAuthority.KeyVersionSpec.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<CertificateAuthority.KeyVersionSpec.Builder>
    • getDefaultInstanceForType

      public CertificateAuthority.KeyVersionSpec 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 CertificateAuthority.KeyVersionSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public CertificateAuthority.KeyVersionSpec.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<CertificateAuthority.KeyVersionSpec.Builder>
      Throws:
      IOException
    • getKeyVersionCase

      Specified by:
      getKeyVersionCase in interface CertificateAuthority.KeyVersionSpecOrBuilder
    • clearKeyVersion

    • hasCloudKmsKeyVersion

      public boolean hasCloudKmsKeyVersion()
       The resource name for an existing Cloud KMS CryptoKeyVersion in the
       format
       `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
       This option enables full flexibility in the key's capabilities and
       properties.
       
      string cloud_kms_key_version = 1;
      Specified by:
      hasCloudKmsKeyVersion in interface CertificateAuthority.KeyVersionSpecOrBuilder
      Returns:
      Whether the cloudKmsKeyVersion field is set.
    • getCloudKmsKeyVersion

      public String getCloudKmsKeyVersion()
       The resource name for an existing Cloud KMS CryptoKeyVersion in the
       format
       `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
       This option enables full flexibility in the key's capabilities and
       properties.
       
      string cloud_kms_key_version = 1;
      Specified by:
      getCloudKmsKeyVersion in interface CertificateAuthority.KeyVersionSpecOrBuilder
      Returns:
      The cloudKmsKeyVersion.
    • getCloudKmsKeyVersionBytes

      public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes()
       The resource name for an existing Cloud KMS CryptoKeyVersion in the
       format
       `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
       This option enables full flexibility in the key's capabilities and
       properties.
       
      string cloud_kms_key_version = 1;
      Specified by:
      getCloudKmsKeyVersionBytes in interface CertificateAuthority.KeyVersionSpecOrBuilder
      Returns:
      The bytes for cloudKmsKeyVersion.
    • setCloudKmsKeyVersion

      public CertificateAuthority.KeyVersionSpec.Builder setCloudKmsKeyVersion(String value)
       The resource name for an existing Cloud KMS CryptoKeyVersion in the
       format
       `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
       This option enables full flexibility in the key's capabilities and
       properties.
       
      string cloud_kms_key_version = 1;
      Parameters:
      value - The cloudKmsKeyVersion to set.
      Returns:
      This builder for chaining.
    • clearCloudKmsKeyVersion

      public CertificateAuthority.KeyVersionSpec.Builder clearCloudKmsKeyVersion()
       The resource name for an existing Cloud KMS CryptoKeyVersion in the
       format
       `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
       This option enables full flexibility in the key's capabilities and
       properties.
       
      string cloud_kms_key_version = 1;
      Returns:
      This builder for chaining.
    • setCloudKmsKeyVersionBytes

      public CertificateAuthority.KeyVersionSpec.Builder setCloudKmsKeyVersionBytes(com.google.protobuf.ByteString value)
       The resource name for an existing Cloud KMS CryptoKeyVersion in the
       format
       `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
       This option enables full flexibility in the key's capabilities and
       properties.
       
      string cloud_kms_key_version = 1;
      Parameters:
      value - The bytes for cloudKmsKeyVersion to set.
      Returns:
      This builder for chaining.
    • hasAlgorithm

      public boolean hasAlgorithm()
       The algorithm to use for creating a managed Cloud KMS key for a for a
       simplified experience. All managed keys will be have their
       [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
       
      .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
      Specified by:
      hasAlgorithm in interface CertificateAuthority.KeyVersionSpecOrBuilder
      Returns:
      Whether the algorithm field is set.
    • getAlgorithmValue

      public int getAlgorithmValue()
       The algorithm to use for creating a managed Cloud KMS key for a for a
       simplified experience. All managed keys will be have their
       [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
       
      .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
      Specified by:
      getAlgorithmValue in interface CertificateAuthority.KeyVersionSpecOrBuilder
      Returns:
      The enum numeric value on the wire for algorithm.
    • setAlgorithmValue

      public CertificateAuthority.KeyVersionSpec.Builder setAlgorithmValue(int value)
       The algorithm to use for creating a managed Cloud KMS key for a for a
       simplified experience. All managed keys will be have their
       [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
       
      .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
      Parameters:
      value - The enum numeric value on the wire for algorithm to set.
      Returns:
      This builder for chaining.
    • getAlgorithm

       The algorithm to use for creating a managed Cloud KMS key for a for a
       simplified experience. All managed keys will be have their
       [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
       
      .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
      Specified by:
      getAlgorithm in interface CertificateAuthority.KeyVersionSpecOrBuilder
      Returns:
      The algorithm.
    • setAlgorithm

       The algorithm to use for creating a managed Cloud KMS key for a for a
       simplified experience. All managed keys will be have their
       [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
       
      .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
      Parameters:
      value - The algorithm to set.
      Returns:
      This builder for chaining.
    • clearAlgorithm

       The algorithm to use for creating a managed Cloud KMS key for a for a
       simplified experience. All managed keys will be have their
       [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
       
      .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
      Returns:
      This builder for chaining.