Class X509Parameters.Builder (2.51.0)

public static final class X509Parameters.Builder extends GeneratedMessageV3.Builder<X509Parameters.Builder> implements X509ParametersOrBuilder

An X509Parameters is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.

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

Static Methods

getDescriptor()

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

Methods

addAdditionalExtensions(X509Extension value)

public X509Parameters.Builder addAdditionalExtensions(X509Extension value)

Optional. Describes custom X.509 extensions.

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

Parameter
Name Description
value X509Extension
Returns
Type Description
X509Parameters.Builder

addAdditionalExtensions(X509Extension.Builder builderForValue)

public X509Parameters.Builder addAdditionalExtensions(X509Extension.Builder builderForValue)

Optional. Describes custom X.509 extensions.

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

Parameter
Name Description
builderForValue X509Extension.Builder
Returns
Type Description
X509Parameters.Builder

addAdditionalExtensions(int index, X509Extension value)

public X509Parameters.Builder addAdditionalExtensions(int index, X509Extension value)

Optional. Describes custom X.509 extensions.

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

Parameters
Name Description
index int
value X509Extension
Returns
Type Description
X509Parameters.Builder

addAdditionalExtensions(int index, X509Extension.Builder builderForValue)

public X509Parameters.Builder addAdditionalExtensions(int index, X509Extension.Builder builderForValue)

Optional. Describes custom X.509 extensions.

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

Parameters
Name Description
index int
builderForValue X509Extension.Builder
Returns
Type Description
X509Parameters.Builder

addAdditionalExtensionsBuilder()

public X509Extension.Builder addAdditionalExtensionsBuilder()

Optional. Describes custom X.509 extensions.

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

Returns
Type Description
X509Extension.Builder

addAdditionalExtensionsBuilder(int index)

public X509Extension.Builder addAdditionalExtensionsBuilder(int index)

Optional. Describes custom X.509 extensions.

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

Parameter
Name Description
index int
Returns
Type Description
X509Extension.Builder

addAiaOcspServers(String value)

public X509Parameters.Builder addAiaOcspServers(String value)

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The aiaOcspServers to add.

Returns
Type Description
X509Parameters.Builder

This builder for chaining.

addAiaOcspServersBytes(ByteString value)

public X509Parameters.Builder addAiaOcspServersBytes(ByteString value)

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the aiaOcspServers to add.

Returns
Type Description
X509Parameters.Builder

This builder for chaining.

addAllAdditionalExtensions(Iterable<? extends X509Extension> values)

public X509Parameters.Builder addAllAdditionalExtensions(Iterable<? extends X509Extension> values)

Optional. Describes custom X.509 extensions.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.security.privateca.v1.X509Extension>
Returns
Type Description
X509Parameters.Builder

addAllAiaOcspServers(Iterable<String> values)

public X509Parameters.Builder addAllAiaOcspServers(Iterable<String> values)

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The aiaOcspServers to add.

Returns
Type Description
X509Parameters.Builder

This builder for chaining.

addAllPolicyIds(Iterable<? extends ObjectId> values)

public X509Parameters.Builder addAllPolicyIds(Iterable<? extends ObjectId> values)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.security.privateca.v1.ObjectId>
Returns
Type Description
X509Parameters.Builder

addPolicyIds(ObjectId value)

public X509Parameters.Builder addPolicyIds(ObjectId value)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Parameter
Name Description
value ObjectId
Returns
Type Description
X509Parameters.Builder

addPolicyIds(ObjectId.Builder builderForValue)

public X509Parameters.Builder addPolicyIds(ObjectId.Builder builderForValue)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Parameter
Name Description
builderForValue ObjectId.Builder
Returns
Type Description
X509Parameters.Builder

addPolicyIds(int index, ObjectId value)

public X509Parameters.Builder addPolicyIds(int index, ObjectId value)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

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

addPolicyIds(int index, ObjectId.Builder builderForValue)

public X509Parameters.Builder addPolicyIds(int index, ObjectId.Builder builderForValue)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

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

addPolicyIdsBuilder()

public ObjectId.Builder addPolicyIdsBuilder()

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Returns
Type Description
ObjectId.Builder

addPolicyIdsBuilder(int index)

public ObjectId.Builder addPolicyIdsBuilder(int index)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Parameter
Name Description
index int
Returns
Type Description
ObjectId.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public X509Parameters build()
Returns
Type Description
X509Parameters

buildPartial()

public X509Parameters buildPartial()
Returns
Type Description
X509Parameters

clear()

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

clearAdditionalExtensions()

public X509Parameters.Builder clearAdditionalExtensions()

Optional. Describes custom X.509 extensions.

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

Returns
Type Description
X509Parameters.Builder

clearAiaOcspServers()

public X509Parameters.Builder clearAiaOcspServers()

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
X509Parameters.Builder

This builder for chaining.

clearCaOptions()

public X509Parameters.Builder clearCaOptions()

Optional. Describes options in this X509Parameters that are relevant in a CA certificate.

.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
X509Parameters.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearKeyUsage()

public X509Parameters.Builder clearKeyUsage()

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
X509Parameters.Builder

clearNameConstraints()

public X509Parameters.Builder clearNameConstraints()

Optional. Describes the X.509 name constraints extension.

.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
X509Parameters.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyIds()

public X509Parameters.Builder clearPolicyIds()

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Returns
Type Description
X509Parameters.Builder

clone()

public X509Parameters.Builder clone()
Returns
Type Description
X509Parameters.Builder
Overrides

getAdditionalExtensions(int index)

public X509Extension getAdditionalExtensions(int index)

Optional. Describes custom X.509 extensions.

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

Parameter
Name Description
index int
Returns
Type Description
X509Extension

getAdditionalExtensionsBuilder(int index)

public X509Extension.Builder getAdditionalExtensionsBuilder(int index)

Optional. Describes custom X.509 extensions.

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

Parameter
Name Description
index int
Returns
Type Description
X509Extension.Builder

getAdditionalExtensionsBuilderList()

public List<X509Extension.Builder> getAdditionalExtensionsBuilderList()

Optional. Describes custom X.509 extensions.

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

Returns
Type Description
List<Builder>

getAdditionalExtensionsCount()

public int getAdditionalExtensionsCount()

Optional. Describes custom X.509 extensions.

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

Returns
Type Description
int

getAdditionalExtensionsList()

public List<X509Extension> getAdditionalExtensionsList()

Optional. Describes custom X.509 extensions.

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

Returns
Type Description
List<X509Extension>

getAdditionalExtensionsOrBuilder(int index)

public X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder(int index)

Optional. Describes custom X.509 extensions.

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

Parameter
Name Description
index int
Returns
Type Description
X509ExtensionOrBuilder

getAdditionalExtensionsOrBuilderList()

public List<? extends X509ExtensionOrBuilder> getAdditionalExtensionsOrBuilderList()

Optional. Describes custom X.509 extensions.

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

Returns
Type Description
List<? extends com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>

getAiaOcspServers(int index)

public String getAiaOcspServers(int index)

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The aiaOcspServers at the given index.

getAiaOcspServersBytes(int index)

public ByteString getAiaOcspServersBytes(int index)

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the aiaOcspServers at the given index.

getAiaOcspServersCount()

public int getAiaOcspServersCount()

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of aiaOcspServers.

getAiaOcspServersList()

public ProtocolStringList getAiaOcspServersList()

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the aiaOcspServers.

getCaOptions()

public X509Parameters.CaOptions getCaOptions()

Optional. Describes options in this X509Parameters that are relevant in a CA certificate.

.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
X509Parameters.CaOptions

The caOptions.

getCaOptionsBuilder()

public X509Parameters.CaOptions.Builder getCaOptionsBuilder()

Optional. Describes options in this X509Parameters that are relevant in a CA certificate.

.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
X509Parameters.CaOptions.Builder

getCaOptionsOrBuilder()

public X509Parameters.CaOptionsOrBuilder getCaOptionsOrBuilder()

Optional. Describes options in this X509Parameters that are relevant in a CA certificate.

.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
X509Parameters.CaOptionsOrBuilder

getDefaultInstanceForType()

public X509Parameters getDefaultInstanceForType()
Returns
Type Description
X509Parameters

getDescriptorForType()

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

getKeyUsage()

public KeyUsage getKeyUsage()

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KeyUsage

The keyUsage.

getKeyUsageBuilder()

public KeyUsage.Builder getKeyUsageBuilder()

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KeyUsage.Builder

getKeyUsageOrBuilder()

public KeyUsageOrBuilder getKeyUsageOrBuilder()

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KeyUsageOrBuilder

getNameConstraints()

public X509Parameters.NameConstraints getNameConstraints()

Optional. Describes the X.509 name constraints extension.

.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
X509Parameters.NameConstraints

The nameConstraints.

getNameConstraintsBuilder()

public X509Parameters.NameConstraints.Builder getNameConstraintsBuilder()

Optional. Describes the X.509 name constraints extension.

.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
X509Parameters.NameConstraints.Builder

getNameConstraintsOrBuilder()

public X509Parameters.NameConstraintsOrBuilder getNameConstraintsOrBuilder()

Optional. Describes the X.509 name constraints extension.

.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
X509Parameters.NameConstraintsOrBuilder

getPolicyIds(int index)

public ObjectId getPolicyIds(int index)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Parameter
Name Description
index int
Returns
Type Description
ObjectId

getPolicyIdsBuilder(int index)

public ObjectId.Builder getPolicyIdsBuilder(int index)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Parameter
Name Description
index int
Returns
Type Description
ObjectId.Builder

getPolicyIdsBuilderList()

public List<ObjectId.Builder> getPolicyIdsBuilderList()

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Returns
Type Description
List<Builder>

getPolicyIdsCount()

public int getPolicyIdsCount()

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Returns
Type Description
int

