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

/**
 * Per each list that wishes to schedule url we return one of these:
 *
 * <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 Document AI Warehouse 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 TrawlerHostBucketDataUrlList extends com.google.api.client.json.GenericJson {

  /**
   * Is this client/requestorid allowed to crawl now? (based on resource use)
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("ClientCanCrawl")
  private java.lang.Boolean clientCanCrawl;

  /**
   * Is this the 'default' user's list
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("IsDefaultNode")
  private java.lang.Boolean isDefaultNode;

  /**
   * Was this the list that a given request landed in?
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("IsListForUrl")
  private java.lang.Boolean isListForUrl;

  /**
   * # of current active fetches
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("NumCurrentFetches")
  private java.lang.Integer numCurrentFetches;

  /**
   * # of urls currently in the queue
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("NumUrls")
  private java.lang.Integer numUrls;

  /**
   * Total qps for this partner dedicated hostload, for non partner it will be -1.0.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("PartnerTotalCapacityQps")
  private java.lang.Float partnerTotalCapacityQps;

  /**
   * Currently used qps for this partner dedicated hostlaod, for non partner it will be -1.0.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("PartnerTotalUsedQps")
  private java.lang.Float partnerTotalUsedQps;

  /**
   * The type of the request (low latency vs. high throughput)
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("RequestType")
  private java.lang.String requestType;

  /**
   * The fp64 of the requestor string
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("RequestorFp") @com.google.api.client.json.JsonString
  private java.math.BigInteger requestorFp;

  /**
   * Is this client/requestorid allowed to crawl now? (based on resource use)
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getClientCanCrawl() {
    return clientCanCrawl;
  }

  /**
   * Is this client/requestorid allowed to crawl now? (based on resource use)
   * @param clientCanCrawl clientCanCrawl or {@code null} for none
   */
  public TrawlerHostBucketDataUrlList setClientCanCrawl(java.lang.Boolean clientCanCrawl) {
    this.clientCanCrawl = clientCanCrawl;
    return this;
  }

  /**
   * Is this the 'default' user's list
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getIsDefaultNode() {
    return isDefaultNode;
  }

  /**
   * Is this the 'default' user's list
   * @param isDefaultNode isDefaultNode or {@code null} for none
   */
  public TrawlerHostBucketDataUrlList setIsDefaultNode(java.lang.Boolean isDefaultNode) {
    this.isDefaultNode = isDefaultNode;
    return this;
  }

  /**
   * Was this the list that a given request landed in?
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getIsListForUrl() {
    return isListForUrl;
  }

  /**
   * Was this the list that a given request landed in?
   * @param isListForUrl isListForUrl or {@code null} for none
   */
  public TrawlerHostBucketDataUrlList setIsListForUrl(java.lang.Boolean isListForUrl) {
    this.isListForUrl = isListForUrl;
    return this;
  }

  /**
   * # of current active fetches
   * @return value or {@code null} for none
   */
  public java.lang.Integer getNumCurrentFetches() {
    return numCurrentFetches;
  }

  /**
   * # of current active fetches
   * @param numCurrentFetches numCurrentFetches or {@code null} for none
   */
  public TrawlerHostBucketDataUrlList setNumCurrentFetches(java.lang.Integer numCurrentFetches) {
    this.numCurrentFetches = numCurrentFetches;
    return this;
  }

  /**
   * # of urls currently in the queue
   * @return value or {@code null} for none
   */
  public java.lang.Integer getNumUrls() {
    return numUrls;
  }

  /**
   * # of urls currently in the queue
   * @param numUrls numUrls or {@code null} for none
   */
  public TrawlerHostBucketDataUrlList setNumUrls(java.lang.Integer numUrls) {
    this.numUrls = numUrls;
    return this;
  }

  /**
   * Total qps for this partner dedicated hostload, for non partner it will be -1.0.
   * @return value or {@code null} for none
   */
  public java.lang.Float getPartnerTotalCapacityQps() {
    return partnerTotalCapacityQps;
  }

  /**
   * Total qps for this partner dedicated hostload, for non partner it will be -1.0.
   * @param partnerTotalCapacityQps partnerTotalCapacityQps or {@code null} for none
   */
  public TrawlerHostBucketDataUrlList setPartnerTotalCapacityQps(java.lang.Float partnerTotalCapacityQps) {
    this.partnerTotalCapacityQps = partnerTotalCapacityQps;
    return this;
  }

  /**
   * Currently used qps for this partner dedicated hostlaod, for non partner it will be -1.0.
   * @return value or {@code null} for none
   */
  public java.lang.Float getPartnerTotalUsedQps() {
    return partnerTotalUsedQps;
  }

  /**
   * Currently used qps for this partner dedicated hostlaod, for non partner it will be -1.0.
   * @param partnerTotalUsedQps partnerTotalUsedQps or {@code null} for none
   */
  public TrawlerHostBucketDataUrlList setPartnerTotalUsedQps(java.lang.Float partnerTotalUsedQps) {
    this.partnerTotalUsedQps = partnerTotalUsedQps;
    return this;
  }

  /**
   * The type of the request (low latency vs. high throughput)
   * @return value or {@code null} for none
   */
  public java.lang.String getRequestType() {
    return requestType;
  }

  /**
   * The type of the request (low latency vs. high throughput)
   * @param requestType requestType or {@code null} for none
   */
  public TrawlerHostBucketDataUrlList setRequestType(java.lang.String requestType) {
    this.requestType = requestType;
    return this;
  }

  /**
   * The fp64 of the requestor string
   * @return value or {@code null} for none
   */
  public java.math.BigInteger getRequestorFp() {
    return requestorFp;
  }

  /**
   * The fp64 of the requestor string
   * @param requestorFp requestorFp or {@code null} for none
   */
  public TrawlerHostBucketDataUrlList setRequestorFp(java.math.BigInteger requestorFp) {
    this.requestorFp = requestorFp;
    return this;
  }

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

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

}
