Class CertificateExtensionConstraints.Builder (2.44.0)

public static final class CertificateExtensionConstraints.Builder extends GeneratedMessageV3.Builder<CertificateExtensionConstraints.Builder> 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

Static Methods

getDescriptor()

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

Methods

addAdditionalExtensions(ObjectId value)

public CertificateExtensionConstraints.Builder addAdditionalExtensions(ObjectId value)

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
Name Description
value ObjectId
Returns
Type Description
CertificateExtensionConstraints.Builder

addAdditionalExtensions(ObjectId.Builder builderForValue)

public CertificateExtensionConstraints.Builder addAdditionalExtensions(ObjectId.Builder builderForValue)

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
Name Description
builderForValue ObjectId.Builder
Returns
Type Description
CertificateExtensionConstraints.Builder

addAdditionalExtensions(int index, ObjectId value)

public CertificateExtensionConstraints.Builder addAdditionalExtensions(int index, ObjectId value)

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];

Parameters
Name Description
index int
value ObjectId
Returns
Type Description
CertificateExtensionConstraints.Builder

addAdditionalExtensions(int index, ObjectId.Builder builderForValue)

public CertificateExtensionConstraints.Builder addAdditionalExtensions(int index, ObjectId.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue ObjectId.Builder
Returns
Type Description
CertificateExtensionConstraints.Builder

addAdditionalExtensionsBuilder()

public ObjectId.Builder addAdditionalExtensionsBuilder()

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
Type Description
ObjectId.Builder

addAdditionalExtensionsBuilder(int index)

public ObjectId.Builder addAdditionalExtensionsBuilder(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
Name Description
index int
Returns
Type Description
ObjectId.Builder

addAllAdditionalExtensions(Iterable<? extends ObjectId> values)

public CertificateExtensionConstraints.Builder addAllAdditionalExtensions(Iterable<? extends ObjectId> values)

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
Name Description
values Iterable<? extends com.google.cloud.security.privateca.v1.ObjectId>
Returns
Type Description
CertificateExtensionConstraints.Builder

addAllKnownExtensions(Iterable<? extends CertificateExtensionConstraints.KnownCertificateExtension> values)

public CertificateExtensionConstraints.Builder addAllKnownExtensions(Iterable<? extends CertificateExtensionConstraints.KnownCertificateExtension> values)

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
Name Description
values Iterable<? extends com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension>

The knownExtensions to add.

Returns
Type Description
CertificateExtensionConstraints.Builder

This builder for chaining.

addAllKnownExtensionsValue(Iterable<Integer> values)

public CertificateExtensionConstraints.Builder addAllKnownExtensionsValue(Iterable<Integer> values)

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
Name Description
values Iterable<Integer>

The enum numeric values on the wire for knownExtensions to add.

Returns
Type Description
CertificateExtensionConstraints.Builder

This builder for chaining.

addKnownExtensions(CertificateExtensionConstraints.KnownCertificateExtension value)

public CertificateExtensionConstraints.Builder addKnownExtensions(CertificateExtensionConstraints.KnownCertificateExtension value)

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
Name Description
value CertificateExtensionConstraints.KnownCertificateExtension

The knownExtensions to add.

Returns
Type Description
CertificateExtensionConstraints.Builder

This builder for chaining.

addKnownExtensionsValue(int value)

public CertificateExtensionConstraints.Builder addKnownExtensionsValue(int value)

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
Name Description
value int

The enum numeric value on the wire for knownExtensions to add.

Returns
Type Description
CertificateExtensionConstraints.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateExtensionConstraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateExtensionConstraints.Builder
Overrides

build()

public CertificateExtensionConstraints build()
Returns
Type Description
CertificateExtensionConstraints

buildPartial()

public CertificateExtensionConstraints buildPartial()
Returns
Type Description
CertificateExtensionConstraints

clear()

public CertificateExtensionConstraints.Builder clear()
Returns
Type Description
CertificateExtensionConstraints.Builder
Overrides

clearAdditionalExtensions()

public CertificateExtensionConstraints.Builder clearAdditionalExtensions()

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
Type Description
CertificateExtensionConstraints.Builder

clearField(Descriptors.FieldDescriptor field)

public CertificateExtensionConstraints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CertificateExtensionConstraints.Builder
Overrides

clearKnownExtensions()

public CertificateExtensionConstraints.Builder clearKnownExtensions()

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
Type Description
CertificateExtensionConstraints.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateExtensionConstraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CertificateExtensionConstraints.Builder
Overrides

clone()

public CertificateExtensionConstraints.Builder clone()
Returns
Type Description
CertificateExtensionConstraints.Builder
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
Name Description
index int
Returns
Type Description
ObjectId

getAdditionalExtensionsBuilder(int index)

public ObjectId.Builder getAdditionalExtensionsBuilder(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
Name Description
index int
Returns
Type Description
ObjectId.Builder

getAdditionalExtensionsBuilderList()

public List<ObjectId.Builder> getAdditionalExtensionsBuilderList()

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
Type Description
List<Builder>

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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>

getDefaultInstanceForType()

public CertificateExtensionConstraints getDefaultInstanceForType()
Returns
Type Description
CertificateExtensionConstraints

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
List<Integer>

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CertificateExtensionConstraints other)

public CertificateExtensionConstraints.Builder mergeFrom(CertificateExtensionConstraints other)
Parameter
Name Description
other CertificateExtensionConstraints
Returns
Type Description
CertificateExtensionConstraints.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateExtensionConstraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateExtensionConstraints.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CertificateExtensionConstraints.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CertificateExtensionConstraints.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateExtensionConstraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateExtensionConstraints.Builder
Overrides

removeAdditionalExtensions(int index)

public CertificateExtensionConstraints.Builder removeAdditionalExtensions(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
Name Description
index int
Returns
Type Description
CertificateExtensionConstraints.Builder

setAdditionalExtensions(int index, ObjectId value)

public CertificateExtensionConstraints.Builder setAdditionalExtensions(int index, ObjectId value)

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];

Parameters
Name Description
index int
value ObjectId
Returns
Type Description
CertificateExtensionConstraints.Builder

setAdditionalExtensions(int index, ObjectId.Builder builderForValue)

public CertificateExtensionConstraints.Builder setAdditionalExtensions(int index, ObjectId.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue ObjectId.Builder
Returns
Type Description
CertificateExtensionConstraints.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateExtensionConstraints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateExtensionConstraints.Builder
Overrides

setKnownExtensions(int index, CertificateExtensionConstraints.KnownCertificateExtension value)

public CertificateExtensionConstraints.Builder setKnownExtensions(int index, CertificateExtensionConstraints.KnownCertificateExtension value)

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];

Parameters
Name Description
index int

The index to set the value at.

value CertificateExtensionConstraints.KnownCertificateExtension

The knownExtensions to set.

Returns
Type Description
CertificateExtensionConstraints.Builder

This builder for chaining.

setKnownExtensionsValue(int index, int value)

public CertificateExtensionConstraints.Builder setKnownExtensionsValue(int index, int value)

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];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for knownExtensions to set.

Returns
Type Description
CertificateExtensionConstraints.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CertificateExtensionConstraints.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CertificateExtensionConstraints.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateExtensionConstraints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateExtensionConstraints.Builder
Overrides