getPolicyIdsList()

public List<ObjectId> getPolicyIdsList()

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Returns
Type Description
List<ObjectId>

getPolicyIdsOrBuilder(int index)

public ObjectIdOrBuilder getPolicyIdsOrBuilder(int index)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Parameter
Name Description
index int
Returns
Type Description
ObjectIdOrBuilder

getPolicyIdsOrBuilderList()

public List<? extends ObjectIdOrBuilder> getPolicyIdsOrBuilderList()

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

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

hasCaOptions()

public boolean hasCaOptions()

Optional. Describes options in this X509Parameters that are relevant in a CA certificate.

.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the caOptions field is set.

hasKeyUsage()

public boolean hasKeyUsage()

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the keyUsage field is set.

hasNameConstraints()

public boolean hasNameConstraints()

Optional. Describes the X.509 name constraints extension.

.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the nameConstraints field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCaOptions(X509Parameters.CaOptions value)

public X509Parameters.Builder mergeCaOptions(X509Parameters.CaOptions value)

Optional. Describes options in this X509Parameters that are relevant in a CA certificate.

.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value X509Parameters.CaOptions
Returns
Type Description
X509Parameters.Builder

mergeFrom(X509Parameters other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeKeyUsage(KeyUsage value)

public X509Parameters.Builder mergeKeyUsage(KeyUsage value)

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value KeyUsage
Returns
Type Description
X509Parameters.Builder

mergeNameConstraints(X509Parameters.NameConstraints value)

public X509Parameters.Builder mergeNameConstraints(X509Parameters.NameConstraints value)

Optional. Describes the X.509 name constraints extension.

.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value X509Parameters.NameConstraints
Returns
Type Description
X509Parameters.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdditionalExtensions(int index)

public X509Parameters.Builder removeAdditionalExtensions(int index)

Optional. Describes custom X.509 extensions.

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

Parameter
Name Description
index int
Returns
Type Description
X509Parameters.Builder

removePolicyIds(int index)

public X509Parameters.Builder removePolicyIds(int index)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

Parameter
Name Description
index int
Returns
Type Description
X509Parameters.Builder

setAdditionalExtensions(int index, X509Extension value)

public X509Parameters.Builder setAdditionalExtensions(int index, X509Extension value)

Optional. Describes custom X.509 extensions.

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

Parameters
Name Description
index int
value X509Extension
Returns
Type Description
X509Parameters.Builder

setAdditionalExtensions(int index, X509Extension.Builder builderForValue)

public X509Parameters.Builder setAdditionalExtensions(int index, X509Extension.Builder builderForValue)

Optional. Describes custom X.509 extensions.

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

Parameters
Name Description
index int
builderForValue X509Extension.Builder
Returns
Type Description
X509Parameters.Builder

setAiaOcspServers(int index, String value)

public X509Parameters.Builder setAiaOcspServers(int index, String value)

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The aiaOcspServers to set.

Returns
Type Description
X509Parameters.Builder

This builder for chaining.

setCaOptions(X509Parameters.CaOptions value)

public X509Parameters.Builder setCaOptions(X509Parameters.CaOptions value)

Optional. Describes options in this X509Parameters that are relevant in a CA certificate.

.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value X509Parameters.CaOptions
Returns
Type Description
X509Parameters.Builder

setCaOptions(X509Parameters.CaOptions.Builder builderForValue)

public X509Parameters.Builder setCaOptions(X509Parameters.CaOptions.Builder builderForValue)

Optional. Describes options in this X509Parameters that are relevant in a CA certificate.

.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue X509Parameters.CaOptions.Builder
Returns
Type Description
X509Parameters.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeyUsage(KeyUsage value)

public X509Parameters.Builder setKeyUsage(KeyUsage value)

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value KeyUsage
Returns
Type Description
X509Parameters.Builder

setKeyUsage(KeyUsage.Builder builderForValue)

public X509Parameters.Builder setKeyUsage(KeyUsage.Builder builderForValue)

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue KeyUsage.Builder
Returns
Type Description
X509Parameters.Builder

setNameConstraints(X509Parameters.NameConstraints value)

public X509Parameters.Builder setNameConstraints(X509Parameters.NameConstraints value)

Optional. Describes the X.509 name constraints extension.

.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value X509Parameters.NameConstraints
Returns
Type Description
X509Parameters.Builder

setNameConstraints(X509Parameters.NameConstraints.Builder builderForValue)

public X509Parameters.Builder setNameConstraints(X509Parameters.NameConstraints.Builder builderForValue)

Optional. Describes the X.509 name constraints extension.

.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue X509Parameters.NameConstraints.Builder
Returns
Type Description
X509Parameters.Builder

setPolicyIds(int index, ObjectId value)

public X509Parameters.Builder setPolicyIds(int index, ObjectId value)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

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

setPolicyIds(int index, ObjectId.Builder builderForValue)

public X509Parameters.Builder setPolicyIds(int index, ObjectId.Builder builderForValue)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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