Class CertificateConfig.Builder (2.7.0)

public static final class CertificateConfig.Builder extends GeneratedMessageV3.Builder<CertificateConfig.Builder> implements CertificateConfigOrBuilder

A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1.

Protobuf type google.cloud.security.privateca.v1beta1.CertificateConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CertificateConfig.Builder
Overrides

build()

public CertificateConfig build()
Returns
TypeDescription
CertificateConfig

buildPartial()

public CertificateConfig buildPartial()
Returns
TypeDescription
CertificateConfig

clear()

public CertificateConfig.Builder clear()
Returns
TypeDescription
CertificateConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CertificateConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CertificateConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CertificateConfig.Builder
Overrides

clearPublicKey()

public CertificateConfig.Builder clearPublicKey()

Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateConfig.Builder

clearReusableConfig()

public CertificateConfig.Builder clearReusableConfig()

Required. Describes how some of the technical fields in a certificate should be populated.

.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CertificateConfig.Builder

clearSubjectConfig()

public CertificateConfig.Builder clearSubjectConfig()

Required. Specifies some of the values in a certificate that are related to the subject.

.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CertificateConfig.Builder

clone()

public CertificateConfig.Builder clone()
Returns
TypeDescription
CertificateConfig.Builder
Overrides

getDefaultInstanceForType()

public CertificateConfig getDefaultInstanceForType()
Returns
TypeDescription
CertificateConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPublicKey()

public PublicKey getPublicKey()

Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublicKey

The publicKey.

getPublicKeyBuilder()

public PublicKey.Builder getPublicKeyBuilder()

Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublicKey.Builder

getPublicKeyOrBuilder()

public PublicKeyOrBuilder getPublicKeyOrBuilder()

Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublicKeyOrBuilder

getReusableConfig()

public ReusableConfigWrapper getReusableConfig()

Required. Describes how some of the technical fields in a certificate should be populated.

.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ReusableConfigWrapper

The reusableConfig.

getReusableConfigBuilder()

public ReusableConfigWrapper.Builder getReusableConfigBuilder()

Required. Describes how some of the technical fields in a certificate should be populated.

.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ReusableConfigWrapper.Builder

getReusableConfigOrBuilder()

public ReusableConfigWrapperOrBuilder getReusableConfigOrBuilder()

Required. Describes how some of the technical fields in a certificate should be populated.

.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ReusableConfigWrapperOrBuilder

getSubjectConfig()

public CertificateConfig.SubjectConfig getSubjectConfig()

Required. Specifies some of the values in a certificate that are related to the subject.

.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CertificateConfig.SubjectConfig

The subjectConfig.

getSubjectConfigBuilder()

public CertificateConfig.SubjectConfig.Builder getSubjectConfigBuilder()

Required. Specifies some of the values in a certificate that are related to the subject.

.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CertificateConfig.SubjectConfig.Builder

getSubjectConfigOrBuilder()

public CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder()

Required. Specifies some of the values in a certificate that are related to the subject.

.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CertificateConfig.SubjectConfigOrBuilder

hasPublicKey()

public boolean hasPublicKey()

Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the publicKey field is set.

hasReusableConfig()

public boolean hasReusableConfig()

Required. Describes how some of the technical fields in a certificate should be populated.

.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the reusableConfig field is set.

hasSubjectConfig()

public boolean hasSubjectConfig()

Required. Specifies some of the values in a certificate that are related to the subject.

.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the subjectConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CertificateConfig other)

public CertificateConfig.Builder mergeFrom(CertificateConfig other)
Parameter
NameDescription
otherCertificateConfig
Returns
TypeDescription
CertificateConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CertificateConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CertificateConfig.Builder
Overrides

mergePublicKey(PublicKey value)

public CertificateConfig.Builder mergePublicKey(PublicKey value)

Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuePublicKey
Returns
TypeDescription
CertificateConfig.Builder

mergeReusableConfig(ReusableConfigWrapper value)

public CertificateConfig.Builder mergeReusableConfig(ReusableConfigWrapper value)

Required. Describes how some of the technical fields in a certificate should be populated.

.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueReusableConfigWrapper
Returns
TypeDescription
CertificateConfig.Builder

mergeSubjectConfig(CertificateConfig.SubjectConfig value)

public CertificateConfig.Builder mergeSubjectConfig(CertificateConfig.SubjectConfig value)

Required. Specifies some of the values in a certificate that are related to the subject.

.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCertificateConfig.SubjectConfig
Returns
TypeDescription
CertificateConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CertificateConfig.Builder
Overrides

setPublicKey(PublicKey value)

public CertificateConfig.Builder setPublicKey(PublicKey value)

Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuePublicKey
Returns
TypeDescription
CertificateConfig.Builder

setPublicKey(PublicKey.Builder builderForValue)

public CertificateConfig.Builder setPublicKey(PublicKey.Builder builderForValue)

Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValuePublicKey.Builder
Returns
TypeDescription
CertificateConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CertificateConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CertificateConfig.Builder
Overrides

setReusableConfig(ReusableConfigWrapper value)

public CertificateConfig.Builder setReusableConfig(ReusableConfigWrapper value)

Required. Describes how some of the technical fields in a certificate should be populated.

.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueReusableConfigWrapper
Returns
TypeDescription
CertificateConfig.Builder

setReusableConfig(ReusableConfigWrapper.Builder builderForValue)

public CertificateConfig.Builder setReusableConfig(ReusableConfigWrapper.Builder builderForValue)

Required. Describes how some of the technical fields in a certificate should be populated.

.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueReusableConfigWrapper.Builder
Returns
TypeDescription
CertificateConfig.Builder

setSubjectConfig(CertificateConfig.SubjectConfig value)

public CertificateConfig.Builder setSubjectConfig(CertificateConfig.SubjectConfig value)

Required. Specifies some of the values in a certificate that are related to the subject.

.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCertificateConfig.SubjectConfig
Returns
TypeDescription
CertificateConfig.Builder

setSubjectConfig(CertificateConfig.SubjectConfig.Builder builderForValue)

public CertificateConfig.Builder setSubjectConfig(CertificateConfig.SubjectConfig.Builder builderForValue)

Required. Specifies some of the values in a certificate that are related to the subject.

.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCertificateConfig.SubjectConfig.Builder
Returns
TypeDescription
CertificateConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateConfig.Builder
Overrides