Interface GqlQueryOrBuilder (2.32.3)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface GqlQueryOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
containsNamedBindings(String key)
publicabstractbooleancontainsNamedBindings(Stringkey)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_$, must not match regex
__.__, and must not be "".
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAllowLiterals()
publicabstractbooleangetAllowLiterals() 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;
| Returns | |
|---|---|
| Type | Description |
boolean |
The allowLiterals. |
getNamedBindings() (deprecated)
publicabstractMap<String,GqlQueryParameter>getNamedBindings()Use #getNamedBindingsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,GqlQueryParameter> |
|
getNamedBindingsCount()
publicabstractintgetNamedBindingsCount()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_$, must not match regex
__.__, and must not be "".
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
| Returns | |
|---|---|
| Type | Description |
int |
|
getNamedBindingsMap()
publicabstractMap<String,GqlQueryParameter>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_$, must not match regex
__.__, and must not be "".
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
| Returns | |
|---|---|
| Type | Description |
Map<String,GqlQueryParameter> |
|
getNamedBindingsOrDefault(String key, GqlQueryParameter defaultValue)
publicabstractGqlQueryParametergetNamedBindingsOrDefault(Stringkey,GqlQueryParameterdefaultValue)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_$, must not match regex
__.__, and must not be "".
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
GqlQueryParameter |
| Returns | |
|---|---|
| Type | Description |
GqlQueryParameter |
|
getNamedBindingsOrThrow(String key)
publicabstractGqlQueryParametergetNamedBindingsOrThrow(Stringkey)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_$, must not match regex
__.__, and must not be "".
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
GqlQueryParameter |
|
getPositionalBindings(int index)
publicabstractGqlQueryParametergetPositionalBindings(intindex)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GqlQueryParameter |
|
getPositionalBindingsCount()
publicabstractintgetPositionalBindingsCount()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;
| Returns | |
|---|---|
| Type | Description |
int |
|
getPositionalBindingsList()
publicabstractList<GqlQueryParameter>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;
| Returns | |
|---|---|
| Type | Description |
List<GqlQueryParameter> |
|
getPositionalBindingsOrBuilder(int index)
publicabstractGqlQueryParameterOrBuildergetPositionalBindingsOrBuilder(intindex)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GqlQueryParameterOrBuilder |
|
getPositionalBindingsOrBuilderList()
publicabstractList<?extendsGqlQueryParameterOrBuilder>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;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.datastore.v1.GqlQueryParameterOrBuilder> |
|
getQueryString()
publicabstractStringgetQueryString()A string of the format described here.
string query_string = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The queryString. |
getQueryStringBytes()
publicabstractByteStringgetQueryStringBytes()A string of the format described here.
string query_string = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for queryString. |