/*
 * 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.cloudchannel.v1.model;

/**
 * The features describing the data. Returned by CloudChannelReportsService.RunReportJob and
 * CloudChannelReportsService.FetchReportResults.
 *
 * <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 Cloud Channel 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 GoogleCloudChannelV1alpha1ReportResultsMetadata extends com.google.api.client.json.GenericJson {

  /**
   * The date range of reported usage.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudChannelV1alpha1DateRange dateRange;

  /**
   * The usage dates immediately preceding `date_range` with the same duration. Use this to
   * calculate trending usage and costs. This is only populated if you request trending data. For
   * example, if `date_range` is July 1-15, `preceding_date_range` will be June 16-30.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudChannelV1alpha1DateRange precedingDateRange;

  /**
   * Details of the completed report.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudChannelV1alpha1Report report;

  /**
   * The total number of rows of data in the final report.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long rowCount;

  /**
   * The date range of reported usage.
   * @return value or {@code null} for none
   */
  public GoogleCloudChannelV1alpha1DateRange getDateRange() {
    return dateRange;
  }

  /**
   * The date range of reported usage.
   * @param dateRange dateRange or {@code null} for none
   */
  public GoogleCloudChannelV1alpha1ReportResultsMetadata setDateRange(GoogleCloudChannelV1alpha1DateRange dateRange) {
    this.dateRange = dateRange;
    return this;
  }

  /**
   * The usage dates immediately preceding `date_range` with the same duration. Use this to
   * calculate trending usage and costs. This is only populated if you request trending data. For
   * example, if `date_range` is July 1-15, `preceding_date_range` will be June 16-30.
   * @return value or {@code null} for none
   */
  public GoogleCloudChannelV1alpha1DateRange getPrecedingDateRange() {
    return precedingDateRange;
  }

  /**
   * The usage dates immediately preceding `date_range` with the same duration. Use this to
   * calculate trending usage and costs. This is only populated if you request trending data. For
   * example, if `date_range` is July 1-15, `preceding_date_range` will be June 16-30.
   * @param precedingDateRange precedingDateRange or {@code null} for none
   */
  public GoogleCloudChannelV1alpha1ReportResultsMetadata setPrecedingDateRange(GoogleCloudChannelV1alpha1DateRange precedingDateRange) {
    this.precedingDateRange = precedingDateRange;
    return this;
  }

  /**
   * Details of the completed report.
   * @return value or {@code null} for none
   */
  public GoogleCloudChannelV1alpha1Report getReport() {
    return report;
  }

  /**
   * Details of the completed report.
   * @param report report or {@code null} for none
   */
  public GoogleCloudChannelV1alpha1ReportResultsMetadata setReport(GoogleCloudChannelV1alpha1Report report) {
    this.report = report;
    return this;
  }

  /**
   * The total number of rows of data in the final report.
   * @return value or {@code null} for none
   */
  public java.lang.Long getRowCount() {
    return rowCount;
  }

  /**
   * The total number of rows of data in the final report.
   * @param rowCount rowCount or {@code null} for none
   */
  public GoogleCloudChannelV1alpha1ReportResultsMetadata setRowCount(java.lang.Long rowCount) {
    this.rowCount = rowCount;
    return this;
  }

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

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

}
