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

com.google.api.services.datastore.model.GqlQueryArg 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;

/**
 * A binding argument for 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: * http://code.google.com/p/google-http-java-client/wiki/JSON *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GqlQueryArg extends com.google.api.client.json.GenericJson { /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String cursor; /** * Must match regex "[A-Za-z_$][A-Za-z_$0-9]*". Must not match regex "__.*__". Must not be "". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private Value value; /** * @see #decodeCursor() * @return value or {@code null} for none */ public java.lang.String getCursor() { return cursor; } /** * @see #getCursor() * @return Base64 decoded value or {@code null} for none * * @since 1.14 */ public byte[] decodeCursor() { return com.google.api.client.util.Base64.decodeBase64(cursor); } /** * @see #encodeCursor() * @param cursor cursor or {@code null} for none */ public GqlQueryArg setCursor(java.lang.String cursor) { this.cursor = cursor; return this; } /** * @see #setCursor() * *

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

* * @since 1.14 */ public GqlQueryArg encodeCursor(byte[] cursor) { this.cursor = com.google.api.client.util.Base64.encodeBase64URLSafeString(cursor); return this; } /** * Must match regex "[A-Za-z_$][A-Za-z_$0-9]*". Must not match regex "__.*__". Must not be "". * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Must match regex "[A-Za-z_$][A-Za-z_$0-9]*". Must not match regex "__.*__". Must not be "". * @param name name or {@code null} for none */ public GqlQueryArg setName(java.lang.String name) { this.name = name; return this; } /** * @return value or {@code null} for none */ public Value getValue() { return value; } /** * @param value value or {@code null} for none */ public GqlQueryArg setValue(Value value) { this.value = value; return this; } @Override public GqlQueryArg set(String fieldName, Object value) { return (GqlQueryArg) super.set(fieldName, value); } @Override public GqlQueryArg clone() { return (GqlQueryArg) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy