/*
 * 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/appengine/v1/app_yaml.proto

package com.google.appengine.v1;

public interface HealthCheckOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.appengine.v1.HealthCheck)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Whether to explicitly disable health checks for this instance.
   * </pre>
   *
   * <code>bool disable_health_check = 1;</code>
   *
   * @return The disableHealthCheck.
   */
  boolean getDisableHealthCheck();

  /**
   *
   *
   * <pre>
   * Host header to send when performing an HTTP health check.
   * Example: "myapp.appspot.com"
   * </pre>
   *
   * <code>string host = 2;</code>
   *
   * @return The host.
   */
  java.lang.String getHost();
  /**
   *
   *
   * <pre>
   * Host header to send when performing an HTTP health check.
   * Example: "myapp.appspot.com"
   * </pre>
   *
   * <code>string host = 2;</code>
   *
   * @return The bytes for host.
   */
  com.google.protobuf.ByteString getHostBytes();

  /**
   *
   *
   * <pre>
   * Number of consecutive successful health checks required before receiving
   * traffic.
   * </pre>
   *
   * <code>uint32 healthy_threshold = 3;</code>
   *
   * @return The healthyThreshold.
   */
  int getHealthyThreshold();

  /**
   *
   *
   * <pre>
   * Number of consecutive failed health checks required before removing
   * traffic.
   * </pre>
   *
   * <code>uint32 unhealthy_threshold = 4;</code>
   *
   * @return The unhealthyThreshold.
   */
  int getUnhealthyThreshold();

  /**
   *
   *
   * <pre>
   * Number of consecutive failed health checks required before an instance is
   * restarted.
   * </pre>
   *
   * <code>uint32 restart_threshold = 5;</code>
   *
   * @return The restartThreshold.
   */
  int getRestartThreshold();

  /**
   *
   *
   * <pre>
   * Interval between health checks.
   * </pre>
   *
   * <code>.google.protobuf.Duration check_interval = 6;</code>
   *
   * @return Whether the checkInterval field is set.
   */
  boolean hasCheckInterval();
  /**
   *
   *
   * <pre>
   * Interval between health checks.
   * </pre>
   *
   * <code>.google.protobuf.Duration check_interval = 6;</code>
   *
   * @return The checkInterval.
   */
  com.google.protobuf.Duration getCheckInterval();
  /**
   *
   *
   * <pre>
   * Interval between health checks.
   * </pre>
   *
   * <code>.google.protobuf.Duration check_interval = 6;</code>
   */
  com.google.protobuf.DurationOrBuilder getCheckIntervalOrBuilder();

  /**
   *
   *
   * <pre>
   * Time before the health check is considered failed.
   * </pre>
   *
   * <code>.google.protobuf.Duration timeout = 7;</code>
   *
   * @return Whether the timeout field is set.
   */
  boolean hasTimeout();
  /**
   *
   *
   * <pre>
   * Time before the health check is considered failed.
   * </pre>
   *
   * <code>.google.protobuf.Duration timeout = 7;</code>
   *
   * @return The timeout.
   */
  com.google.protobuf.Duration getTimeout();
  /**
   *
   *
   * <pre>
   * Time before the health check is considered failed.
   * </pre>
   *
   * <code>.google.protobuf.Duration timeout = 7;</code>
   */
  com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
}
