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

/**
 * Model definition for GoogleCloudApigeeV1CustomReport.
 *
 * <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 Apigee 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 GoogleCloudApigeeV1CustomReport extends com.google.api.client.json.GenericJson {

  /**
   * This field contains the chart type for the report
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String chartType;

  /**
   * Legacy field: not used. This field contains a list of comments associated with custom report
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> comments;

  /**
   * Output only. Unix time when the app was created json key: createdAt
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long createdAt;

  /**
   * This contains the list of dimensions for the report
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> dimensions;

  /**
   * This is the display name for the report
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String displayName;

  /**
   * Output only. Environment name
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String environment;

  /**
   * This field contains the filter expression
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String filter;

  /**
   * Legacy field: not used. Contains the from time for the report
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String fromTime;

  /**
   * Output only. Modified time of this entity as milliseconds since epoch. json key: lastModifiedAt
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long lastModifiedAt;

  /**
   * Output only. Last viewed time of this entity as milliseconds since epoch
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long lastViewedAt;

  /**
   * Legacy field: not used This field contains the limit for the result retrieved
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String limit;

  /**
   * Required. This contains the list of metrics
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudApigeeV1CustomReportMetric> metrics;

  /**
   * Required. Unique identifier for the report T his is a legacy field used to encode custom report
   * unique id
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Legacy field: not used. This field contains the offset for the data
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String offset;

  /**
   * Output only. Organization name
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String organization;

  /**
   * This field contains report properties such as ui metadata etc.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudApigeeV1ReportProperty> properties;

  /**
   * Legacy field: not used much. Contains the list of sort by columns
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> sortByCols;

  /**
   * Legacy field: not used much. Contains the sort order for the sort columns
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String sortOrder;

  /**
   * Legacy field: not used. This field contains a list of tags associated with custom report
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> tags;

  /**
   * This field contains the time unit of aggregation for the report
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String timeUnit;

  /**
   * Legacy field: not used. Contains the end time for the report
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String toTime;

  /**
   * Legacy field: not used. This field contains the top k parameter value for restricting the
   * result
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String topk;

  /**
   * This field contains the chart type for the report
   * @return value or {@code null} for none
   */
  public java.lang.String getChartType() {
    return chartType;
  }

  /**
   * This field contains the chart type for the report
   * @param chartType chartType or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setChartType(java.lang.String chartType) {
    this.chartType = chartType;
    return this;
  }

  /**
   * Legacy field: not used. This field contains a list of comments associated with custom report
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getComments() {
    return comments;
  }

  /**
   * Legacy field: not used. This field contains a list of comments associated with custom report
   * @param comments comments or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setComments(java.util.List<java.lang.String> comments) {
    this.comments = comments;
    return this;
  }

  /**
   * Output only. Unix time when the app was created json key: createdAt
   * @return value or {@code null} for none
   */
  public java.lang.Long getCreatedAt() {
    return createdAt;
  }

  /**
   * Output only. Unix time when the app was created json key: createdAt
   * @param createdAt createdAt or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setCreatedAt(java.lang.Long createdAt) {
    this.createdAt = createdAt;
    return this;
  }

  /**
   * This contains the list of dimensions for the report
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getDimensions() {
    return dimensions;
  }

  /**
   * This contains the list of dimensions for the report
   * @param dimensions dimensions or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setDimensions(java.util.List<java.lang.String> dimensions) {
    this.dimensions = dimensions;
    return this;
  }

  /**
   * This is the display name for the report
   * @return value or {@code null} for none
   */
  public java.lang.String getDisplayName() {
    return displayName;
  }

  /**
   * This is the display name for the report
   * @param displayName displayName or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setDisplayName(java.lang.String displayName) {
    this.displayName = displayName;
    return this;
  }

  /**
   * Output only. Environment name
   * @return value or {@code null} for none
   */
  public java.lang.String getEnvironment() {
    return environment;
  }

  /**
   * Output only. Environment name
   * @param environment environment or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setEnvironment(java.lang.String environment) {
    this.environment = environment;
    return this;
  }

  /**
   * This field contains the filter expression
   * @return value or {@code null} for none
   */
  public java.lang.String getFilter() {
    return filter;
  }

  /**
   * This field contains the filter expression
   * @param filter filter or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setFilter(java.lang.String filter) {
    this.filter = filter;
    return this;
  }

  /**
   * Legacy field: not used. Contains the from time for the report
   * @return value or {@code null} for none
   */
  public java.lang.String getFromTime() {
    return fromTime;
  }

  /**
   * Legacy field: not used. Contains the from time for the report
   * @param fromTime fromTime or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setFromTime(java.lang.String fromTime) {
    this.fromTime = fromTime;
    return this;
  }

  /**
   * Output only. Modified time of this entity as milliseconds since epoch. json key: lastModifiedAt
   * @return value or {@code null} for none
   */
  public java.lang.Long getLastModifiedAt() {
    return lastModifiedAt;
  }

  /**
   * Output only. Modified time of this entity as milliseconds since epoch. json key: lastModifiedAt
   * @param lastModifiedAt lastModifiedAt or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setLastModifiedAt(java.lang.Long lastModifiedAt) {
    this.lastModifiedAt = lastModifiedAt;
    return this;
  }

  /**
   * Output only. Last viewed time of this entity as milliseconds since epoch
   * @return value or {@code null} for none
   */
  public java.lang.Long getLastViewedAt() {
    return lastViewedAt;
  }

  /**
   * Output only. Last viewed time of this entity as milliseconds since epoch
   * @param lastViewedAt lastViewedAt or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setLastViewedAt(java.lang.Long lastViewedAt) {
    this.lastViewedAt = lastViewedAt;
    return this;
  }

  /**
   * Legacy field: not used This field contains the limit for the result retrieved
   * @return value or {@code null} for none
   */
  public java.lang.String getLimit() {
    return limit;
  }

  /**
   * Legacy field: not used This field contains the limit for the result retrieved
   * @param limit limit or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setLimit(java.lang.String limit) {
    this.limit = limit;
    return this;
  }

  /**
   * Required. This contains the list of metrics
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudApigeeV1CustomReportMetric> getMetrics() {
    return metrics;
  }

  /**
   * Required. This contains the list of metrics
   * @param metrics metrics or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setMetrics(java.util.List<GoogleCloudApigeeV1CustomReportMetric> metrics) {
    this.metrics = metrics;
    return this;
  }

  /**
   * Required. Unique identifier for the report T his is a legacy field used to encode custom report
   * unique id
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Required. Unique identifier for the report T his is a legacy field used to encode custom report
   * unique id
   * @param name name or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Legacy field: not used. This field contains the offset for the data
   * @return value or {@code null} for none
   */
  public java.lang.String getOffset() {
    return offset;
  }

  /**
   * Legacy field: not used. This field contains the offset for the data
   * @param offset offset or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setOffset(java.lang.String offset) {
    this.offset = offset;
    return this;
  }

  /**
   * Output only. Organization name
   * @return value or {@code null} for none
   */
  public java.lang.String getOrganization() {
    return organization;
  }

  /**
   * Output only. Organization name
   * @param organization organization or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setOrganization(java.lang.String organization) {
    this.organization = organization;
    return this;
  }

  /**
   * This field contains report properties such as ui metadata etc.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudApigeeV1ReportProperty> getProperties() {
    return properties;
  }

  /**
   * This field contains report properties such as ui metadata etc.
   * @param properties properties or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setProperties(java.util.List<GoogleCloudApigeeV1ReportProperty> properties) {
    this.properties = properties;
    return this;
  }

  /**
   * Legacy field: not used much. Contains the list of sort by columns
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getSortByCols() {
    return sortByCols;
  }

  /**
   * Legacy field: not used much. Contains the list of sort by columns
   * @param sortByCols sortByCols or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setSortByCols(java.util.List<java.lang.String> sortByCols) {
    this.sortByCols = sortByCols;
    return this;
  }

  /**
   * Legacy field: not used much. Contains the sort order for the sort columns
   * @return value or {@code null} for none
   */
  public java.lang.String getSortOrder() {
    return sortOrder;
  }

  /**
   * Legacy field: not used much. Contains the sort order for the sort columns
   * @param sortOrder sortOrder or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setSortOrder(java.lang.String sortOrder) {
    this.sortOrder = sortOrder;
    return this;
  }

  /**
   * Legacy field: not used. This field contains a list of tags associated with custom report
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getTags() {
    return tags;
  }

  /**
   * Legacy field: not used. This field contains a list of tags associated with custom report
   * @param tags tags or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setTags(java.util.List<java.lang.String> tags) {
    this.tags = tags;
    return this;
  }

  /**
   * This field contains the time unit of aggregation for the report
   * @return value or {@code null} for none
   */
  public java.lang.String getTimeUnit() {
    return timeUnit;
  }

  /**
   * This field contains the time unit of aggregation for the report
   * @param timeUnit timeUnit or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setTimeUnit(java.lang.String timeUnit) {
    this.timeUnit = timeUnit;
    return this;
  }

  /**
   * Legacy field: not used. Contains the end time for the report
   * @return value or {@code null} for none
   */
  public java.lang.String getToTime() {
    return toTime;
  }

  /**
   * Legacy field: not used. Contains the end time for the report
   * @param toTime toTime or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setToTime(java.lang.String toTime) {
    this.toTime = toTime;
    return this;
  }

  /**
   * Legacy field: not used. This field contains the top k parameter value for restricting the
   * result
   * @return value or {@code null} for none
   */
  public java.lang.String getTopk() {
    return topk;
  }

  /**
   * Legacy field: not used. This field contains the top k parameter value for restricting the
   * result
   * @param topk topk or {@code null} for none
   */
  public GoogleCloudApigeeV1CustomReport setTopk(java.lang.String topk) {
    this.topk = topk;
    return this;
  }

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

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

}
