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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CertificateConfig.SubjectConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CertificateConfig.SubjectConfig build()
Returns
buildPartial()
public CertificateConfig.SubjectConfig buildPartial()
Returns
clear()
public CertificateConfig.SubjectConfig.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public CertificateConfig.SubjectConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CertificateConfig.SubjectConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public CertificateConfig.SubjectConfig.Builder clone()
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CertificateConfig.SubjectConfig other)
public CertificateConfig.SubjectConfig.Builder mergeFrom(CertificateConfig.SubjectConfig other)
Parameter
Returns
public CertificateConfig.SubjectConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CertificateConfig.SubjectConfig.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CertificateConfig.SubjectConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public CertificateConfig.SubjectConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CertificateConfig.SubjectConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CertificateConfig.SubjectConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides