Class ReusableConfigValues (2.49.0)

public final class ReusableConfigValues extends GeneratedMessageV3 implements ReusableConfigValuesOrBuilder

A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.

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

Static Fields

ADDITIONAL_EXTENSIONS_FIELD_NUMBER

public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER
Field Value
Type Description
int

AIA_OCSP_SERVERS_FIELD_NUMBER

public static final int AIA_OCSP_SERVERS_FIELD_NUMBER
Field Value
Type Description
int

CA_OPTIONS_FIELD_NUMBER

public static final int CA_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

KEY_USAGE_FIELD_NUMBER

public static final int KEY_USAGE_FIELD_NUMBER
Field Value
Type Description
int

POLICY_IDS_FIELD_NUMBER

public static final int POLICY_IDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReusableConfigValues getDefaultInstance()
Returns
Type Description
ReusableConfigValues

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ReusableConfigValues.Builder newBuilder()
Returns
Type Description
ReusableConfigValues.Builder

newBuilder(ReusableConfigValues prototype)

public static ReusableConfigValues.Builder newBuilder(ReusableConfigValues prototype)
Parameter
Name Description
prototype ReusableConfigValues
Returns
Type Description
ReusableConfigValues.Builder

parseDelimitedFrom(InputStream input)

public static ReusableConfigValues parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReusableConfigValues parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ReusableConfigValues parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReusableConfigValues parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReusableConfigValues parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReusableConfigValues parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReusableConfigValues parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReusableConfigValues parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ReusableConfigValues parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReusableConfigValues parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ReusableConfigValues parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReusableConfigValues parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReusableConfigValues
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ReusableConfigValues> parser()
Returns
Type Description
Parser<ReusableConfigValues>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAdditionalExtensions(int index)

public X509Extension getAdditionalExtensions(int index)

Optional. Describes custom X.509 extensions.

repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
X509Extension

getAdditionalExtensionsCount()

public int getAdditionalExtensionsCount()

Optional. Describes custom X.509 extensions.

repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAdditionalExtensionsList()

public List<X509Extension> getAdditionalExtensionsList()

Optional. Describes custom X.509 extensions.

repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<X509Extension>

getAdditionalExtensionsOrBuilder(int index)

public X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder(int index)

Optional. Describes custom X.509 extensions.

repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
X509ExtensionOrBuilder

getAdditionalExtensionsOrBuilderList()

public List<? extends X509ExtensionOrBuilder> getAdditionalExtensionsOrBuilderList()

Optional. Describes custom X.509 extensions.

repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>

getAiaOcspServers(int index)

public String getAiaOcspServers(int index)

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The aiaOcspServers at the given index.

getAiaOcspServersBytes(int index)

public ByteString getAiaOcspServersBytes(int index)

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the aiaOcspServers at the given index.

getAiaOcspServersCount()

public int getAiaOcspServersCount()

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of aiaOcspServers.

getAiaOcspServersList()

public ProtocolStringList getAiaOcspServersList()

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the aiaOcspServers.

getCaOptions()

public ReusableConfigValues.CaOptions getCaOptions()

Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ReusableConfigValues.CaOptions

The caOptions.

getCaOptionsOrBuilder()

public ReusableConfigValues.CaOptionsOrBuilder getCaOptionsOrBuilder()

Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ReusableConfigValues.CaOptionsOrBuilder

getDefaultInstanceForType()

public ReusableConfigValues getDefaultInstanceForType()
Returns
Type Description
ReusableConfigValues

getKeyUsage()

public KeyUsage getKeyUsage()

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KeyUsage

The keyUsage.

getKeyUsageOrBuilder()

public KeyUsageOrBuilder getKeyUsageOrBuilder()

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KeyUsageOrBuilder

getParserForType()

public Parser<ReusableConfigValues> getParserForType()
Returns
Type Description
Parser<ReusableConfigValues>
Overrides

getPolicyIds(int index)

public ObjectId getPolicyIds(int index)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ObjectId

getPolicyIdsCount()

public int getPolicyIdsCount()

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getPolicyIdsList()

public List<ObjectId> getPolicyIdsList()

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ObjectId>

getPolicyIdsOrBuilder(int index)

public ObjectIdOrBuilder getPolicyIdsOrBuilder(int index)

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ObjectIdOrBuilder

getPolicyIdsOrBuilderList()

public List<? extends ObjectIdOrBuilder> getPolicyIdsOrBuilderList()

Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCaOptions()

public boolean hasCaOptions()

Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the caOptions field is set.

hasKeyUsage()

public boolean hasKeyUsage()

Optional. Indicates the intended use for keys that correspond to a certificate.

.google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the keyUsage field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ReusableConfigValues.Builder newBuilderForType()
Returns
Type Description
ReusableConfigValues.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReusableConfigValues.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ReusableConfigValues.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ReusableConfigValues.Builder toBuilder()
Returns
Type Description
ReusableConfigValues.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException