Class CertificateConfig.SubjectConfig (2.22.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
TypeDescription
int

SUBJECT_FIELD_NUMBER

public static final int SUBJECT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CertificateConfig.SubjectConfig getDefaultInstance()
Returns
TypeDescription
CertificateConfig.SubjectConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CertificateConfig.SubjectConfig.Builder newBuilder()
Returns
TypeDescription
CertificateConfig.SubjectConfig.Builder

newBuilder(CertificateConfig.SubjectConfig prototype)

public static CertificateConfig.SubjectConfig.Builder newBuilder(CertificateConfig.SubjectConfig prototype)
Parameter
NameDescription
prototypeCertificateConfig.SubjectConfig
Returns
TypeDescription
CertificateConfig.SubjectConfig.Builder

parseDelimitedFrom(InputStream input)

public static CertificateConfig.SubjectConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CertificateConfig.SubjectConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CertificateConfig.SubjectConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CertificateConfig.SubjectConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CertificateConfig.SubjectConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CertificateConfig.SubjectConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CertificateConfig.SubjectConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateConfig.SubjectConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubject()

public Subject getSubject()

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

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

Returns
TypeDescription
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
TypeDescription
SubjectAltNamesOrBuilder

getSubjectOrBuilder()

public SubjectOrBuilder getSubjectOrBuilder()

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

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

Returns
TypeDescription
SubjectOrBuilder

hasSubject()

public boolean hasSubject()

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

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

Returns
TypeDescription
boolean

Whether the subjectAltName field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CertificateConfig.SubjectConfig.Builder newBuilderForType()
Returns
TypeDescription
CertificateConfig.SubjectConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CertificateConfig.SubjectConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CertificateConfig.SubjectConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CertificateConfig.SubjectConfig.Builder toBuilder()
Returns
TypeDescription
CertificateConfig.SubjectConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException