/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/security/privateca/v1/resources.proto

package com.google.cloud.security.privateca.v1;

public interface CertificateDescriptionOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateDescription)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Describes some of the values in a certificate that are related to the
   * subject and lifetime.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1;
   * </code>
   *
   * @return Whether the subjectDescription field is set.
   */
  boolean hasSubjectDescription();
  /**
   *
   *
   * <pre>
   * Describes some of the values in a certificate that are related to the
   * subject and lifetime.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1;
   * </code>
   *
   * @return The subjectDescription.
   */
  com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
      getSubjectDescription();
  /**
   *
   *
   * <pre>
   * Describes some of the values in a certificate that are related to the
   * subject and lifetime.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1;
   * </code>
   */
  com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder
      getSubjectDescriptionOrBuilder();

  /**
   *
   *
   * <pre>
   * Describes some of the technical X.509 fields in a certificate.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.X509Parameters x509_description = 2;</code>
   *
   * @return Whether the x509Description field is set.
   */
  boolean hasX509Description();
  /**
   *
   *
   * <pre>
   * Describes some of the technical X.509 fields in a certificate.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.X509Parameters x509_description = 2;</code>
   *
   * @return The x509Description.
   */
  com.google.cloud.security.privateca.v1.X509Parameters getX509Description();
  /**
   *
   *
   * <pre>
   * Describes some of the technical X.509 fields in a certificate.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.X509Parameters x509_description = 2;</code>
   */
  com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509DescriptionOrBuilder();

  /**
   *
   *
   * <pre>
   * The public key that corresponds to an issued certificate.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.PublicKey public_key = 3;</code>
   *
   * @return Whether the publicKey field is set.
   */
  boolean hasPublicKey();
  /**
   *
   *
   * <pre>
   * The public key that corresponds to an issued certificate.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.PublicKey public_key = 3;</code>
   *
   * @return The publicKey.
   */
  com.google.cloud.security.privateca.v1.PublicKey getPublicKey();
  /**
   *
   *
   * <pre>
   * The public key that corresponds to an issued certificate.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.PublicKey public_key = 3;</code>
   */
  com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrBuilder();

  /**
   *
   *
   * <pre>
   * Provides a means of identifiying certificates that contain a particular
   * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4;
   * </code>
   *
   * @return Whether the subjectKeyId field is set.
   */
  boolean hasSubjectKeyId();
  /**
   *
   *
   * <pre>
   * Provides a means of identifiying certificates that contain a particular
   * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4;
   * </code>
   *
   * @return The subjectKeyId.
   */
  com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getSubjectKeyId();
  /**
   *
   *
   * <pre>
   * Provides a means of identifiying certificates that contain a particular
   * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4;
   * </code>
   */
  com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder
      getSubjectKeyIdOrBuilder();

  /**
   *
   *
   * <pre>
   * Identifies the subject_key_id of the parent certificate, per
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5;
   * </code>
   *
   * @return Whether the authorityKeyId field is set.
   */
  boolean hasAuthorityKeyId();
  /**
   *
   *
   * <pre>
   * Identifies the subject_key_id of the parent certificate, per
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5;
   * </code>
   *
   * @return The authorityKeyId.
   */
  com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getAuthorityKeyId();
  /**
   *
   *
   * <pre>
   * Identifies the subject_key_id of the parent certificate, per
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5;
   * </code>
   */
  com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder
      getAuthorityKeyIdOrBuilder();

  /**
   *
   *
   * <pre>
   * Describes a list of locations to obtain CRL information, i.e.
   * the DistributionPoint.fullName described by
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.13
   * </pre>
   *
   * <code>repeated string crl_distribution_points = 6;</code>
   *
   * @return A list containing the crlDistributionPoints.
   */
  java.util.List<java.lang.String> getCrlDistributionPointsList();
  /**
   *
   *
   * <pre>
   * Describes a list of locations to obtain CRL information, i.e.
   * the DistributionPoint.fullName described by
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.13
   * </pre>
   *
   * <code>repeated string crl_distribution_points = 6;</code>
   *
   * @return The count of crlDistributionPoints.
   */
  int getCrlDistributionPointsCount();
  /**
   *
   *
   * <pre>
   * Describes a list of locations to obtain CRL information, i.e.
   * the DistributionPoint.fullName described by
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.13
   * </pre>
   *
   * <code>repeated string crl_distribution_points = 6;</code>
   *
   * @param index The index of the element to return.
   * @return The crlDistributionPoints at the given index.
   */
  java.lang.String getCrlDistributionPoints(int index);
  /**
   *
   *
   * <pre>
   * Describes a list of locations to obtain CRL information, i.e.
   * the DistributionPoint.fullName described by
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.13
   * </pre>
   *
   * <code>repeated string crl_distribution_points = 6;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the crlDistributionPoints at the given index.
   */
  com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index);

  /**
   *
   *
   * <pre>
   * Describes lists of issuer CA certificate URLs that appear in the
   * "Authority Information Access" extension in the certificate.
   * </pre>
   *
   * <code>repeated string aia_issuing_certificate_urls = 7;</code>
   *
   * @return A list containing the aiaIssuingCertificateUrls.
   */
  java.util.List<java.lang.String> getAiaIssuingCertificateUrlsList();
  /**
   *
   *
   * <pre>
   * Describes lists of issuer CA certificate URLs that appear in the
   * "Authority Information Access" extension in the certificate.
   * </pre>
   *
   * <code>repeated string aia_issuing_certificate_urls = 7;</code>
   *
   * @return The count of aiaIssuingCertificateUrls.
   */
  int getAiaIssuingCertificateUrlsCount();
  /**
   *
   *
   * <pre>
   * Describes lists of issuer CA certificate URLs that appear in the
   * "Authority Information Access" extension in the certificate.
   * </pre>
   *
   * <code>repeated string aia_issuing_certificate_urls = 7;</code>
   *
   * @param index The index of the element to return.
   * @return The aiaIssuingCertificateUrls at the given index.
   */
  java.lang.String getAiaIssuingCertificateUrls(int index);
  /**
   *
   *
   * <pre>
   * Describes lists of issuer CA certificate URLs that appear in the
   * "Authority Information Access" extension in the certificate.
   * </pre>
   *
   * <code>repeated string aia_issuing_certificate_urls = 7;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the aiaIssuingCertificateUrls at the given index.
   */
  com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index);

  /**
   *
   *
   * <pre>
   * The hash of the x.509 certificate.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;
   * </code>
   *
   * @return Whether the certFingerprint field is set.
   */
  boolean hasCertFingerprint();
  /**
   *
   *
   * <pre>
   * The hash of the x.509 certificate.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;
   * </code>
   *
   * @return The certFingerprint.
   */
  com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint
      getCertFingerprint();
  /**
   *
   *
   * <pre>
   * The hash of the x.509 certificate.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;
   * </code>
   */
  com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder
      getCertFingerprintOrBuilder();
}
