Class CertificateConfig.SubjectConfig.Builder (2.47.0)

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

These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate.

Protobuf type google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateConfig.SubjectConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides

build()

public CertificateConfig.SubjectConfig build()
Returns
Type Description
CertificateConfig.SubjectConfig

buildPartial()

public CertificateConfig.SubjectConfig buildPartial()
Returns
Type Description
CertificateConfig.SubjectConfig

clear()

public CertificateConfig.SubjectConfig.Builder clear()
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CertificateConfig.SubjectConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateConfig.SubjectConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides

clearSubject()

public CertificateConfig.SubjectConfig.Builder clearSubject()

Optional. Contains distinguished name fields such as the common name, location and organization.

.google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CertificateConfig.SubjectConfig.Builder

clearSubjectAltName()

public CertificateConfig.SubjectConfig.Builder clearSubjectAltName()

Optional. The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CertificateConfig.SubjectConfig.Builder

clone()

public CertificateConfig.SubjectConfig.Builder clone()
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides

getDefaultInstanceForType()

public CertificateConfig.SubjectConfig getDefaultInstanceForType()
Returns
Type Description
CertificateConfig.SubjectConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSubject()

public Subject getSubject()

Optional. Contains distinguished name fields such as the common name, location and organization.

.google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Subject

The subject.

getSubjectAltName()

public SubjectAltNames getSubjectAltName()

Optional. The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubjectAltNames

The subjectAltName.

getSubjectAltNameBuilder()

public SubjectAltNames.Builder getSubjectAltNameBuilder()

Optional. The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubjectAltNames.Builder

getSubjectAltNameOrBuilder()

public SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder()

Optional. The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubjectAltNamesOrBuilder

getSubjectBuilder()

public Subject.Builder getSubjectBuilder()

Optional. Contains distinguished name fields such as the common name, location and organization.

.google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Subject.Builder

getSubjectOrBuilder()

public SubjectOrBuilder getSubjectOrBuilder()

Optional. Contains distinguished name fields such as the common name, location and organization.

.google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubjectOrBuilder

hasSubject()

public boolean hasSubject()

Optional. Contains distinguished name fields such as the common name, location and organization.

.google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the subject field is set.

hasSubjectAltName()

public boolean hasSubjectAltName()

Optional. The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the subjectAltName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CertificateConfig.SubjectConfig other)

public CertificateConfig.SubjectConfig.Builder mergeFrom(CertificateConfig.SubjectConfig other)
Parameter
Name Description
other CertificateConfig.SubjectConfig
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateConfig.SubjectConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CertificateConfig.SubjectConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides

mergeSubject(Subject value)

public CertificateConfig.SubjectConfig.Builder mergeSubject(Subject value)

Optional. Contains distinguished name fields such as the common name, location and organization.

.google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Subject
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

mergeSubjectAltName(SubjectAltNames value)

public CertificateConfig.SubjectConfig.Builder mergeSubjectAltName(SubjectAltNames value)

Optional. The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SubjectAltNames
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateConfig.SubjectConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateConfig.SubjectConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides

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

public CertificateConfig.SubjectConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides

setSubject(Subject value)

public CertificateConfig.SubjectConfig.Builder setSubject(Subject value)

Optional. Contains distinguished name fields such as the common name, location and organization.

.google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Subject
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

setSubject(Subject.Builder builderForValue)

public CertificateConfig.SubjectConfig.Builder setSubject(Subject.Builder builderForValue)

Optional. Contains distinguished name fields such as the common name, location and organization.

.google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Subject.Builder
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

setSubjectAltName(SubjectAltNames value)

public CertificateConfig.SubjectConfig.Builder setSubjectAltName(SubjectAltNames value)

Optional. The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SubjectAltNames
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

setSubjectAltName(SubjectAltNames.Builder builderForValue)

public CertificateConfig.SubjectConfig.Builder setSubjectAltName(SubjectAltNames.Builder builderForValue)

Optional. The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SubjectAltNames.Builder
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateConfig.SubjectConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides