Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12291 manish.sha 1
/*
2
 * Copyright 2010 Google Inc.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
 * in compliance with the License. You may obtain a copy of the License at
6
 *
7
 * http://www.apache.org/licenses/LICENSE-2.0
8
 *
9
 * Unless required by applicable law or agreed to in writing, software distributed under the License
10
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11
 * or implied. See the License for the specific language governing permissions and limitations under
12
 * the License.
13
 */
14
/*
15
 * This code was generated by https://code.google.com/p/google-apis-client-generator/
16
 * (build: 2014-07-09 17:08:39 UTC)
17
 * on 2014-07-23 at 21:49:03 UTC 
18
 * Modify at your own risk.
19
 */
20
 
21
package com.google.api.services.content.model;
22
 
23
/**
24
 * A list of errors returned by a failed batch entry.
25
 *
26
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
27
 * transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
28
 * see:
29
 * <a href="http://code.google.com/p/google-http-java-client/wiki/JSON">http://code.google.com/p/google-http-java-client/wiki/JSON</a>
30
 * </p>
31
 *
32
 * @author Google, Inc.
33
 */
34
@SuppressWarnings("javadoc")
35
public final class Errors extends com.google.api.client.json.GenericJson {
36
 
37
  /**
38
   * The HTTP status of the first error in errors.
39
   * The value may be {@code null}.
40
   */
41
  @com.google.api.client.util.Key
42
  private java.lang.Long code;
43
 
44
  /**
45
   * A list of errors.
46
   * The value may be {@code null}.
47
   */
48
  @com.google.api.client.util.Key
49
  private java.util.List<Error> errors;
50
 
51
  /**
52
   * The message of the first error in errors.
53
   * The value may be {@code null}.
54
   */
55
  @com.google.api.client.util.Key
56
  private java.lang.String message;
57
 
58
  /**
59
   * The HTTP status of the first error in errors.
60
   * @return value or {@code null} for none
61
   */
62
  public java.lang.Long getCode() {
63
    return code;
64
  }
65
 
66
  /**
67
   * The HTTP status of the first error in errors.
68
   * @param code code or {@code null} for none
69
   */
70
  public Errors setCode(java.lang.Long code) {
71
    this.code = code;
72
    return this;
73
  }
74
 
75
  /**
76
   * A list of errors.
77
   * @return value or {@code null} for none
78
   */
79
  public java.util.List<Error> getErrors() {
80
    return errors;
81
  }
82
 
83
  /**
84
   * A list of errors.
85
   * @param errors errors or {@code null} for none
86
   */
87
  public Errors setErrors(java.util.List<Error> errors) {
88
    this.errors = errors;
89
    return this;
90
  }
91
 
92
  /**
93
   * The message of the first error in errors.
94
   * @return value or {@code null} for none
95
   */
96
  public java.lang.String getMessage() {
97
    return message;
98
  }
99
 
100
  /**
101
   * The message of the first error in errors.
102
   * @param message message or {@code null} for none
103
   */
104
  public Errors setMessage(java.lang.String message) {
105
    this.message = message;
106
    return this;
107
  }
108
 
109
  @Override
110
  public Errors set(String fieldName, Object value) {
111
    return (Errors) super.set(fieldName, value);
112
  }
113
 
114
  @Override
115
  public Errors clone() {
116
    return (Errors) super.clone();
117
  }
118
 
119
}