Class CertificateConfig.SubjectConfig.Builder (2.50.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.v1beta1.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

clearCommonName()

public CertificateConfig.SubjectConfig.Builder clearCommonName()

Optional. The "common name" of the distinguished name.

string common_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CertificateConfig.SubjectConfig.Builder

This builder for chaining.

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()

Required. Contains distinguished name fields such as the location and organization.

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

Returns
Type Description
CertificateConfig.SubjectConfig.Builder

clearSubjectAltName()

public CertificateConfig.SubjectConfig.Builder clearSubjectAltName()

Optional. The subject alternative name fields.

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

Returns
Type Description
CertificateConfig.SubjectConfig.Builder

clone()

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

getCommonName()

public String getCommonName()

Optional. The "common name" of the distinguished name.

string common_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The commonName.

getCommonNameBytes()

public ByteString getCommonNameBytes()

Optional. The "common name" of the distinguished name.

string common_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for commonName.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getSubject()

public Subject getSubject()

Required. Contains distinguished name fields such as the location and organization.

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

Returns
Type Description
Subject

The subject.

getSubjectAltName()

public SubjectAltNames getSubjectAltName()

Optional. The subject alternative name fields.

.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.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.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubjectAltNames.Builder

getSubjectAltNameOrBuilder()

public SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder()

Optional. The subject alternative name fields.

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

Returns
Type Description
SubjectAltNamesOrBuilder

getSubjectBuilder()

public Subject.Builder getSubjectBuilder()

Required. Contains distinguished name fields such as the location and organization.

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

Returns
Type Description
Subject.Builder

getSubjectOrBuilder()

public SubjectOrBuilder getSubjectOrBuilder()

Required. Contains distinguished name fields such as the location and organization.

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

Returns
Type Description
SubjectOrBuilder

hasSubject()

public boolean hasSubject()

Required. Contains distinguished name fields such as the location and organization.

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

Returns
Type Description
boolean

Whether the subject field is set.

hasSubjectAltName()

public boolean hasSubjectAltName()

Optional. The subject alternative name fields.

.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.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)

Required. Contains distinguished name fields such as the location and organization.

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

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.v1beta1.SubjectAltNames subject_alt_name = 3 [(.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

setCommonName(String value)

public CertificateConfig.SubjectConfig.Builder setCommonName(String value)

Optional. The "common name" of the distinguished name.

string common_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The commonName to set.

Returns
Type Description
CertificateConfig.SubjectConfig.Builder

This builder for chaining.

setCommonNameBytes(ByteString value)

public CertificateConfig.SubjectConfig.Builder setCommonNameBytes(ByteString value)

Optional. The "common name" of the distinguished name.

string common_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for commonName to set.

Returns
Type Description
CertificateConfig.SubjectConfig.Builder

This builder for chaining.

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)

Required. Contains distinguished name fields such as the location and organization.

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

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

setSubject(Subject.Builder builderForValue)

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

Required. Contains distinguished name fields such as the location and organization.

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

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.v1beta1.SubjectAltNames subject_alt_name = 3 [(.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.v1beta1.SubjectAltNames subject_alt_name = 3 [(.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