Class CertificateConfig.SubjectConfig (2.44.0)

public static final class CertificateConfig.SubjectConfig extends GeneratedMessageV3 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CertificateConfig.SubjectConfig

Static Fields

SUBJECT_ALT_NAME_FIELD_NUMBER

public static final int SUBJECT_ALT_NAME_FIELD_NUMBER
Field Value
Type Description
int

SUBJECT_FIELD_NUMBER

public static final int SUBJECT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CertificateConfig.SubjectConfig getDefaultInstance()
Returns
Type Description
CertificateConfig.SubjectConfig

getDescriptor()

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

newBuilder()

public static CertificateConfig.SubjectConfig.Builder newBuilder()
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

newBuilder(CertificateConfig.SubjectConfig prototype)

public static CertificateConfig.SubjectConfig.Builder newBuilder(CertificateConfig.SubjectConfig prototype)
Parameter
Name Description
prototype CertificateConfig.SubjectConfig
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

parseDelimitedFrom(InputStream input)

public static CertificateConfig.SubjectConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CertificateConfig.SubjectConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CertificateConfig.SubjectConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CertificateConfig.SubjectConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CertificateConfig.SubjectConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CertificateConfig.SubjectConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateConfig.SubjectConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CertificateConfig.SubjectConfig> parser()
Returns
Type Description
Parser<SubjectConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<CertificateConfig.SubjectConfig> getParserForType()
Returns
Type Description
Parser<SubjectConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

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

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CertificateConfig.SubjectConfig.Builder newBuilderForType()
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CertificateConfig.SubjectConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CertificateConfig.SubjectConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CertificateConfig.SubjectConfig.Builder toBuilder()
Returns
Type Description
CertificateConfig.SubjectConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException