public static final class NamedQuery.Builder extends GeneratedMessage.Builder<NamedQuery.Builder> implements NamedQueryOrBuilderA Query associated with a name, created as part of the bundle file, and can be read by client SDKs once the bundle containing them is loaded.
Protobuf type google.firestore.bundle.NamedQuery
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NamedQuery.BuilderImplements
NamedQueryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public NamedQuery build()| Returns | |
|---|---|
| Type | Description |
NamedQuery |
|
buildPartial()
public NamedQuery buildPartial()| Returns | |
|---|---|
| Type | Description |
NamedQuery |
|
clear()
public NamedQuery.Builder clear()| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
clearBundledQuery()
public NamedQuery.Builder clearBundledQuery()The query saved in the bundle.
.google.firestore.bundle.BundledQuery bundled_query = 2;
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
clearName()
public NamedQuery.Builder clearName()Name of the query, such that client can use the name to load this query from bundle, and resume from when the query results are materialized into this bundle.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
This builder for chaining. |
clearReadTime()
public NamedQuery.Builder clearReadTime()The read time of the query, when it is used to build the bundle. This is useful to resume the query from the bundle, once it is loaded by client SDKs.
.google.protobuf.Timestamp read_time = 3;
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
getBundledQuery()
public BundledQuery getBundledQuery()The query saved in the bundle.
.google.firestore.bundle.BundledQuery bundled_query = 2;
| Returns | |
|---|---|
| Type | Description |
BundledQuery |
The bundledQuery. |
getBundledQueryBuilder()
public BundledQuery.Builder getBundledQueryBuilder()The query saved in the bundle.
.google.firestore.bundle.BundledQuery bundled_query = 2;
| Returns | |
|---|---|
| Type | Description |
BundledQuery.Builder |
|
getBundledQueryOrBuilder()
public BundledQueryOrBuilder getBundledQueryOrBuilder()The query saved in the bundle.
.google.firestore.bundle.BundledQuery bundled_query = 2;
| Returns | |
|---|---|
| Type | Description |
BundledQueryOrBuilder |
|
getDefaultInstanceForType()
public NamedQuery getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NamedQuery |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Name of the query, such that client can use the name to load this query from bundle, and resume from when the query results are materialized into this bundle.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Name of the query, such that client can use the name to load this query from bundle, and resume from when the query results are materialized into this bundle.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getReadTime()
public Timestamp getReadTime()The read time of the query, when it is used to build the bundle. This is useful to resume the query from the bundle, once it is loaded by client SDKs.
.google.protobuf.Timestamp read_time = 3;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The readTime. |
getReadTimeBuilder()
public Timestamp.Builder getReadTimeBuilder()The read time of the query, when it is used to build the bundle. This is useful to resume the query from the bundle, once it is loaded by client SDKs.
.google.protobuf.Timestamp read_time = 3;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getReadTimeOrBuilder()
public TimestampOrBuilder getReadTimeOrBuilder()The read time of the query, when it is used to build the bundle. This is useful to resume the query from the bundle, once it is loaded by client SDKs.
.google.protobuf.Timestamp read_time = 3;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasBundledQuery()
public boolean hasBundledQuery()The query saved in the bundle.
.google.firestore.bundle.BundledQuery bundled_query = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the bundledQuery field is set. |
hasReadTime()
public boolean hasReadTime()The read time of the query, when it is used to build the bundle. This is useful to resume the query from the bundle, once it is loaded by client SDKs.
.google.protobuf.Timestamp read_time = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the readTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBundledQuery(BundledQuery value)
public NamedQuery.Builder mergeBundledQuery(BundledQuery value)The query saved in the bundle.
.google.firestore.bundle.BundledQuery bundled_query = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
BundledQuery |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
mergeFrom(NamedQuery other)
public NamedQuery.Builder mergeFrom(NamedQuery other)| Parameter | |
|---|---|
| Name | Description |
other |
NamedQuery |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NamedQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NamedQuery.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
mergeReadTime(Timestamp value)
public NamedQuery.Builder mergeReadTime(Timestamp value)The read time of the query, when it is used to build the bundle. This is useful to resume the query from the bundle, once it is loaded by client SDKs.
.google.protobuf.Timestamp read_time = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
setBundledQuery(BundledQuery value)
public NamedQuery.Builder setBundledQuery(BundledQuery value)The query saved in the bundle.
.google.firestore.bundle.BundledQuery bundled_query = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
BundledQuery |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
setBundledQuery(BundledQuery.Builder builderForValue)
public NamedQuery.Builder setBundledQuery(BundledQuery.Builder builderForValue)The query saved in the bundle.
.google.firestore.bundle.BundledQuery bundled_query = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BundledQuery.Builder |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
setName(String value)
public NamedQuery.Builder setName(String value)Name of the query, such that client can use the name to load this query from bundle, and resume from when the query results are materialized into this bundle.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public NamedQuery.Builder setNameBytes(ByteString value)Name of the query, such that client can use the name to load this query from bundle, and resume from when the query results are materialized into this bundle.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
This builder for chaining. |
setReadTime(Timestamp value)
public NamedQuery.Builder setReadTime(Timestamp value)The read time of the query, when it is used to build the bundle. This is useful to resume the query from the bundle, once it is loaded by client SDKs.
.google.protobuf.Timestamp read_time = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|
setReadTime(Timestamp.Builder builderForValue)
public NamedQuery.Builder setReadTime(Timestamp.Builder builderForValue)The read time of the query, when it is used to build the bundle. This is useful to resume the query from the bundle, once it is loaded by client SDKs.
.google.protobuf.Timestamp read_time = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
NamedQuery.Builder |
|