/*
 * Copyright 2023 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 KeyUsageOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.KeyUsage)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Describes high-level ways in which a key may be used.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;</code>
   *
   * @return Whether the baseKeyUsage field is set.
   */
  boolean hasBaseKeyUsage();
  /**
   *
   *
   * <pre>
   * Describes high-level ways in which a key may be used.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;</code>
   *
   * @return The baseKeyUsage.
   */
  com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getBaseKeyUsage();
  /**
   *
   *
   * <pre>
   * Describes high-level ways in which a key may be used.
   * </pre>
   *
   * <code>.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1;</code>
   */
  com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder
      getBaseKeyUsageOrBuilder();

  /**
   *
   *
   * <pre>
   * Detailed scenarios in which a key may be used.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
   * </code>
   *
   * @return Whether the extendedKeyUsage field is set.
   */
  boolean hasExtendedKeyUsage();
  /**
   *
   *
   * <pre>
   * Detailed scenarios in which a key may be used.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
   * </code>
   *
   * @return The extendedKeyUsage.
   */
  com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage();
  /**
   *
   *
   * <pre>
   * Detailed scenarios in which a key may be used.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2;
   * </code>
   */
  com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder
      getExtendedKeyUsageOrBuilder();

  /**
   *
   *
   * <pre>
   * Used to describe extended key usages that are not listed in the
   * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions]
   * message.
   * </pre>
   *
   * <code>repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3;
   * </code>
   */
  java.util.List<com.google.cloud.security.privateca.v1.ObjectId> getUnknownExtendedKeyUsagesList();
  /**
   *
   *
   * <pre>
   * Used to describe extended key usages that are not listed in the
   * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions]
   * message.
   * </pre>
   *
   * <code>repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3;
   * </code>
   */
  com.google.cloud.security.privateca.v1.ObjectId getUnknownExtendedKeyUsages(int index);
  /**
   *
   *
   * <pre>
   * Used to describe extended key usages that are not listed in the
   * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions]
   * message.
   * </pre>
   *
   * <code>repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3;
   * </code>
   */
  int getUnknownExtendedKeyUsagesCount();
  /**
   *
   *
   * <pre>
   * Used to describe extended key usages that are not listed in the
   * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions]
   * message.
   * </pre>
   *
   * <code>repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3;
   * </code>
   */
  java.util.List<? extends com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>
      getUnknownExtendedKeyUsagesOrBuilderList();
  /**
   *
   *
   * <pre>
   * Used to describe extended key usages that are not listed in the
   * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions]
   * message.
   * </pre>
   *
   * <code>repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3;
   * </code>
   */
  com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder(
      int index);
}
