All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.consumersurveys.model.Survey Maven / Gradle / Ivy

There is a newer version: v2-rev15-1.23.0
Show newest version
/*
 * 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: 2016-10-17 16:43:55 UTC)
 * on 2016-11-16 at 05:24:47 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.consumersurveys.model;

/**
 * Model definition for Survey.
 *
 * 

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

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class Survey extends com.google.api.client.json.GenericJson { /** * The value may be {@code null}. */ @com.google.api.client.util.Key private SurveyAudience audience; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private SurveyCost cost; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String customerData; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List owners; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List questions; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private SurveyRejection rejectionReason; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String surveyUrlId; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String title; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer wantedResponseCount; /** * @return value or {@code null} for none */ public SurveyAudience getAudience() { return audience; } /** * @param audience audience or {@code null} for none */ public Survey setAudience(SurveyAudience audience) { this.audience = audience; return this; } /** * @return value or {@code null} for none */ public SurveyCost getCost() { return cost; } /** * @param cost cost or {@code null} for none */ public Survey setCost(SurveyCost cost) { this.cost = cost; return this; } /** * @see #decodeCustomerData() * @return value or {@code null} for none */ public java.lang.String getCustomerData() { return customerData; } /** * @see #getCustomerData() * @return Base64 decoded value or {@code null} for none * * @since 1.14 */ public byte[] decodeCustomerData() { return com.google.api.client.util.Base64.decodeBase64(customerData); } /** * @see #encodeCustomerData() * @param customerData customerData or {@code null} for none */ public Survey setCustomerData(java.lang.String customerData) { this.customerData = customerData; return this; } /** * @see #setCustomerData() * *

* The value is encoded Base64 or {@code null} for none. *

* * @since 1.14 */ public Survey encodeCustomerData(byte[] customerData) { this.customerData = com.google.api.client.util.Base64.encodeBase64URLSafeString(customerData); return this; } /** * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * @param description description or {@code null} for none */ public Survey setDescription(java.lang.String description) { this.description = description; return this; } /** * @return value or {@code null} for none */ public java.util.List getOwners() { return owners; } /** * @param owners owners or {@code null} for none */ public Survey setOwners(java.util.List owners) { this.owners = owners; return this; } /** * @return value or {@code null} for none */ public java.util.List getQuestions() { return questions; } /** * @param questions questions or {@code null} for none */ public Survey setQuestions(java.util.List questions) { this.questions = questions; return this; } /** * @return value or {@code null} for none */ public SurveyRejection getRejectionReason() { return rejectionReason; } /** * @param rejectionReason rejectionReason or {@code null} for none */ public Survey setRejectionReason(SurveyRejection rejectionReason) { this.rejectionReason = rejectionReason; return this; } /** * @return value or {@code null} for none */ public java.lang.String getState() { return state; } /** * @param state state or {@code null} for none */ public Survey setState(java.lang.String state) { this.state = state; return this; } /** * @return value or {@code null} for none */ public java.lang.String getSurveyUrlId() { return surveyUrlId; } /** * @param surveyUrlId surveyUrlId or {@code null} for none */ public Survey setSurveyUrlId(java.lang.String surveyUrlId) { this.surveyUrlId = surveyUrlId; return this; } /** * @return value or {@code null} for none */ public java.lang.String getTitle() { return title; } /** * @param title title or {@code null} for none */ public Survey setTitle(java.lang.String title) { this.title = title; return this; } /** * @return value or {@code null} for none */ public java.lang.Integer getWantedResponseCount() { return wantedResponseCount; } /** * @param wantedResponseCount wantedResponseCount or {@code null} for none */ public Survey setWantedResponseCount(java.lang.Integer wantedResponseCount) { this.wantedResponseCount = wantedResponseCount; return this; } @Override public Survey set(String fieldName, Object value) { return (Survey) super.set(fieldName, value); } @Override public Survey clone() { return (Survey) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy