Class KeyUsage.ExtendedKeyUsageOptions.Builder (2.23.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.v1beta1.KeyUsage.ExtendedKeyUsageOptions

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KeyUsage.ExtendedKeyUsageOptions build()
Returns
TypeDescription
KeyUsage.ExtendedKeyUsageOptions

buildPartial()

public KeyUsage.ExtendedKeyUsageOptions buildPartial()
Returns
TypeDescription
KeyUsage.ExtendedKeyUsageOptions

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public KeyUsage.ExtendedKeyUsageOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

clone()

public KeyUsage.ExtendedKeyUsageOptions.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The codeSigning.

getDefaultInstanceForType()

public KeyUsage.ExtendedKeyUsageOptions getDefaultInstanceForType()
Returns
TypeDescription
KeyUsage.ExtendedKeyUsageOptions

getDescriptorForType()

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

The timeStamping.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(KeyUsage.ExtendedKeyUsageOptions other)

public KeyUsage.ExtendedKeyUsageOptions.Builder mergeFrom(KeyUsage.ExtendedKeyUsageOptions other)
Parameter
NameDescription
otherKeyUsage.ExtendedKeyUsageOptions
Returns
TypeDescription
KeyUsage.ExtendedKeyUsageOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KeyUsage.ExtendedKeyUsageOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The clientAuth to set.

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

The codeSigning to set.

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

The emailProtection to set.

Returns
TypeDescription
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The ocspSigning to set.

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

The serverAuth to set.

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

The timeStamping to set.

Returns
TypeDescription
KeyUsage.ExtendedKeyUsageOptions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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