Class CertificateConfig.SubjectConfig.Builder (2.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CertificateConfig.SubjectConfig build()
Returns
TypeDescription
CertificateConfig.SubjectConfig

buildPartial()

public CertificateConfig.SubjectConfig buildPartial()
Returns
TypeDescription
CertificateConfig.SubjectConfig

clear()

public CertificateConfig.SubjectConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
CertificateConfig.SubjectConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateConfig.SubjectConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CertificateConfig.SubjectConfig.Builder

clone()

public CertificateConfig.SubjectConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for commonName.

getDefaultInstanceForType()

public CertificateConfig.SubjectConfig getDefaultInstanceForType()
Returns
TypeDescription
CertificateConfig.SubjectConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the subjectAltName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CertificateConfig.SubjectConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CertificateConfig.SubjectConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSubject
Returns
TypeDescription
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
NameDescription
valueSubjectAltNames
Returns
TypeDescription
CertificateConfig.SubjectConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateConfig.SubjectConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The commonName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for commonName to set.

Returns
TypeDescription
CertificateConfig.SubjectConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateConfig.SubjectConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSubject
Returns
TypeDescription
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
NameDescription
builderForValueSubject.Builder
Returns
TypeDescription
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
NameDescription
valueSubjectAltNames
Returns
TypeDescription
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
NameDescription
builderForValueSubjectAltNames.Builder
Returns
TypeDescription
CertificateConfig.SubjectConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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