Class CertificateExtensionConstraints (2.5.1)

public final class CertificateExtensionConstraints extends GeneratedMessageV3 implements CertificateExtensionConstraintsOrBuilder

Describes a set of X.509 extensions that may be part of some certificate issuance controls.

Protobuf type google.cloud.security.privateca.v1.CertificateExtensionConstraints

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CertificateExtensionConstraints

Static Fields

ADDITIONAL_EXTENSIONS_FIELD_NUMBER

public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

KNOWN_EXTENSIONS_FIELD_NUMBER

public static final int KNOWN_EXTENSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CertificateExtensionConstraints getDefaultInstance()
Returns
TypeDescription
CertificateExtensionConstraints

getDescriptor()

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

newBuilder()

public static CertificateExtensionConstraints.Builder newBuilder()
Returns
TypeDescription
CertificateExtensionConstraints.Builder

newBuilder(CertificateExtensionConstraints prototype)

public static CertificateExtensionConstraints.Builder newBuilder(CertificateExtensionConstraints prototype)
Parameter
NameDescription
prototypeCertificateExtensionConstraints
Returns
TypeDescription
CertificateExtensionConstraints.Builder

parseDelimitedFrom(InputStream input)

public static CertificateExtensionConstraints parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CertificateExtensionConstraints
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static CertificateExtensionConstraints parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CertificateExtensionConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static CertificateExtensionConstraints parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CertificateExtensionConstraints
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static CertificateExtensionConstraints parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CertificateExtensionConstraints
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static CertificateExtensionConstraints parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CertificateExtensionConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<CertificateExtensionConstraints> parser()
Returns
TypeDescription
Parser<CertificateExtensionConstraints>

Methods

equals(Object obj)

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

getAdditionalExtensions(int index)

public ObjectId getAdditionalExtensions(int index)

Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.

repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectId

getAdditionalExtensionsCount()

public int getAdditionalExtensionsCount()

Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.

repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getAdditionalExtensionsList()

public List<ObjectId> getAdditionalExtensionsList()

Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.

repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ObjectId>

getAdditionalExtensionsOrBuilder(int index)

public ObjectIdOrBuilder getAdditionalExtensionsOrBuilder(int index)

Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.

repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectIdOrBuilder

getAdditionalExtensionsOrBuilderList()

public List<? extends ObjectIdOrBuilder> getAdditionalExtensionsOrBuilderList()

Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.

repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>

getDefaultInstanceForType()

public CertificateExtensionConstraints getDefaultInstanceForType()
Returns
TypeDescription
CertificateExtensionConstraints

getKnownExtensions(int index)

public CertificateExtensionConstraints.KnownCertificateExtension getKnownExtensions(int index)

Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.

repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
CertificateExtensionConstraints.KnownCertificateExtension

The knownExtensions at the given index.

getKnownExtensionsCount()

public int getKnownExtensionsCount()

Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.

repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of knownExtensions.

getKnownExtensionsList()

public List<CertificateExtensionConstraints.KnownCertificateExtension> getKnownExtensionsList()

Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.

repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<KnownCertificateExtension>

A list containing the knownExtensions.

getKnownExtensionsValue(int index)

public int getKnownExtensionsValue(int index)

Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.

repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of knownExtensions at the given index.

getKnownExtensionsValueList()

public List<Integer> getKnownExtensionsValueList()

Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.

repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for knownExtensions.

getParserForType()

public Parser<CertificateExtensionConstraints> getParserForType()
Returns
TypeDescription
Parser<CertificateExtensionConstraints>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 CertificateExtensionConstraints.Builder newBuilderForType()
Returns
TypeDescription
CertificateExtensionConstraints.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public CertificateExtensionConstraints.Builder toBuilder()
Returns
TypeDescription
CertificateExtensionConstraints.Builder

writeTo(CodedOutputStream output)

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