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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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 |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.security.privateca.v1beta1.ObjectId>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KeyUsage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
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;
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 |
---|
Name | Description |
index | int
|
build()
buildPartial()
public KeyUsage buildPartial()
clear()
public KeyUsage.Builder clear()
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;
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;
clearField(Descriptors.FieldDescriptor field)
public KeyUsage.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public KeyUsage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public KeyUsage.Builder clone()
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;
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;
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;
getDefaultInstanceForType()
public KeyUsage getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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;
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 |
---|
Type | Description |
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;
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
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 |
---|
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.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
Returns |
---|
Type | Description |
boolean | Whether the extendedKeyUsage field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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;
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;
mergeFrom(KeyUsage other)
public KeyUsage.Builder mergeFrom(KeyUsage other)
public KeyUsage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public KeyUsage.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KeyUsage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
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;
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;
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public KeyUsage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KeyUsage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final KeyUsage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides