public static final class GqlQuery.Builder extends GeneratedMessageV3.Builder<GqlQuery.Builder> implements GqlQueryOrBuilder
A GQL
query.
Protobuf type google.datastore.v1.GqlQuery
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllPositionalBindings(Iterable<? extends GqlQueryParameter> values)
public GqlQuery.Builder addAllPositionalBindings(Iterable<? extends GqlQueryParameter> values)
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 |
values | Iterable<? extends com.google.datastore.v1.GqlQueryParameter>
|
Returns
addPositionalBindings(GqlQueryParameter value)
public GqlQuery.Builder addPositionalBindings(GqlQueryParameter value)
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
Returns
addPositionalBindings(GqlQueryParameter.Builder builderForValue)
public GqlQuery.Builder addPositionalBindings(GqlQueryParameter.Builder builderForValue)
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
Returns
addPositionalBindings(int index, GqlQueryParameter value)
public GqlQuery.Builder addPositionalBindings(int index, GqlQueryParameter value)
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;
Parameters
Returns
addPositionalBindings(int index, GqlQueryParameter.Builder builderForValue)
public GqlQuery.Builder addPositionalBindings(int index, GqlQueryParameter.Builder builderForValue)
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;
Parameters
Returns
addPositionalBindingsBuilder()
public GqlQueryParameter.Builder addPositionalBindingsBuilder()
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
addPositionalBindingsBuilder(int index)
public GqlQueryParameter.Builder addPositionalBindingsBuilder(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;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GqlQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public GqlQuery buildPartial()
Returns
clear()
public GqlQuery.Builder clear()
Returns
Overrides
clearAllowLiterals()
public GqlQuery.Builder clearAllowLiterals()
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
clearField(Descriptors.FieldDescriptor field)
public GqlQuery.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNamedBindings()
public GqlQuery.Builder clearNamedBindings()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public GqlQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPositionalBindings()
public GqlQuery.Builder clearPositionalBindings()
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
clearQueryString()
public GqlQuery.Builder clearQueryString()
A string of the format described
here.
string query_string = 1;
Returns
clone()
public GqlQuery.Builder clone()
Returns
Overrides
containsNamedBindings(String key)
public boolean containsNamedBindings(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_$
, must not match regex
__.__
, and must not be ""
.
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
Parameter
Returns
getAllowLiterals()
public 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;
Returns
Type | Description |
boolean | The allowLiterals.
|
getDefaultInstanceForType()
public GqlQuery getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMutableNamedBindings()
public Map<String,GqlQueryParameter> getMutableNamedBindings()
Use alternate mutation accessors instead.
Returns
getNamedBindings()
public Map<String,GqlQueryParameter> getNamedBindings()
Returns
getNamedBindingsCount()
public 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_$
, must not match regex
__.__
, and must not be ""
.
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
Returns
getNamedBindingsMap()
public Map<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
getNamedBindingsOrDefault(String key, GqlQueryParameter defaultValue)
public GqlQueryParameter getNamedBindingsOrDefault(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_$
, must not match regex
__.__
, and must not be ""
.
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
Parameters
Returns
getNamedBindingsOrThrow(String key)
public GqlQueryParameter getNamedBindingsOrThrow(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_$
, must not match regex
__.__
, and must not be ""
.
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
Parameter
Returns
getPositionalBindings(int index)
public 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;
Parameter
Returns
getPositionalBindingsBuilder(int index)
public GqlQueryParameter.Builder getPositionalBindingsBuilder(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;
Parameter
Returns
getPositionalBindingsBuilderList()
public List<GqlQueryParameter.Builder> getPositionalBindingsBuilderList()
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
getPositionalBindingsCount()
public 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;
Returns
getPositionalBindingsList()
public 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;
Returns
getPositionalBindingsOrBuilder(int index)
public 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;
Parameter
Returns
getPositionalBindingsOrBuilderList()
public 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;
Returns
Type | Description |
List<? extends com.google.datastore.v1.GqlQueryParameterOrBuilder> | |
getQueryString()
public String getQueryString()
A string of the format described
here.
string query_string = 1;
Returns
Type | Description |
String | The queryString.
|
getQueryStringBytes()
public ByteString getQueryStringBytes()
A string of the format described
here.
string query_string = 1;
Returns
Type | Description |
ByteString | The bytes for queryString.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GqlQuery other)
public GqlQuery.Builder mergeFrom(GqlQuery other)
Parameter
Returns
public GqlQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GqlQuery.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GqlQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllNamedBindings(Map<String,GqlQueryParameter> values)
public GqlQuery.Builder putAllNamedBindings(Map<String,GqlQueryParameter> values)
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
Returns
putNamedBindings(String key, GqlQueryParameter value)
public GqlQuery.Builder putNamedBindings(String key, GqlQueryParameter value)
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
Returns
removeNamedBindings(String key)
public GqlQuery.Builder removeNamedBindings(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_$
, must not match regex
__.__
, and must not be ""
.
map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;
Parameter
Returns
removePositionalBindings(int index)
public GqlQuery.Builder removePositionalBindings(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;
Parameter
Returns
setAllowLiterals(boolean value)
public GqlQuery.Builder setAllowLiterals(boolean value)
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;
Parameter
Name | Description |
value | boolean
The allowLiterals to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public GqlQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setPositionalBindings(int index, GqlQueryParameter value)
public GqlQuery.Builder setPositionalBindings(int index, GqlQueryParameter value)
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;
Parameters
Returns
setPositionalBindings(int index, GqlQueryParameter.Builder builderForValue)
public GqlQuery.Builder setPositionalBindings(int index, GqlQueryParameter.Builder builderForValue)
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;
Parameters
Returns
setQueryString(String value)
public GqlQuery.Builder setQueryString(String value)
A string of the format described
here.
string query_string = 1;
Parameter
Name | Description |
value | String
The queryString to set.
|
Returns
setQueryStringBytes(ByteString value)
public GqlQuery.Builder setQueryStringBytes(ByteString value)
A string of the format described
here.
string query_string = 1;
Parameter
Name | Description |
value | ByteString
The bytes for queryString to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GqlQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GqlQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides