public final class BundledDocumentMetadata extends GeneratedMessageV3 implements BundledDocumentMetadataOrBuilder
Metadata describing a Firestore document saved in the bundle.
Protobuf type google.firestore.bundle.BundledDocumentMetadata
Static Fields
public static final int EXISTS_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
public static final int QUERIES_FIELD_NUMBER
Field Value
public static final int READ_TIME_FIELD_NUMBER
Field Value
Static Methods
public static BundledDocumentMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static BundledDocumentMetadata.Builder newBuilder()
Returns
public static BundledDocumentMetadata.Builder newBuilder(BundledDocumentMetadata prototype)
Parameter
Returns
public static BundledDocumentMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BundledDocumentMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BundledDocumentMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static BundledDocumentMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BundledDocumentMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static BundledDocumentMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BundledDocumentMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BundledDocumentMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BundledDocumentMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BundledDocumentMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BundledDocumentMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static BundledDocumentMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<BundledDocumentMetadata> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public BundledDocumentMetadata getDefaultInstanceForType()
Returns
public boolean getExists()
Whether the document exists.
bool exists = 3;
Returns
The document key of a bundled document.
string name = 1;
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
The document key of a bundled document.
string name = 1;
Returns
public Parser<BundledDocumentMetadata> getParserForType()
Returns
Overrides
public String getQueries(int index)
The names of the queries in this bundle that this document matches to.
repeated string queries = 4;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The queries at the given index.
|
public ByteString getQueriesBytes(int index)
The names of the queries in this bundle that this document matches to.
repeated string queries = 4;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the queries at the given index.
|
public int getQueriesCount()
The names of the queries in this bundle that this document matches to.
repeated string queries = 4;
Returns
Type | Description |
int | The count of queries.
|
public ProtocolStringList getQueriesList()
The names of the queries in this bundle that this document matches to.
repeated string queries = 4;
Returns
public Timestamp getReadTime()
The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2;
Returns
public TimestampOrBuilder getReadTimeOrBuilder()
The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2;
Returns
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasReadTime()
The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2;
Returns
Type | Description |
boolean | Whether the readTime field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public BundledDocumentMetadata.Builder newBuilderForType()
Returns
protected BundledDocumentMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public BundledDocumentMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions