Class X509Parameters.CaOptions.Builder (2.15.0)

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

Describes values that are relevant in a CA certificate.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public X509Parameters.CaOptions build()
Returns
TypeDescription
X509Parameters.CaOptions

buildPartial()

public X509Parameters.CaOptions buildPartial()
Returns
TypeDescription
X509Parameters.CaOptions

clear()

public X509Parameters.CaOptions.Builder clear()
Returns
TypeDescription
X509Parameters.CaOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public X509Parameters.CaOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
X509Parameters.CaOptions.Builder
Overrides

clearIsCa()

public X509Parameters.CaOptions.Builder clearIsCa()

Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.

optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
X509Parameters.CaOptions.Builder

This builder for chaining.

clearMaxIssuerPathLength()

public X509Parameters.CaOptions.Builder clearMaxIssuerPathLength()

Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.

optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
X509Parameters.CaOptions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public X509Parameters.CaOptions.Builder clone()
Returns
TypeDescription
X509Parameters.CaOptions.Builder
Overrides

getDefaultInstanceForType()

public X509Parameters.CaOptions getDefaultInstanceForType()
Returns
TypeDescription
X509Parameters.CaOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIsCa()

public boolean getIsCa()

Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.

optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The isCa.

getMaxIssuerPathLength()

public int getMaxIssuerPathLength()

Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.

optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The maxIssuerPathLength.

hasIsCa()

public boolean hasIsCa()

Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.

optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the isCa field is set.

hasMaxIssuerPathLength()

public boolean hasMaxIssuerPathLength()

Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.

optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the maxIssuerPathLength field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(X509Parameters.CaOptions other)

public X509Parameters.CaOptions.Builder mergeFrom(X509Parameters.CaOptions other)
Parameter
NameDescription
otherX509Parameters.CaOptions
Returns
TypeDescription
X509Parameters.CaOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final X509Parameters.CaOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
X509Parameters.CaOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public X509Parameters.CaOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
X509Parameters.CaOptions.Builder
Overrides

setIsCa(boolean value)

public X509Parameters.CaOptions.Builder setIsCa(boolean value)

Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.

optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The isCa to set.

Returns
TypeDescription
X509Parameters.CaOptions.Builder

This builder for chaining.

setMaxIssuerPathLength(int value)

public X509Parameters.CaOptions.Builder setMaxIssuerPathLength(int value)

Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.

optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The maxIssuerPathLength to set.

Returns
TypeDescription
X509Parameters.CaOptions.Builder

This builder for chaining.

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

public X509Parameters.CaOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
X509Parameters.CaOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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