Class ReusableConfigValues

  • All Implemented Interfaces:
    ReusableConfigValuesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ReusableConfigValues
    extends com.google.protobuf.GeneratedMessageV3
    implements ReusableConfigValuesOrBuilder
     A [ReusableConfigValues][google.cloud.security.privateca.v1beta1.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
    See Also:
    Serialized Form
    • Field Detail

      • CA_OPTIONS_FIELD_NUMBER

        public static final int CA_OPTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POLICY_IDS_FIELD_NUMBER

        public static final int POLICY_IDS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AIA_OCSP_SERVERS_FIELD_NUMBER

        public static final int AIA_OCSP_SERVERS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ADDITIONAL_EXTENSIONS_FIELD_NUMBER

        public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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];
        Specified by:
        hasKeyUsage in interface ReusableConfigValuesOrBuilder
        Returns:
        Whether the keyUsage field is set.
      • 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];
        Specified by:
        getKeyUsage in interface ReusableConfigValuesOrBuilder
        Returns:
        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];
        Specified by:
        getKeyUsageOrBuilder in interface ReusableConfigValuesOrBuilder
      • hasCaOptions

        public boolean hasCaOptions()
         Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
         relevant in a CA certificate.
         
        .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasCaOptions in interface ReusableConfigValuesOrBuilder
        Returns:
        Whether the caOptions field is set.
      • getCaOptions

        public ReusableConfigValues.CaOptions getCaOptions()
         Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
         relevant in a CA certificate.
         
        .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCaOptions in interface ReusableConfigValuesOrBuilder
        Returns:
        The caOptions.
      • getCaOptionsOrBuilder

        public ReusableConfigValues.CaOptionsOrBuilder getCaOptionsOrBuilder()
         Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
         relevant in a CA certificate.
         
        .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCaOptionsOrBuilder in interface ReusableConfigValuesOrBuilder
      • 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];
        Specified by:
        getPolicyIdsList in interface ReusableConfigValuesOrBuilder
      • 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];
        Specified by:
        getPolicyIdsOrBuilderList in interface ReusableConfigValuesOrBuilder
      • 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];
        Specified by:
        getPolicyIdsCount in interface ReusableConfigValuesOrBuilder
      • getPolicyIds

        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];
        Specified by:
        getPolicyIds in interface ReusableConfigValuesOrBuilder
      • getPolicyIdsOrBuilder

        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];
        Specified by:
        getPolicyIdsOrBuilder in interface ReusableConfigValuesOrBuilder
      • getAiaOcspServersList

        public com.google.protobuf.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];
        Specified by:
        getAiaOcspServersList in interface ReusableConfigValuesOrBuilder
        Returns:
        A list containing the aiaOcspServers.
      • 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];
        Specified by:
        getAiaOcspServersCount in interface ReusableConfigValuesOrBuilder
        Returns:
        The count of aiaOcspServers.
      • getAiaOcspServers

        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];
        Specified by:
        getAiaOcspServers in interface ReusableConfigValuesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The aiaOcspServers at the given index.
      • getAiaOcspServersBytes

        public com.google.protobuf.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];
        Specified by:
        getAiaOcspServersBytes in interface ReusableConfigValuesOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the aiaOcspServers at the given index.
      • 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];
        Specified by:
        getAdditionalExtensionsCount in interface ReusableConfigValuesOrBuilder
      • getAdditionalExtensions

        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];
        Specified by:
        getAdditionalExtensions in interface ReusableConfigValuesOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ReusableConfigValues parseFrom​(ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReusableConfigValues parseFrom​(ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReusableConfigValues parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReusableConfigValues parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReusableConfigValues parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReusableConfigValues parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public ReusableConfigValues.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ReusableConfigValues.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ReusableConfigValues.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ReusableConfigValues> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ReusableConfigValues getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder