public final class NamedQuery extends GeneratedMessageV3 implements NamedQueryOrBuilder
A 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
Static Fields
BUNDLED_QUERY_FIELD_NUMBER
public static final int BUNDLED_QUERY_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
READ_TIME_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static NamedQuery getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static NamedQuery.Builder newBuilder()
Returns
newBuilder(NamedQuery prototype)
public static NamedQuery.Builder newBuilder(NamedQuery prototype)
Parameter
Returns
public static NamedQuery parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static NamedQuery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static NamedQuery parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NamedQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static NamedQuery parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NamedQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NamedQuery parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static NamedQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NamedQuery parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static NamedQuery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static NamedQuery parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NamedQuery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<NamedQuery> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBundledQuery()
public BundledQuery getBundledQuery()
The query saved in the bundle.
.google.firestore.bundle.BundledQuery bundled_query = 2;
Returns
getBundledQueryOrBuilder()
public BundledQueryOrBuilder getBundledQueryOrBuilder()
The query saved in the bundle.
.google.firestore.bundle.BundledQuery bundled_query = 2;
Returns
getDefaultInstanceForType()
public NamedQuery getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<NamedQuery> getParserForType()
Returns
Overrides
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
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
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public NamedQuery.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected NamedQuery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public NamedQuery.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions