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

com.google.api.services.datastore.model.GqlQuery 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://github.com/google/apis-client-generator/
 * (build: 2016-10-17 16:43:55 UTC)
 * on 2016-11-16 at 05:37:10 UTC 
 * Modify at your own risk.
 */

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

/**
 * A GQL query.
 *
 * 

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: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GqlQuery extends com.google.api.client.json.GenericJson { /** * When false, the query string must not contain a literal. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean allowLiteral; /** * A named argument must set field GqlQueryArg.name. No two named arguments may have the same * name. For each non-reserved named binding site in the query string, there must be a named * argument with that name, but not necessarily the inverse. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List nameArgs; /** * Numbered binding site @1 references the first numbered argument, effectively using 1-based * indexing, rather than the usual 0. A numbered argument must NOT set field GqlQueryArg.name. For * each binding site numbered i in query_string, there must be an ith numbered argument. The * inverse must also be true. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List numberArgs; /** * The query string. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String queryString; /** * When false, the query string must not contain a literal. * @return value or {@code null} for none */ public java.lang.Boolean getAllowLiteral() { return allowLiteral; } /** * When false, the query string must not contain a literal. * @param allowLiteral allowLiteral or {@code null} for none */ public GqlQuery setAllowLiteral(java.lang.Boolean allowLiteral) { this.allowLiteral = allowLiteral; return this; } /** * A named argument must set field GqlQueryArg.name. No two named arguments may have the same * name. For each non-reserved named binding site in the query string, there must be a named * argument with that name, but not necessarily the inverse. * @return value or {@code null} for none */ public java.util.List getNameArgs() { return nameArgs; } /** * A named argument must set field GqlQueryArg.name. No two named arguments may have the same * name. For each non-reserved named binding site in the query string, there must be a named * argument with that name, but not necessarily the inverse. * @param nameArgs nameArgs or {@code null} for none */ public GqlQuery setNameArgs(java.util.List nameArgs) { this.nameArgs = nameArgs; return this; } /** * Numbered binding site @1 references the first numbered argument, effectively using 1-based * indexing, rather than the usual 0. A numbered argument must NOT set field GqlQueryArg.name. For * each binding site numbered i in query_string, there must be an ith numbered argument. The * inverse must also be true. * @return value or {@code null} for none */ public java.util.List getNumberArgs() { return numberArgs; } /** * Numbered binding site @1 references the first numbered argument, effectively using 1-based * indexing, rather than the usual 0. A numbered argument must NOT set field GqlQueryArg.name. For * each binding site numbered i in query_string, there must be an ith numbered argument. The * inverse must also be true. * @param numberArgs numberArgs or {@code null} for none */ public GqlQuery setNumberArgs(java.util.List numberArgs) { this.numberArgs = numberArgs; return this; } /** * The query string. * @return value or {@code null} for none */ public java.lang.String getQueryString() { return queryString; } /** * The query string. * @param queryString queryString or {@code null} for none */ public GqlQuery setQueryString(java.lang.String queryString) { this.queryString = queryString; return this; } @Override public GqlQuery set(String fieldName, Object value) { return (GqlQuery) super.set(fieldName, value); } @Override public GqlQuery clone() { return (GqlQuery) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy