Class CertificateAuthority.KeyVersionSpec.Builder

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

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

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

        public boolean hasCloudKmsKeyVersion()
         Required. 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 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasCloudKmsKeyVersion in interface CertificateAuthority.KeyVersionSpecOrBuilder
        Returns:
        Whether the cloudKmsKeyVersion field is set.
      • getCloudKmsKeyVersion

        public String getCloudKmsKeyVersion()
         Required. 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 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCloudKmsKeyVersion in interface CertificateAuthority.KeyVersionSpecOrBuilder
        Returns:
        The cloudKmsKeyVersion.
      • getCloudKmsKeyVersionBytes

        public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes()
         Required. 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 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCloudKmsKeyVersionBytes in interface CertificateAuthority.KeyVersionSpecOrBuilder
        Returns:
        The bytes for cloudKmsKeyVersion.
      • setCloudKmsKeyVersion

        public CertificateAuthority.KeyVersionSpec.Builder setCloudKmsKeyVersion​(String value)
         Required. 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 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The cloudKmsKeyVersion to set.
        Returns:
        This builder for chaining.
      • clearCloudKmsKeyVersion

        public CertificateAuthority.KeyVersionSpec.Builder clearCloudKmsKeyVersion()
         Required. 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 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setCloudKmsKeyVersionBytes

        public CertificateAuthority.KeyVersionSpec.Builder setCloudKmsKeyVersionBytes​(com.google.protobuf.ByteString value)
         Required. 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 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for cloudKmsKeyVersion to set.
        Returns:
        This builder for chaining.
      • hasAlgorithm

        public boolean hasAlgorithm()
         Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasAlgorithm in interface CertificateAuthority.KeyVersionSpecOrBuilder
        Returns:
        Whether the algorithm field is set.
      • getAlgorithmValue

        public int getAlgorithmValue()
         Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
        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)
         Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for algorithm to set.
        Returns:
        This builder for chaining.
      • getAlgorithm

        public CertificateAuthority.SignHashAlgorithm getAlgorithm()
         Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAlgorithm in interface CertificateAuthority.KeyVersionSpecOrBuilder
        Returns:
        The algorithm.
      • setAlgorithm

        public CertificateAuthority.KeyVersionSpec.Builder setAlgorithm​(CertificateAuthority.SignHashAlgorithm value)
         Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The algorithm to set.
        Returns:
        This builder for chaining.
      • clearAlgorithm

        public CertificateAuthority.KeyVersionSpec.Builder clearAlgorithm()
         Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.