Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010 Google Inc.
   *
   * 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://code.google.com/p/google-apis-client-generator/
  * (build: 2013-12-19 23:55:21 UTC)
  * on 2014-01-07 at 19:44:24 UTC 
  * Modify at your own risk.
  */
 
 package com.google.api.services.doubleclicksearch.model;

A DoubleClick Search report. This object contains the report request, some report metadata such as currency code, and the generated report rows or report files.

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 DoubleClick Search API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON

Author(s):
Google, Inc.
 
 @SuppressWarnings("javadoc")
 public final class Report extends com.google.api.client.json.GenericJson {

  
Asynchronous report only. Contains a list of generated report files once the report has succesfully completed. The value may be null.
 
   private java.util.List<Filesfiles;
 
   static {
     // hack to force ProGuard to consider Files used, since otherwise it would be stripped out
     // see http://code.google.com/p/google-api-java-client/issues/detail?id=528
     com.google.api.client.util.Data.nullOf(Files.class);
   }

  
Asynchronous report only. Id of the report. The value may be null.
 
   private java.lang.String id;

  
Asynchronous report only. True if and only if the report has completed successfully and the report files are ready to be downloaded. The value may be null.
 
   private java.lang.Boolean isReportReady;

  
Identifies this as a Report resource. Value: the fixed string doubleclicksearch#report. The value may be null.
 
   private java.lang.String kind;

  
The request that created the report. Optional fields not specified in the original request are filled with default values. The value may be null.
 
   private ReportRequest request;

  
The number of report rows generated by the report, not including headers. The value may be null.
 
   private java.lang.Integer rowCount;

  
Synchronous report only. Generated report rows. The value may be null.
 
   private java.util.List<java.util.Map<Stringjava.lang.Object>> rows;

  
The currency code of all monetary values produced in the report, including values that are set by users (e.g., keyword bid settings) and metrics (e.g., cost and revenue). The currency code of a report is determined by the statisticsCurrency field of the report request. The value may be null.
If all statistics of the report are sourced from the same time zone, this would be it. Otherwise the field is unset. The value may be null.
Asynchronous report only. Contains a list of generated report files once the report has succesfully completed.

Returns:
value or null for none
  public java.util.List<FilesgetFiles() {
    return ;
  }

  
Asynchronous report only. Contains a list of generated report files once the report has succesfully completed.

Parameters:
files files or null for none
  public Report setFiles(java.util.List<Filesfiles) {
    this. = files;
    return this;
  }

  
Asynchronous report only. Id of the report.

Returns:
value or null for none
  public java.lang.String getId() {
    return ;
  }

  
Asynchronous report only. Id of the report.

Parameters:
id id or null for none
  public Report setId(java.lang.String id) {
    this. = id;
    return this;
  }

  
Asynchronous report only. True if and only if the report has completed successfully and the report files are ready to be downloaded.

Returns:
value or null for none
    return ;
  }

  
Asynchronous report only. True if and only if the report has completed successfully and the report files are ready to be downloaded.

Parameters:
isReportReady isReportReady or null for none
  public Report setIsReportReady(java.lang.Boolean isReportReady) {
    this. = isReportReady;
    return this;
  }

  
Identifies this as a Report resource. Value: the fixed string doubleclicksearch#report.

Returns:
value or null for none
  public java.lang.String getKind() {
    return ;
  }

  
Identifies this as a Report resource. Value: the fixed string doubleclicksearch#report.

Parameters:
kind kind or null for none
  public Report setKind(java.lang.String kind) {
    this. = kind;
    return this;
  }

  
The request that created the report. Optional fields not specified in the original request are filled with default values.

Returns:
value or null for none
  public ReportRequest getRequest() {
    return ;
  }

  
The request that created the report. Optional fields not specified in the original request are filled with default values.

Parameters:
request request or null for none
  public Report setRequest(ReportRequest request) {
    this. = request;
    return this;
  }

  
The number of report rows generated by the report, not including headers.

Returns:
value or null for none
  public java.lang.Integer getRowCount() {
    return ;
  }

  
The number of report rows generated by the report, not including headers.

Parameters:
rowCount rowCount or null for none
  public Report setRowCount(java.lang.Integer rowCount) {
    this. = rowCount;
    return this;
  }

  
Synchronous report only. Generated report rows.

Returns:
value or null for none
    return ;
  }

  
Synchronous report only. Generated report rows.

Parameters:
rows rows or null for none
    this. = rows;
    return this;
  }

  
The currency code of all monetary values produced in the report, including values that are set by users (e.g., keyword bid settings) and metrics (e.g., cost and revenue). The currency code of a report is determined by the statisticsCurrency field of the report request.

Returns:
value or null for none
    return ;
  }

  
The currency code of all monetary values produced in the report, including values that are set by users (e.g., keyword bid settings) and metrics (e.g., cost and revenue). The currency code of a report is determined by the statisticsCurrency field of the report request.

Parameters:
statisticsCurrencyCode statisticsCurrencyCode or null for none
  public Report setStatisticsCurrencyCode(java.lang.String statisticsCurrencyCode) {
    this. = statisticsCurrencyCode;
    return this;
  }

  
If all statistics of the report are sourced from the same time zone, this would be it. Otherwise the field is unset.

Returns:
value or null for none
    return ;
  }

  
If all statistics of the report are sourced from the same time zone, this would be it. Otherwise the field is unset.

Parameters:
statisticsTimeZone statisticsTimeZone or null for none
  public Report setStatisticsTimeZone(java.lang.String statisticsTimeZone) {
    this. = statisticsTimeZone;
    return this;
  }
  public Report set(String fieldNameObject value) {
    return (Reportsuper.set(fieldNamevalue);
  }
  public Report clone() {
    return (Reportsuper.clone();
  }

  
Model definition for ReportFiles.
  public static final class Files extends com.google.api.client.json.GenericJson {

    
The size of this report file in bytes. The value may be null.
    private java.lang.Long byteCount;

    
Use this url to download the report file. The value may be null.
    private java.lang.String url;

    
The size of this report file in bytes.

Returns:
value or null for none
    public java.lang.Long getByteCount() {
      return ;
    }

    
The size of this report file in bytes.

Parameters:
byteCount byteCount or null for none
    public Files setByteCount(java.lang.Long byteCount) {
      this. = byteCount;
      return this;
    }

    
Use this url to download the report file.

Returns:
value or null for none
    public java.lang.String getUrl() {
      return ;
    }

    
Use this url to download the report file.

Parameters:
url url or null for none
    public Files setUrl(java.lang.String url) {
      this. = url;
      return this;
    }
    @Override
    public Files set(String fieldNameObject value) {
      return (Filessuper.set(fieldNamevalue);
    }
    @Override
    public Files clone() {
      return (Filessuper.clone();
    }
  }
New to GrepCode? Check out our FAQ X