com.google.datastore.v1.GqlQueryOrBuilder Maven / Gradle / Ivy
/*
* Copyright 2023 Google LLC
*
* 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
*
* https://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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/datastore/v1/query.proto
package com.google.datastore.v1;
public interface GqlQueryOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.datastore.v1.GqlQuery)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* A string of the format described
* [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
*
*
* string query_string = 1;
*
* @return The queryString.
*/
java.lang.String getQueryString();
/**
*
*
*
* A string of the format described
* [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
*
*
* string query_string = 1;
*
* @return The bytes for queryString.
*/
com.google.protobuf.ByteString getQueryStringBytes();
/**
*
*
*
* When false, the query string must not contain any literals and instead must
* bind all values. For example,
* `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
* `SELECT * FROM Kind WHERE a = @value` is.
*
*
* bool allow_literals = 2;
*
* @return The allowLiterals.
*/
boolean getAllowLiterals();
/**
*
*
*
* For each non-reserved named binding site in the query string, there must be
* a named parameter with that name, but not necessarily the inverse.
*
* Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex
* `__.*__`, and must not be `""`.
*
*
* map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
*/
int getNamedBindingsCount();
/**
*
*
*
* For each non-reserved named binding site in the query string, there must be
* a named parameter with that name, but not necessarily the inverse.
*
* Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex
* `__.*__`, and must not be `""`.
*
*
* map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
*/
boolean containsNamedBindings(java.lang.String key);
/** Use {@link #getNamedBindingsMap()} instead. */
@java.lang.Deprecated
java.util.Map getNamedBindings();
/**
*
*
*
* For each non-reserved named binding site in the query string, there must be
* a named parameter with that name, but not necessarily the inverse.
*
* Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex
* `__.*__`, and must not be `""`.
*
*
* map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
*/
java.util.Map getNamedBindingsMap();
/**
*
*
*
* For each non-reserved named binding site in the query string, there must be
* a named parameter with that name, but not necessarily the inverse.
*
* Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex
* `__.*__`, and must not be `""`.
*
*
* map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
*/
/* nullable */
com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault(
java.lang.String key,
/* nullable */
com.google.datastore.v1.GqlQueryParameter defaultValue);
/**
*
*
*
* For each non-reserved named binding site in the query string, there must be
* a named parameter with that name, but not necessarily the inverse.
*
* Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex
* `__.*__`, and must not be `""`.
*
*
* map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
*/
com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(java.lang.String key);
/**
*
*
*
* Numbered binding site @1 references the first numbered parameter,
* effectively using 1-based indexing, rather than the usual 0.
*
* For each binding site numbered i in `query_string`, there must be an i-th
* numbered parameter. The inverse must also be true.
*
*
* repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
*/
java.util.List getPositionalBindingsList();
/**
*
*
*
* Numbered binding site @1 references the first numbered parameter,
* effectively using 1-based indexing, rather than the usual 0.
*
* For each binding site numbered i in `query_string`, there must be an i-th
* numbered parameter. The inverse must also be true.
*
*
* repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
*/
com.google.datastore.v1.GqlQueryParameter getPositionalBindings(int index);
/**
*
*
*
* Numbered binding site @1 references the first numbered parameter,
* effectively using 1-based indexing, rather than the usual 0.
*
* For each binding site numbered i in `query_string`, there must be an i-th
* numbered parameter. The inverse must also be true.
*
*
* repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
*/
int getPositionalBindingsCount();
/**
*
*
*
* Numbered binding site @1 references the first numbered parameter,
* effectively using 1-based indexing, rather than the usual 0.
*
* For each binding site numbered i in `query_string`, there must be an i-th
* numbered parameter. The inverse must also be true.
*
*
* repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
*/
java.util.List extends com.google.datastore.v1.GqlQueryParameterOrBuilder>
getPositionalBindingsOrBuilderList();
/**
*
*
*
* Numbered binding site @1 references the first numbered parameter,
* effectively using 1-based indexing, rather than the usual 0.
*
* For each binding site numbered i in `query_string`, there must be an i-th
* numbered parameter. The inverse must also be true.
*
*
* repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;
*/
com.google.datastore.v1.GqlQueryParameterOrBuilder getPositionalBindingsOrBuilder(int index);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy