com.google.api.services.content.model.Account 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: 2015-03-26 20:30:19 UTC)
* on 2015-06-05 at 00:40:03 UTC
* Modify at your own risk.
*/
package com.google.api.services.content.model;
/**
* Account data.
*
* 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 Account extends com.google.api.client.json.GenericJson {
/**
* Indicates whether the merchant sells adult content.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean adultContent;
/**
* List of linked AdWords accounts, active or pending approval. To create a new link request, add
* a new link with status active to the list. It will remain is state pending until approved or
* rejected in the AdWords interface. To delete an active link or to cancel a link request, remove
* it from the list.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List adwordsLinks;
/**
* Merchant Center account ID.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.math.BigInteger id;
/**
* Identifies what kind of resource this is. Value: the fixed string "content#account".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* Display name for the account.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* URL for individual seller reviews, i.e., reviews for each child account.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String reviewsUrl;
/**
* Client-specific, locally-unique, internal ID for the child account.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sellerId;
/**
* Users with access to the account. Every account (except for subaccounts) must have at least one
* admin user.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List users;
static {
// hack to force ProGuard to consider AccountUser 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(AccountUser.class);
}
/**
* The merchant's website.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String websiteUrl;
/**
* Indicates whether the merchant sells adult content.
* @return value or {@code null} for none
*/
public java.lang.Boolean getAdultContent() {
return adultContent;
}
/**
* Indicates whether the merchant sells adult content.
* @param adultContent adultContent or {@code null} for none
*/
public Account setAdultContent(java.lang.Boolean adultContent) {
this.adultContent = adultContent;
return this;
}
/**
* List of linked AdWords accounts, active or pending approval. To create a new link request, add
* a new link with status active to the list. It will remain is state pending until approved or
* rejected in the AdWords interface. To delete an active link or to cancel a link request, remove
* it from the list.
* @return value or {@code null} for none
*/
public java.util.List getAdwordsLinks() {
return adwordsLinks;
}
/**
* List of linked AdWords accounts, active or pending approval. To create a new link request, add
* a new link with status active to the list. It will remain is state pending until approved or
* rejected in the AdWords interface. To delete an active link or to cancel a link request, remove
* it from the list.
* @param adwordsLinks adwordsLinks or {@code null} for none
*/
public Account setAdwordsLinks(java.util.List adwordsLinks) {
this.adwordsLinks = adwordsLinks;
return this;
}
/**
* Merchant Center account ID.
* @return value or {@code null} for none
*/
public java.math.BigInteger getId() {
return id;
}
/**
* Merchant Center account ID.
* @param id id or {@code null} for none
*/
public Account setId(java.math.BigInteger id) {
this.id = id;
return this;
}
/**
* Identifies what kind of resource this is. Value: the fixed string "content#account".
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Identifies what kind of resource this is. Value: the fixed string "content#account".
* @param kind kind or {@code null} for none
*/
public Account setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* Display name for the account.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Display name for the account.
* @param name name or {@code null} for none
*/
public Account setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* URL for individual seller reviews, i.e., reviews for each child account.
* @return value or {@code null} for none
*/
public java.lang.String getReviewsUrl() {
return reviewsUrl;
}
/**
* URL for individual seller reviews, i.e., reviews for each child account.
* @param reviewsUrl reviewsUrl or {@code null} for none
*/
public Account setReviewsUrl(java.lang.String reviewsUrl) {
this.reviewsUrl = reviewsUrl;
return this;
}
/**
* Client-specific, locally-unique, internal ID for the child account.
* @return value or {@code null} for none
*/
public java.lang.String getSellerId() {
return sellerId;
}
/**
* Client-specific, locally-unique, internal ID for the child account.
* @param sellerId sellerId or {@code null} for none
*/
public Account setSellerId(java.lang.String sellerId) {
this.sellerId = sellerId;
return this;
}
/**
* Users with access to the account. Every account (except for subaccounts) must have at least one
* admin user.
* @return value or {@code null} for none
*/
public java.util.List getUsers() {
return users;
}
/**
* Users with access to the account. Every account (except for subaccounts) must have at least one
* admin user.
* @param users users or {@code null} for none
*/
public Account setUsers(java.util.List users) {
this.users = users;
return this;
}
/**
* The merchant's website.
* @return value or {@code null} for none
*/
public java.lang.String getWebsiteUrl() {
return websiteUrl;
}
/**
* The merchant's website.
* @param websiteUrl websiteUrl or {@code null} for none
*/
public Account setWebsiteUrl(java.lang.String websiteUrl) {
this.websiteUrl = websiteUrl;
return this;
}
@Override
public Account set(String fieldName, Object value) {
return (Account) super.set(fieldName, value);
}
@Override
public Account clone() {
return (Account) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy