public final class GqlQuery extends GeneratedMessageV3 implements GqlQueryOrBuilder
A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).Protobuf type
google.datastore.v1.GqlQuery| Modifier and Type | Class and Description |
|---|---|
static class |
GqlQuery.Builder
A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_LITERALS_FIELD_NUMBER |
static int |
NAMED_BINDINGS_FIELD_NUMBER |
static int |
POSITIONAL_BINDINGS_FIELD_NUMBER |
static int |
QUERY_STRING_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
containsNamedBindings(java.lang.String key)
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.
|
boolean |
equals(java.lang.Object obj) |
boolean |
getAllowLiterals()
When false, the query string must not contain any literals and instead must
bind all values.
|
static GqlQuery |
getDefaultInstance() |
GqlQuery |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
java.util.Map<java.lang.String,GqlQueryParameter> |
getNamedBindings()
Deprecated.
|
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.
|
java.util.Map<java.lang.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.
|
GqlQueryParameter |
getNamedBindingsOrDefault(java.lang.String key,
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.
|
GqlQueryParameter |
getNamedBindingsOrThrow(java.lang.String key)
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.
|
Parser<GqlQuery> |
getParserForType() |
GqlQueryParameter |
getPositionalBindings(int index)
Numbered binding site @1 references the first numbered parameter,
effectively using 1-based indexing, rather than the usual 0.
|
int |
getPositionalBindingsCount()
Numbered binding site @1 references the first numbered parameter,
effectively using 1-based indexing, rather than the usual 0.
|
java.util.List<GqlQueryParameter> |
getPositionalBindingsList()
Numbered binding site @1 references the first numbered parameter,
effectively using 1-based indexing, rather than the usual 0.
|
GqlQueryParameterOrBuilder |
getPositionalBindingsOrBuilder(int index)
Numbered binding site @1 references the first numbered parameter,
effectively using 1-based indexing, rather than the usual 0.
|
java.util.List<? extends GqlQueryParameterOrBuilder> |
getPositionalBindingsOrBuilderList()
Numbered binding site @1 references the first numbered parameter,
effectively using 1-based indexing, rather than the usual 0.
|
java.lang.String |
getQueryString()
A string of the format described
[here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
ByteString |
getQueryStringBytes()
A string of the format described
[here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static GqlQuery.Builder |
newBuilder() |
static GqlQuery.Builder |
newBuilder(GqlQuery prototype) |
GqlQuery.Builder |
newBuilderForType() |
protected GqlQuery.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static GqlQuery |
parseDelimitedFrom(java.io.InputStream input) |
static GqlQuery |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static GqlQuery |
parseFrom(byte[] data) |
static GqlQuery |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static GqlQuery |
parseFrom(java.nio.ByteBuffer data) |
static GqlQuery |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static GqlQuery |
parseFrom(ByteString data) |
static GqlQuery |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static GqlQuery |
parseFrom(CodedInputStream input) |
static GqlQuery |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static GqlQuery |
parseFrom(java.io.InputStream input) |
static GqlQuery |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<GqlQuery> |
parser() |
GqlQuery.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int QUERY_STRING_FIELD_NUMBER
public static final int ALLOW_LITERALS_FIELD_NUMBER
public static final int NAMED_BINDINGS_FIELD_NUMBER
public static final int POSITIONAL_BINDINGS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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;getQueryString in interface GqlQueryOrBuilderpublic ByteString getQueryStringBytes()
A string of the format described [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
string query_string = 1;getQueryStringBytes in interface GqlQueryOrBuilderpublic boolean getAllowLiterals()
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;getAllowLiterals in interface GqlQueryOrBuilderpublic int getNamedBindingsCount()
GqlQueryOrBuilderFor 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;getNamedBindingsCount in interface GqlQueryOrBuilderpublic boolean containsNamedBindings(java.lang.String key)
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;containsNamedBindings in interface GqlQueryOrBuilder@Deprecated public java.util.Map<java.lang.String,GqlQueryParameter> getNamedBindings()
getNamedBindingsMap() instead.getNamedBindings in interface GqlQueryOrBuilderpublic java.util.Map<java.lang.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_$][A-Za-z_$0-9]*`, must not match regex `__.*__`, and must not be `""`.
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;getNamedBindingsMap in interface GqlQueryOrBuilderpublic GqlQueryParameter getNamedBindingsOrDefault(java.lang.String key, 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;getNamedBindingsOrDefault in interface GqlQueryOrBuilderpublic GqlQueryParameter getNamedBindingsOrThrow(java.lang.String key)
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;getNamedBindingsOrThrow in interface GqlQueryOrBuilderpublic java.util.List<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;getPositionalBindingsList in interface GqlQueryOrBuilderpublic java.util.List<? extends 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;getPositionalBindingsOrBuilderList in interface GqlQueryOrBuilderpublic 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;getPositionalBindingsCount in interface GqlQueryOrBuilderpublic 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;getPositionalBindings in interface GqlQueryOrBuilderpublic GqlQueryParameterOrBuilder getPositionalBindingsOrBuilder(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;getPositionalBindingsOrBuilder in interface GqlQueryOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static GqlQuery parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GqlQuery parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GqlQuery parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GqlQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GqlQuery parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GqlQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GqlQuery parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static GqlQuery parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static GqlQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static GqlQuery parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static GqlQuery parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static GqlQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic GqlQuery.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static GqlQuery.Builder newBuilder()
public static GqlQuery.Builder newBuilder(GqlQuery prototype)
public GqlQuery.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected GqlQuery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static GqlQuery getDefaultInstance()
public Parser<GqlQuery> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public GqlQuery getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder