Class KeyUsage.Builder (2.35.0)

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

A KeyUsage describes key usage values that may appear in an X.509 certificate.

Protobuf type google.cloud.security.privateca.v1beta1.KeyUsage

Implements

KeyUsageOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllUnknownExtendedKeyUsages(Iterable<? extends ObjectId> values)

public KeyUsage.Builder addAllUnknownExtendedKeyUsages(Iterable<? extends ObjectId> values)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.security.privateca.v1beta1.ObjectId>
Returns
TypeDescription
KeyUsage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnknownExtendedKeyUsages(ObjectId value)

public KeyUsage.Builder addUnknownExtendedKeyUsages(ObjectId value)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameter
NameDescription
valueObjectId
Returns
TypeDescription
KeyUsage.Builder

addUnknownExtendedKeyUsages(ObjectId.Builder builderForValue)

public KeyUsage.Builder addUnknownExtendedKeyUsages(ObjectId.Builder builderForValue)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameter
NameDescription
builderForValueObjectId.Builder
Returns
TypeDescription
KeyUsage.Builder

addUnknownExtendedKeyUsages(int index, ObjectId value)

public KeyUsage.Builder addUnknownExtendedKeyUsages(int index, ObjectId value)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameters
NameDescription
indexint
valueObjectId
Returns
TypeDescription
KeyUsage.Builder

addUnknownExtendedKeyUsages(int index, ObjectId.Builder builderForValue)

public KeyUsage.Builder addUnknownExtendedKeyUsages(int index, ObjectId.Builder builderForValue)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameters
NameDescription
indexint
builderForValueObjectId.Builder
Returns
TypeDescription
KeyUsage.Builder

addUnknownExtendedKeyUsagesBuilder()

public ObjectId.Builder addUnknownExtendedKeyUsagesBuilder()

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Returns
TypeDescription
ObjectId.Builder

addUnknownExtendedKeyUsagesBuilder(int index)

public ObjectId.Builder addUnknownExtendedKeyUsagesBuilder(int index)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectId.Builder

build()

public KeyUsage build()
Returns
TypeDescription
KeyUsage

buildPartial()

public KeyUsage buildPartial()
Returns
TypeDescription
KeyUsage

clear()

public KeyUsage.Builder clear()
Returns
TypeDescription
KeyUsage.Builder
Overrides

clearBaseKeyUsage()

public KeyUsage.Builder clearBaseKeyUsage()

Describes high-level ways in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1;

Returns
TypeDescription
KeyUsage.Builder

clearExtendedKeyUsage()

public KeyUsage.Builder clearExtendedKeyUsage()

Detailed scenarios in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;

Returns
TypeDescription
KeyUsage.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnknownExtendedKeyUsages()

public KeyUsage.Builder clearUnknownExtendedKeyUsages()

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Returns
TypeDescription
KeyUsage.Builder

clone()

public KeyUsage.Builder clone()
Returns
TypeDescription
KeyUsage.Builder
Overrides

getBaseKeyUsage()

public KeyUsage.KeyUsageOptions getBaseKeyUsage()

Describes high-level ways in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1;

Returns
TypeDescription
KeyUsage.KeyUsageOptions

The baseKeyUsage.

getBaseKeyUsageBuilder()

public KeyUsage.KeyUsageOptions.Builder getBaseKeyUsageBuilder()

Describes high-level ways in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1;

Returns
TypeDescription
KeyUsage.KeyUsageOptions.Builder

getBaseKeyUsageOrBuilder()

public KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder()

Describes high-level ways in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1;

Returns
TypeDescription
KeyUsage.KeyUsageOptionsOrBuilder

getDefaultInstanceForType()

public KeyUsage getDefaultInstanceForType()
Returns
TypeDescription
KeyUsage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExtendedKeyUsage()

public KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage()

Detailed scenarios in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;

Returns
TypeDescription
KeyUsage.ExtendedKeyUsageOptions

The extendedKeyUsage.

getExtendedKeyUsageBuilder()

public KeyUsage.ExtendedKeyUsageOptions.Builder getExtendedKeyUsageBuilder()

Detailed scenarios in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;

Returns
TypeDescription
KeyUsage.ExtendedKeyUsageOptions.Builder

getExtendedKeyUsageOrBuilder()

public KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder()

Detailed scenarios in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;

Returns
TypeDescription
KeyUsage.ExtendedKeyUsageOptionsOrBuilder

getUnknownExtendedKeyUsages(int index)

public ObjectId getUnknownExtendedKeyUsages(int index)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectId

getUnknownExtendedKeyUsagesBuilder(int index)

public ObjectId.Builder getUnknownExtendedKeyUsagesBuilder(int index)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectId.Builder

getUnknownExtendedKeyUsagesBuilderList()

public List<ObjectId.Builder> getUnknownExtendedKeyUsagesBuilderList()

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Returns
TypeDescription
List<Builder>

getUnknownExtendedKeyUsagesCount()

public int getUnknownExtendedKeyUsagesCount()

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Returns
TypeDescription
int

getUnknownExtendedKeyUsagesList()

public List<ObjectId> getUnknownExtendedKeyUsagesList()

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Returns
TypeDescription
List<ObjectId>

getUnknownExtendedKeyUsagesOrBuilder(int index)

public ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder(int index)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectIdOrBuilder

getUnknownExtendedKeyUsagesOrBuilderList()

public List<? extends ObjectIdOrBuilder> getUnknownExtendedKeyUsagesOrBuilderList()

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Returns
TypeDescription
List<? extends com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>

hasBaseKeyUsage()

public boolean hasBaseKeyUsage()

Describes high-level ways in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1;

Returns
TypeDescription
boolean

Whether the baseKeyUsage field is set.

hasExtendedKeyUsage()

public boolean hasExtendedKeyUsage()

Detailed scenarios in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;

Returns
TypeDescription
boolean

Whether the extendedKeyUsage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBaseKeyUsage(KeyUsage.KeyUsageOptions value)

public KeyUsage.Builder mergeBaseKeyUsage(KeyUsage.KeyUsageOptions value)

Describes high-level ways in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1;

Parameter
NameDescription
valueKeyUsage.KeyUsageOptions
Returns
TypeDescription
KeyUsage.Builder

mergeExtendedKeyUsage(KeyUsage.ExtendedKeyUsageOptions value)

public KeyUsage.Builder mergeExtendedKeyUsage(KeyUsage.ExtendedKeyUsageOptions value)

Detailed scenarios in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;

Parameter
NameDescription
valueKeyUsage.ExtendedKeyUsageOptions
Returns
TypeDescription
KeyUsage.Builder

mergeFrom(KeyUsage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeUnknownExtendedKeyUsages(int index)

public KeyUsage.Builder removeUnknownExtendedKeyUsages(int index)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
KeyUsage.Builder

setBaseKeyUsage(KeyUsage.KeyUsageOptions value)

public KeyUsage.Builder setBaseKeyUsage(KeyUsage.KeyUsageOptions value)

Describes high-level ways in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1;

Parameter
NameDescription
valueKeyUsage.KeyUsageOptions
Returns
TypeDescription
KeyUsage.Builder

setBaseKeyUsage(KeyUsage.KeyUsageOptions.Builder builderForValue)

public KeyUsage.Builder setBaseKeyUsage(KeyUsage.KeyUsageOptions.Builder builderForValue)

Describes high-level ways in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1;

Parameter
NameDescription
builderForValueKeyUsage.KeyUsageOptions.Builder
Returns
TypeDescription
KeyUsage.Builder

setExtendedKeyUsage(KeyUsage.ExtendedKeyUsageOptions value)

public KeyUsage.Builder setExtendedKeyUsage(KeyUsage.ExtendedKeyUsageOptions value)

Detailed scenarios in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;

Parameter
NameDescription
valueKeyUsage.ExtendedKeyUsageOptions
Returns
TypeDescription
KeyUsage.Builder

setExtendedKeyUsage(KeyUsage.ExtendedKeyUsageOptions.Builder builderForValue)

public KeyUsage.Builder setExtendedKeyUsage(KeyUsage.ExtendedKeyUsageOptions.Builder builderForValue)

Detailed scenarios in which a key may be used.

.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;

Parameter
NameDescription
builderForValueKeyUsage.ExtendedKeyUsageOptions.Builder
Returns
TypeDescription
KeyUsage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownExtendedKeyUsages(int index, ObjectId value)

public KeyUsage.Builder setUnknownExtendedKeyUsages(int index, ObjectId value)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameters
NameDescription
indexint
valueObjectId
Returns
TypeDescription
KeyUsage.Builder

setUnknownExtendedKeyUsages(int index, ObjectId.Builder builderForValue)

public KeyUsage.Builder setUnknownExtendedKeyUsages(int index, ObjectId.Builder builderForValue)

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3;

Parameters
NameDescription
indexint
builderForValueObjectId.Builder
Returns
TypeDescription
KeyUsage.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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