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

/**
 * Contains samples of memory status reports. * This field is telemetry information and this will
 * change over time as the device is utilized. * Data for this field is controlled via policy:
 * [ReportDeviceMemoryInfo](https://chromeenterprise.google/policies/#ReportDeviceMemoryInfo) * Data
 * Collection Frequency: Only at upload, SystemRamFreeByes is collected every 10 minutes * Default
 * Data Reporting Frequency: Every 3 hours - Policy Controlled: Yes * Cache: If the device is
 * offline, the collected data is stored locally, and will be reported when the device is next
 * online: No * Reported for affiliated users only: N/A * Granular permission needed:
 * TELEMETRY_API_MEMORY_REPORT
 *
 * <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 Chrome Management 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 GoogleChromeManagementV1MemoryStatusReport extends com.google.api.client.json.GenericJson {

  /**
   * Output only. Number of page faults during this collection
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer pageFaults;

  /**
   * Output only. The timestamp in milliseconds representing time at which this report was sampled.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String reportTime;

  /**
   * Output only. Frequency the report is sampled.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String sampleFrequency;

  /**
   * Output only. Amount of free RAM in bytes (unreliable due to Garbage Collection).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long systemRamFreeBytes;

  /**
   * Output only. Number of page faults during this collection
   * @return value or {@code null} for none
   */
  public java.lang.Integer getPageFaults() {
    return pageFaults;
  }

  /**
   * Output only. Number of page faults during this collection
   * @param pageFaults pageFaults or {@code null} for none
   */
  public GoogleChromeManagementV1MemoryStatusReport setPageFaults(java.lang.Integer pageFaults) {
    this.pageFaults = pageFaults;
    return this;
  }

  /**
   * Output only. The timestamp in milliseconds representing time at which this report was sampled.
   * @return value or {@code null} for none
   */
  public String getReportTime() {
    return reportTime;
  }

  /**
   * Output only. The timestamp in milliseconds representing time at which this report was sampled.
   * @param reportTime reportTime or {@code null} for none
   */
  public GoogleChromeManagementV1MemoryStatusReport setReportTime(String reportTime) {
    this.reportTime = reportTime;
    return this;
  }

  /**
   * Output only. Frequency the report is sampled.
   * @return value or {@code null} for none
   */
  public String getSampleFrequency() {
    return sampleFrequency;
  }

  /**
   * Output only. Frequency the report is sampled.
   * @param sampleFrequency sampleFrequency or {@code null} for none
   */
  public GoogleChromeManagementV1MemoryStatusReport setSampleFrequency(String sampleFrequency) {
    this.sampleFrequency = sampleFrequency;
    return this;
  }

  /**
   * Output only. Amount of free RAM in bytes (unreliable due to Garbage Collection).
   * @return value or {@code null} for none
   */
  public java.lang.Long getSystemRamFreeBytes() {
    return systemRamFreeBytes;
  }

  /**
   * Output only. Amount of free RAM in bytes (unreliable due to Garbage Collection).
   * @param systemRamFreeBytes systemRamFreeBytes or {@code null} for none
   */
  public GoogleChromeManagementV1MemoryStatusReport setSystemRamFreeBytes(java.lang.Long systemRamFreeBytes) {
    this.systemRamFreeBytes = systemRamFreeBytes;
    return this;
  }

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

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

}
