/*
 * 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/devtools/cloudbuild/v1/cloudbuild.proto

package com.google.cloudbuild.v1;

public interface ApprovalResultOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.ApprovalResult)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Output only. Email of the user that called the ApproveBuild API to
   * approve or reject a build at the time that the API was called.
   * </pre>
   *
   * <code>string approver_account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The approverAccount.
   */
  java.lang.String getApproverAccount();
  /**
   *
   *
   * <pre>
   * Output only. Email of the user that called the ApproveBuild API to
   * approve or reject a build at the time that the API was called.
   * </pre>
   *
   * <code>string approver_account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for approverAccount.
   */
  com.google.protobuf.ByteString getApproverAccountBytes();

  /**
   *
   *
   * <pre>
   * Output only. The time when the approval decision was made.
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the approvalTime field is set.
   */
  boolean hasApprovalTime();
  /**
   *
   *
   * <pre>
   * Output only. The time when the approval decision was made.
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The approvalTime.
   */
  com.google.protobuf.Timestamp getApprovalTime();
  /**
   *
   *
   * <pre>
   * Output only. The time when the approval decision was made.
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  com.google.protobuf.TimestampOrBuilder getApprovalTimeOrBuilder();

  /**
   *
   *
   * <pre>
   * Required. The decision of this manual approval.
   * </pre>
   *
   * <code>
   * .google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return The enum numeric value on the wire for decision.
   */
  int getDecisionValue();
  /**
   *
   *
   * <pre>
   * Required. The decision of this manual approval.
   * </pre>
   *
   * <code>
   * .google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return The decision.
   */
  com.google.cloudbuild.v1.ApprovalResult.Decision getDecision();

  /**
   *
   *
   * <pre>
   * Optional. An optional comment for this manual approval result.
   * </pre>
   *
   * <code>string comment = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The comment.
   */
  java.lang.String getComment();
  /**
   *
   *
   * <pre>
   * Optional. An optional comment for this manual approval result.
   * </pre>
   *
   * <code>string comment = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for comment.
   */
  com.google.protobuf.ByteString getCommentBytes();

  /**
   *
   *
   * <pre>
   * Optional. An optional URL tied to this manual approval result. This field
   * is essentially the same as comment, except that it will be rendered by the
   * UI differently. An example use case is a link to an external job that
   * approved this Build.
   * </pre>
   *
   * <code>string url = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The url.
   */
  java.lang.String getUrl();
  /**
   *
   *
   * <pre>
   * Optional. An optional URL tied to this manual approval result. This field
   * is essentially the same as comment, except that it will be rendered by the
   * UI differently. An example use case is a link to an external job that
   * approved this Build.
   * </pre>
   *
   * <code>string url = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for url.
   */
  com.google.protobuf.ByteString getUrlBytes();
}
