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()
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>
|
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;
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;
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;
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;
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;
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 |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GqlQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public GqlQuery buildPartial()
clear()
public GqlQuery.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public GqlQuery.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNamedBindings()
public GqlQuery.Builder clearNamedBindings()
clearOneof(Descriptors.OneofDescriptor oneof)
public GqlQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clearQueryString()
public GqlQuery.Builder clearQueryString()
A string of the format described
here.
string query_string = 1;
clone()
public GqlQuery.Builder clone()
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 |
---|
Name | Description |
key | String
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableNamedBindings()
public Map<String,GqlQueryParameter> getMutableNamedBindings()
Use alternate mutation accessors instead.
getNamedBindings()
public Map<String,GqlQueryParameter> getNamedBindings()
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 |
---|
Type | Description |
int | |
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;
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;
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 |
---|
Name | Description |
key | String
|
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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;
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 |
---|
Type | Description |
int | |
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;
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 |
---|
Name | Description |
index | int
|
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()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GqlQuery other)
public GqlQuery.Builder mergeFrom(GqlQuery other)
public GqlQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GqlQuery.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GqlQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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 |
---|
Name | Description |
key | String
|
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 |
---|
Name | Description |
index | int
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public GqlQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GqlQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GqlQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides