Class CertificateExtensionConstraints.Builder (2.5.1)

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
TypeDescription
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
NameDescription
valueObjectId
Returns
TypeDescription
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
NameDescription
builderForValueObjectId.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueObjectId
Returns
TypeDescription
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
NameDescription
indexint
builderForValueObjectId.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.security.privateca.v1.ObjectId>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension>

The knownExtensions to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valueCertificateExtensionConstraints.KnownCertificateExtension

The knownExtensions to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
CertificateExtensionConstraints.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateExtensionConstraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CertificateExtensionConstraints.Builder
Overrides

build()

public CertificateExtensionConstraints build()
Returns
TypeDescription
CertificateExtensionConstraints

buildPartial()

public CertificateExtensionConstraints buildPartial()
Returns
TypeDescription
CertificateExtensionConstraints

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CertificateExtensionConstraints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CertificateExtensionConstraints.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateExtensionConstraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CertificateExtensionConstraints.Builder
Overrides

clone()

public CertificateExtensionConstraints.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CertificateExtensionConstraints other)

public CertificateExtensionConstraints.Builder mergeFrom(CertificateExtensionConstraints other)
Parameter
NameDescription
otherCertificateExtensionConstraints
Returns
TypeDescription
CertificateExtensionConstraints.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateExtensionConstraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateExtensionConstraints.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CertificateExtensionConstraints.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CertificateExtensionConstraints.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateExtensionConstraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueObjectId
Returns
TypeDescription
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
NameDescription
indexint
builderForValueObjectId.Builder
Returns
TypeDescription
CertificateExtensionConstraints.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateExtensionConstraints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueCertificateExtensionConstraints.KnownCertificateExtension

The knownExtensions to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CertificateExtensionConstraints.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateExtensionConstraints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateExtensionConstraints.Builder
Overrides