/*
 * 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
 *
 * http://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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.digitalassetlinks.v1.model;

/**
 * Response for BulkCheck call. Results are sent in a list in the same order in which they were
 * sent. Individual check errors are described in the appropriate check_results entry. If the entire
 * call fails, the response will include a bulk_error_code field describing the error.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Digital Asset Links API. For a detailed explanation
 * see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class BulkCheckResponse extends com.google.api.client.json.GenericJson {

  /**
   * Error code for the entire request. Present only if the entire request failed. Individual check
   * errors will not trigger the presence of this field.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String bulkErrorCode;

  /**
   * List of results for each check request. Results are returned in the same order in which they
   * were sent in the request.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<CheckResponse> checkResults;

  /**
   * Error code for the entire request. Present only if the entire request failed. Individual check
   * errors will not trigger the presence of this field.
   * @return value or {@code null} for none
   */
  public java.lang.String getBulkErrorCode() {
    return bulkErrorCode;
  }

  /**
   * Error code for the entire request. Present only if the entire request failed. Individual check
   * errors will not trigger the presence of this field.
   * @param bulkErrorCode bulkErrorCode or {@code null} for none
   */
  public BulkCheckResponse setBulkErrorCode(java.lang.String bulkErrorCode) {
    this.bulkErrorCode = bulkErrorCode;
    return this;
  }

  /**
   * List of results for each check request. Results are returned in the same order in which they
   * were sent in the request.
   * @return value or {@code null} for none
   */
  public java.util.List<CheckResponse> getCheckResults() {
    return checkResults;
  }

  /**
   * List of results for each check request. Results are returned in the same order in which they
   * were sent in the request.
   * @param checkResults checkResults or {@code null} for none
   */
  public BulkCheckResponse setCheckResults(java.util.List<CheckResponse> checkResults) {
    this.checkResults = checkResults;
    return this;
  }

  @Override
  public BulkCheckResponse set(String fieldName, Object value) {
    return (BulkCheckResponse) super.set(fieldName, value);
  }

  @Override
  public BulkCheckResponse clone() {
    return (BulkCheckResponse) super.clone();
  }

}
