/*
 * 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/v1beta1/resources.proto

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

public interface X509ExtensionOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.X509Extension)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Required. The OID for this X.509 extension.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return Whether the objectId field is set.
   */
  boolean hasObjectId();
  /**
   *
   *
   * <pre>
   * Required. The OID for this X.509 extension.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return The objectId.
   */
  com.google.cloud.security.privateca.v1beta1.ObjectId getObjectId();
  /**
   *
   *
   * <pre>
   * Required. The OID for this X.509 extension.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectIdOrBuilder();

  /**
   *
   *
   * <pre>
   * Required. Indicates whether or not this extension is critical (i.e., if the client
   * does not know how to handle this extension, the client should consider this
   * to be an error).
   * </pre>
   *
   * <code>bool critical = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The critical.
   */
  boolean getCritical();

  /**
   *
   *
   * <pre>
   * Required. The value of this X.509 extension.
   * </pre>
   *
   * <code>bytes value = 3 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The value.
   */
  com.google.protobuf.ByteString getValue();
}
