com.google.api.services.content.model.DatafeedStatusError Maven / Gradle / Ivy
/*
* 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: 2014-07-22 21:53:01 UTC)
* on 2014-10-10 at 20:21:11 UTC
* Modify at your own risk.
*/
package com.google.api.services.content.model;
/**
* An error occurring in the feed, like "invalid price".
*
* 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 Content API for Shopping. For a detailed explanation
* see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class DatafeedStatusError extends com.google.api.client.json.GenericJson {
/**
* The code of the error, e.g., "validation/invalid_value".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String code;
/**
* The number of occurrences of the error in the feed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.math.BigInteger count;
/**
* A list of example occurrences of the error, grouped by product.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List examples;
/**
* The error message, e.g., "Invalid price".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String message;
/**
* The code of the error, e.g., "validation/invalid_value".
* @return value or {@code null} for none
*/
public java.lang.String getCode() {
return code;
}
/**
* The code of the error, e.g., "validation/invalid_value".
* @param code code or {@code null} for none
*/
public DatafeedStatusError setCode(java.lang.String code) {
this.code = code;
return this;
}
/**
* The number of occurrences of the error in the feed.
* @return value or {@code null} for none
*/
public java.math.BigInteger getCount() {
return count;
}
/**
* The number of occurrences of the error in the feed.
* @param count count or {@code null} for none
*/
public DatafeedStatusError setCount(java.math.BigInteger count) {
this.count = count;
return this;
}
/**
* A list of example occurrences of the error, grouped by product.
* @return value or {@code null} for none
*/
public java.util.List getExamples() {
return examples;
}
/**
* A list of example occurrences of the error, grouped by product.
* @param examples examples or {@code null} for none
*/
public DatafeedStatusError setExamples(java.util.List examples) {
this.examples = examples;
return this;
}
/**
* The error message, e.g., "Invalid price".
* @return value or {@code null} for none
*/
public java.lang.String getMessage() {
return message;
}
/**
* The error message, e.g., "Invalid price".
* @param message message or {@code null} for none
*/
public DatafeedStatusError setMessage(java.lang.String message) {
this.message = message;
return this;
}
@Override
public DatafeedStatusError set(String fieldName, Object value) {
return (DatafeedStatusError) super.set(fieldName, value);
}
@Override
public DatafeedStatusError clone() {
return (DatafeedStatusError) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy