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

com.google.api.services.datastore.model.Property Maven / Gradle / Ivy

There is a newer version: v1-rev20241204-2.0.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-04-08 17:16:44 UTC)
 * on 2016-04-27 at 02:41:28 UTC 
 * Modify at your own risk.
 */

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

/**
 * An entity property.
 *
 * 

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 Google Cloud Datastore 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 Property extends com.google.api.client.json.GenericJson { /** * If this property contains a list of values. Input values may explicitly set multi to false, but * otherwise false is always represented by omitting multi. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean multi; /** * The value(s) of the property. When multi is false there is always exactly one value. When multi * is true there are always one or more values. Each value can have only one value property * populated. For example, you cannot have a values list of { values: [ { integerValue: 22, * stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { * stringValue: "a" } ] }. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List values; /** * If this property contains a list of values. Input values may explicitly set multi to false, but * otherwise false is always represented by omitting multi. * @return value or {@code null} for none */ public java.lang.Boolean getMulti() { return multi; } /** * If this property contains a list of values. Input values may explicitly set multi to false, but * otherwise false is always represented by omitting multi. * @param multi multi or {@code null} for none */ public Property setMulti(java.lang.Boolean multi) { this.multi = multi; return this; } /** * The value(s) of the property. When multi is false there is always exactly one value. When multi * is true there are always one or more values. Each value can have only one value property * populated. For example, you cannot have a values list of { values: [ { integerValue: 22, * stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { * stringValue: "a" } ] }. * @return value or {@code null} for none */ public java.util.List getValues() { return values; } /** * The value(s) of the property. When multi is false there is always exactly one value. When multi * is true there are always one or more values. Each value can have only one value property * populated. For example, you cannot have a values list of { values: [ { integerValue: 22, * stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { * stringValue: "a" } ] }. * @param values values or {@code null} for none */ public Property setValues(java.util.List values) { this.values = values; return this; } @Override public Property set(String fieldName, Object value) { return (Property) super.set(fieldName, value); } @Override public Property clone() { return (Property) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy