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.v1.KeyUsage
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.security.privateca.v1.ObjectId>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KeyUsage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameter
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameter
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameters
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameters
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameter
Returns
build()
Returns
buildPartial()
public KeyUsage buildPartial()
Returns
clear()
public KeyUsage.Builder clear()
Returns
Overrides
clearBaseKeyUsage()
public KeyUsage.Builder clearBaseKeyUsage()
Describes high-level ways in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;
Returns
clearExtendedKeyUsage()
public KeyUsage.Builder clearExtendedKeyUsage()
Detailed scenarios in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public KeyUsage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public KeyUsage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Returns
clone()
public KeyUsage.Builder clone()
Returns
Overrides
getBaseKeyUsage()
public KeyUsage.KeyUsageOptions getBaseKeyUsage()
Describes high-level ways in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;
Returns
getBaseKeyUsageBuilder()
public KeyUsage.KeyUsageOptions.Builder getBaseKeyUsageBuilder()
Describes high-level ways in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;
Returns
getBaseKeyUsageOrBuilder()
public KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder()
Describes high-level ways in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;
Returns
getDefaultInstanceForType()
public KeyUsage getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getExtendedKeyUsage()
public KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage()
Detailed scenarios in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
Returns
getExtendedKeyUsageBuilder()
public KeyUsage.ExtendedKeyUsageOptions.Builder getExtendedKeyUsageBuilder()
Detailed scenarios in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
Returns
getExtendedKeyUsageOrBuilder()
public KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder()
Detailed scenarios in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameter
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameter
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Returns
getUnknownExtendedKeyUsagesCount()
public int getUnknownExtendedKeyUsagesCount()
Used to describe extended key usages that are not listed in the
KeyUsage.ExtendedKeyUsageOptions message.
repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3;
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameter
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Returns
Type | Description |
List<? extends com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> | |
hasBaseKeyUsage()
public boolean hasBaseKeyUsage()
Describes high-level ways in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;
Returns
Type | Description |
boolean | Whether the baseKeyUsage field is set.
|
hasExtendedKeyUsage()
public boolean hasExtendedKeyUsage()
Detailed scenarios in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
Returns
Type | Description |
boolean | Whether the extendedKeyUsage field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;
Parameter
Returns
mergeExtendedKeyUsage(KeyUsage.ExtendedKeyUsageOptions value)
public KeyUsage.Builder mergeExtendedKeyUsage(KeyUsage.ExtendedKeyUsageOptions value)
Detailed scenarios in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
Parameter
Returns
mergeFrom(KeyUsage other)
public KeyUsage.Builder mergeFrom(KeyUsage other)
Parameter
Returns
public KeyUsage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public KeyUsage.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KeyUsage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameter
Returns
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.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;
Parameter
Returns
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.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;
Parameter
Returns
setExtendedKeyUsage(KeyUsage.ExtendedKeyUsageOptions value)
public KeyUsage.Builder setExtendedKeyUsage(KeyUsage.ExtendedKeyUsageOptions value)
Detailed scenarios in which a key may be used.
.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
Parameter
Returns
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.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public KeyUsage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KeyUsage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameters
Returns
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.v1.ObjectId unknown_extended_key_usages = 3;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final KeyUsage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides