- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.4
- 2.4.0
- 2.3.0
- 2.2.5
public static final class KeyUsage.KeyUsageOptions.Builder extends GeneratedMessageV3.Builder<KeyUsage.KeyUsageOptions.Builder> implements KeyUsage.KeyUsageOptionsOrBuilder
KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
Protobuf type google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > KeyUsage.KeyUsageOptions.BuilderImplements
KeyUsage.KeyUsageOptionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KeyUsage.KeyUsageOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
build()
public KeyUsage.KeyUsageOptions build()
Type | Description |
KeyUsage.KeyUsageOptions |
buildPartial()
public KeyUsage.KeyUsageOptions buildPartial()
Type | Description |
KeyUsage.KeyUsageOptions |
clear()
public KeyUsage.KeyUsageOptions.Builder clear()
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
clearCertSign()
public KeyUsage.KeyUsageOptions.Builder clearCertSign()
The key may be used to sign certificates.
bool cert_sign = 6;
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
clearContentCommitment()
public KeyUsage.KeyUsageOptions.Builder clearContentCommitment()
The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation".
bool content_commitment = 2;
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
clearCrlSign()
public KeyUsage.KeyUsageOptions.Builder clearCrlSign()
The key may be used sign certificate revocation lists.
bool crl_sign = 7;
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
clearDataEncipherment()
public KeyUsage.KeyUsageOptions.Builder clearDataEncipherment()
The key may be used to encipher data.
bool data_encipherment = 4;
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
clearDecipherOnly()
public KeyUsage.KeyUsageOptions.Builder clearDecipherOnly()
The key may be used to decipher only.
bool decipher_only = 9;
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
clearDigitalSignature()
public KeyUsage.KeyUsageOptions.Builder clearDigitalSignature()
The key may be used for digital signatures.
bool digital_signature = 1;
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
clearEncipherOnly()
public KeyUsage.KeyUsageOptions.Builder clearEncipherOnly()
The key may be used to encipher only.
bool encipher_only = 8;
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public KeyUsage.KeyUsageOptions.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
clearKeyAgreement()
public KeyUsage.KeyUsageOptions.Builder clearKeyAgreement()
The key may be used in a key agreement protocol.
bool key_agreement = 5;
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
clearKeyEncipherment()
public KeyUsage.KeyUsageOptions.Builder clearKeyEncipherment()
The key may be used to encipher other keys.
bool key_encipherment = 3;
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public KeyUsage.KeyUsageOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
clone()
public KeyUsage.KeyUsageOptions.Builder clone()
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
getCertSign()
public boolean getCertSign()
The key may be used to sign certificates.
bool cert_sign = 6;
Type | Description |
boolean | The certSign. |
getContentCommitment()
public boolean getContentCommitment()
The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation".
bool content_commitment = 2;
Type | Description |
boolean | The contentCommitment. |
getCrlSign()
public boolean getCrlSign()
The key may be used sign certificate revocation lists.
bool crl_sign = 7;
Type | Description |
boolean | The crlSign. |
getDataEncipherment()
public boolean getDataEncipherment()
The key may be used to encipher data.
bool data_encipherment = 4;
Type | Description |
boolean | The dataEncipherment. |
getDecipherOnly()
public boolean getDecipherOnly()
The key may be used to decipher only.
bool decipher_only = 9;
Type | Description |
boolean | The decipherOnly. |
getDefaultInstanceForType()
public KeyUsage.KeyUsageOptions getDefaultInstanceForType()
Type | Description |
KeyUsage.KeyUsageOptions |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDigitalSignature()
public boolean getDigitalSignature()
The key may be used for digital signatures.
bool digital_signature = 1;
Type | Description |
boolean | The digitalSignature. |
getEncipherOnly()
public boolean getEncipherOnly()
The key may be used to encipher only.
bool encipher_only = 8;
Type | Description |
boolean | The encipherOnly. |
getKeyAgreement()
public boolean getKeyAgreement()
The key may be used in a key agreement protocol.
bool key_agreement = 5;
Type | Description |
boolean | The keyAgreement. |
getKeyEncipherment()
public boolean getKeyEncipherment()
The key may be used to encipher other keys.
bool key_encipherment = 3;
Type | Description |
boolean | The keyEncipherment. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(KeyUsage.KeyUsageOptions other)
public KeyUsage.KeyUsageOptions.Builder mergeFrom(KeyUsage.KeyUsageOptions other)
Name | Description |
other | KeyUsage.KeyUsageOptions |
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public KeyUsage.KeyUsageOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public KeyUsage.KeyUsageOptions.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KeyUsage.KeyUsageOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
setCertSign(boolean value)
public KeyUsage.KeyUsageOptions.Builder setCertSign(boolean value)
The key may be used to sign certificates.
bool cert_sign = 6;
Name | Description |
value | boolean The certSign to set. |
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
setContentCommitment(boolean value)
public KeyUsage.KeyUsageOptions.Builder setContentCommitment(boolean value)
The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation".
bool content_commitment = 2;
Name | Description |
value | boolean The contentCommitment to set. |
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
setCrlSign(boolean value)
public KeyUsage.KeyUsageOptions.Builder setCrlSign(boolean value)
The key may be used sign certificate revocation lists.
bool crl_sign = 7;
Name | Description |
value | boolean The crlSign to set. |
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
setDataEncipherment(boolean value)
public KeyUsage.KeyUsageOptions.Builder setDataEncipherment(boolean value)
The key may be used to encipher data.
bool data_encipherment = 4;
Name | Description |
value | boolean The dataEncipherment to set. |
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
setDecipherOnly(boolean value)
public KeyUsage.KeyUsageOptions.Builder setDecipherOnly(boolean value)
The key may be used to decipher only.
bool decipher_only = 9;
Name | Description |
value | boolean The decipherOnly to set. |
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
setDigitalSignature(boolean value)
public KeyUsage.KeyUsageOptions.Builder setDigitalSignature(boolean value)
The key may be used for digital signatures.
bool digital_signature = 1;
Name | Description |
value | boolean The digitalSignature to set. |
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
setEncipherOnly(boolean value)
public KeyUsage.KeyUsageOptions.Builder setEncipherOnly(boolean value)
The key may be used to encipher only.
bool encipher_only = 8;
Name | Description |
value | boolean The encipherOnly to set. |
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public KeyUsage.KeyUsageOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
setKeyAgreement(boolean value)
public KeyUsage.KeyUsageOptions.Builder setKeyAgreement(boolean value)
The key may be used in a key agreement protocol.
bool key_agreement = 5;
Name | Description |
value | boolean The keyAgreement to set. |
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
setKeyEncipherment(boolean value)
public KeyUsage.KeyUsageOptions.Builder setKeyEncipherment(boolean value)
The key may be used to encipher other keys.
bool key_encipherment = 3;
Name | Description |
value | boolean The keyEncipherment to set. |
Type | Description |
KeyUsage.KeyUsageOptions.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KeyUsage.KeyUsageOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
KeyUsage.KeyUsageOptions.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final KeyUsage.KeyUsageOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
KeyUsage.KeyUsageOptions.Builder |