public final class BundleElement extends GeneratedMessageV3 implements BundleElementOrBuilder
A Firestore bundle is a length-prefixed stream of JSON representations of
BundleElement
.
Only one BundleMetadata
is expected, and it should be the first element.
The named queries follow after metadata
. Every document_metadata
is
immediately followed by a document
.
Protobuf type google.firestore.bundle.BundleElement
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > BundleElementImplements
BundleElementOrBuilderStatic Fields
DOCUMENT_FIELD_NUMBER
public static final int DOCUMENT_FIELD_NUMBER
Type | Description |
int |
DOCUMENT_METADATA_FIELD_NUMBER
public static final int DOCUMENT_METADATA_FIELD_NUMBER
Type | Description |
int |
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
Type | Description |
int |
NAMED_QUERY_FIELD_NUMBER
public static final int NAMED_QUERY_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static BundleElement getDefaultInstance()
Type | Description |
BundleElement |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static BundleElement.Builder newBuilder()
Type | Description |
BundleElement.Builder |
newBuilder(BundleElement prototype)
public static BundleElement.Builder newBuilder(BundleElement prototype)
Name | Description |
prototype | BundleElement |
Type | Description |
BundleElement.Builder |
parseDelimitedFrom(InputStream input)
public static BundleElement parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
BundleElement |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BundleElement parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
BundleElement |
Type | Description |
IOException |
parseFrom(byte[] data)
public static BundleElement parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
BundleElement |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BundleElement parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
BundleElement |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static BundleElement parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
BundleElement |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BundleElement parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
BundleElement |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static BundleElement parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
BundleElement |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BundleElement parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
BundleElement |
Type | Description |
IOException |
parseFrom(InputStream input)
public static BundleElement parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
BundleElement |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BundleElement parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
BundleElement |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static BundleElement parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
BundleElement |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BundleElement parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
BundleElement |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<BundleElement> parser()
Type | Description |
Parser<BundleElement> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public BundleElement getDefaultInstanceForType()
Type | Description |
BundleElement |
getDocument()
public Document getDocument()
.google.firestore.v1.Document document = 4;
Type | Description |
Document | The document. |
getDocumentMetadata()
public BundledDocumentMetadata getDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Type | Description |
BundledDocumentMetadata | The documentMetadata. |
getDocumentMetadataOrBuilder()
public BundledDocumentMetadataOrBuilder getDocumentMetadataOrBuilder()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Type | Description |
BundledDocumentMetadataOrBuilder |
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
.google.firestore.v1.Document document = 4;
Type | Description |
DocumentOrBuilder |
getElementTypeCase()
public BundleElement.ElementTypeCase getElementTypeCase()
Type | Description |
BundleElement.ElementTypeCase |
getMetadata()
public BundleMetadata getMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1;
Type | Description |
BundleMetadata | The metadata. |
getMetadataOrBuilder()
public BundleMetadataOrBuilder getMetadataOrBuilder()
.google.firestore.bundle.BundleMetadata metadata = 1;
Type | Description |
BundleMetadataOrBuilder |
getNamedQuery()
public NamedQuery getNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2;
Type | Description |
NamedQuery | The namedQuery. |
getNamedQueryOrBuilder()
public NamedQueryOrBuilder getNamedQueryOrBuilder()
.google.firestore.bundle.NamedQuery named_query = 2;
Type | Description |
NamedQueryOrBuilder |
getParserForType()
public Parser<BundleElement> getParserForType()
Type | Description |
Parser<BundleElement> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasDocument()
public boolean hasDocument()
.google.firestore.v1.Document document = 4;
Type | Description |
boolean | Whether the document field is set. |
hasDocumentMetadata()
public boolean hasDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Type | Description |
boolean | Whether the documentMetadata field is set. |
hasMetadata()
public boolean hasMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1;
Type | Description |
boolean | Whether the metadata field is set. |
hasNamedQuery()
public boolean hasNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2;
Type | Description |
boolean | Whether the namedQuery field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public BundleElement.Builder newBuilderForType()
Type | Description |
BundleElement.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BundleElement.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
BundleElement.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public BundleElement.Builder toBuilder()
Type | Description |
BundleElement.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |