Class KeyUsage.ExtendedKeyUsageOptions.Builder (2.47.0)

public static final class KeyUsage.ExtendedKeyUsageOptions.Builder extends GeneratedMessageV3.Builder<KeyUsage.ExtendedKeyUsageOptions.Builder> implements KeyUsage.ExtendedKeyUsageOptionsOrBuilder

KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value.

Protobuf type google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KeyUsage.ExtendedKeyUsageOptions build()
Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions

buildPartial()

public KeyUsage.ExtendedKeyUsageOptions buildPartial()
Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions

clear()

public KeyUsage.ExtendedKeyUsageOptions.Builder clear()
Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder
Overrides

clearClientAuth()

public KeyUsage.ExtendedKeyUsageOptions.Builder clearClientAuth()

Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS.

bool client_auth = 2;

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

clearCodeSigning()

public KeyUsage.ExtendedKeyUsageOptions.Builder clearCodeSigning()

Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication".

bool code_signing = 3;

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

clearEmailProtection()

public KeyUsage.ExtendedKeyUsageOptions.Builder clearEmailProtection()

Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection".

bool email_protection = 4;

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOcspSigning()

public KeyUsage.ExtendedKeyUsageOptions.Builder clearOcspSigning()

Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses".

bool ocsp_signing = 6;

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServerAuth()

public KeyUsage.ExtendedKeyUsageOptions.Builder clearServerAuth()

Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS.

bool server_auth = 1;

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

clearTimeStamping()

public KeyUsage.ExtendedKeyUsageOptions.Builder clearTimeStamping()

Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time".

bool time_stamping = 5;

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

clone()

public KeyUsage.ExtendedKeyUsageOptions.Builder clone()
Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder
Overrides

getClientAuth()

public boolean getClientAuth()

Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS.

bool client_auth = 2;

Returns
Type Description
boolean

The clientAuth.

getCodeSigning()

public boolean getCodeSigning()

Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication".

bool code_signing = 3;

Returns
Type Description
boolean

The codeSigning.

getDefaultInstanceForType()

public KeyUsage.ExtendedKeyUsageOptions getDefaultInstanceForType()
Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions

getDescriptorForType()

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

getEmailProtection()

public boolean getEmailProtection()

Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection".

bool email_protection = 4;

Returns
Type Description
boolean

The emailProtection.

getOcspSigning()

public boolean getOcspSigning()

Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses".

bool ocsp_signing = 6;

Returns
Type Description
boolean

The ocspSigning.

getServerAuth()

public boolean getServerAuth()

Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS.

bool server_auth = 1;

Returns
Type Description
boolean

The serverAuth.

getTimeStamping()

public boolean getTimeStamping()

Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time".

bool time_stamping = 5;

Returns
Type Description
boolean

The timeStamping.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KeyUsage.ExtendedKeyUsageOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClientAuth(boolean value)

public KeyUsage.ExtendedKeyUsageOptions.Builder setClientAuth(boolean value)

Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS.

bool client_auth = 2;

Parameter
Name Description
value boolean

The clientAuth to set.

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

setCodeSigning(boolean value)

public KeyUsage.ExtendedKeyUsageOptions.Builder setCodeSigning(boolean value)

Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication".

bool code_signing = 3;

Parameter
Name Description
value boolean

The codeSigning to set.

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

setEmailProtection(boolean value)

public KeyUsage.ExtendedKeyUsageOptions.Builder setEmailProtection(boolean value)

Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection".

bool email_protection = 4;

Parameter
Name Description
value boolean

The emailProtection to set.

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setOcspSigning(boolean value)

public KeyUsage.ExtendedKeyUsageOptions.Builder setOcspSigning(boolean value)

Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses".

bool ocsp_signing = 6;

Parameter
Name Description
value boolean

The ocspSigning to set.

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

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

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

setServerAuth(boolean value)

public KeyUsage.ExtendedKeyUsageOptions.Builder setServerAuth(boolean value)

Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS.

bool server_auth = 1;

Parameter
Name Description
value boolean

The serverAuth to set.

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

setTimeStamping(boolean value)

public KeyUsage.ExtendedKeyUsageOptions.Builder setTimeStamping(boolean value)

Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time".

bool time_stamping = 5;

Parameter
Name Description
value boolean

The timeStamping to set.

Returns
Type Description
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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