public final class BundledDocumentMetadata extends GeneratedMessageV3 implements BundledDocumentMetadataOrBuilder
Metadata describing a Firestore document saved in the bundle.
Protobuf type google.firestore.bundle.BundledDocumentMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int EXISTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int QUERIES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int READ_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static BundledDocumentMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static BundledDocumentMetadata.Builder newBuilder()
public static BundledDocumentMetadata.Builder newBuilder(BundledDocumentMetadata prototype)
public static BundledDocumentMetadata parseDelimitedFrom(InputStream input)
public static BundledDocumentMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BundledDocumentMetadata parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static BundledDocumentMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BundledDocumentMetadata parseFrom(ByteString data)
public static BundledDocumentMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BundledDocumentMetadata parseFrom(CodedInputStream input)
public static BundledDocumentMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BundledDocumentMetadata parseFrom(InputStream input)
public static BundledDocumentMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BundledDocumentMetadata parseFrom(ByteBuffer data)
public static BundledDocumentMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<BundledDocumentMetadata> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public BundledDocumentMetadata getDefaultInstanceForType()
public boolean getExists()
Whether the document exists.
bool exists = 3;
Returns |
---|
Type | Description |
boolean | The exists.
|
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
public Parser<BundledDocumentMetadata> getParserForType()
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;
public Timestamp getReadTime()
The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2;
public TimestampOrBuilder getReadTimeOrBuilder()
The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2;
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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 |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public BundledDocumentMetadata.Builder newBuilderForType()
protected BundledDocumentMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public BundledDocumentMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides