public final class BundleElement extends com.google.protobuf.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| Modifier and Type | Class and Description |
|---|---|
static class |
BundleElement.Builder
A Firestore bundle is a length-prefixed stream of JSON representations of
`BundleElement`.
|
static class |
BundleElement.ElementTypeCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DOCUMENT_FIELD_NUMBER |
static int |
DOCUMENT_METADATA_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
NAMED_QUERY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static BundleElement |
getDefaultInstance() |
BundleElement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Document |
getDocument()
.google.firestore.v1.Document document = 4; |
BundledDocumentMetadata |
getDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3; |
BundledDocumentMetadataOrBuilder |
getDocumentMetadataOrBuilder()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3; |
DocumentOrBuilder |
getDocumentOrBuilder()
.google.firestore.v1.Document document = 4; |
BundleElement.ElementTypeCase |
getElementTypeCase() |
BundleMetadata |
getMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1; |
BundleMetadataOrBuilder |
getMetadataOrBuilder()
.google.firestore.bundle.BundleMetadata metadata = 1; |
NamedQuery |
getNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2; |
NamedQueryOrBuilder |
getNamedQueryOrBuilder()
.google.firestore.bundle.NamedQuery named_query = 2; |
com.google.protobuf.Parser<BundleElement> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDocument()
.google.firestore.v1.Document document = 4; |
boolean |
hasDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3; |
int |
hashCode() |
boolean |
hasMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1; |
boolean |
hasNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static BundleElement.Builder |
newBuilder() |
static BundleElement.Builder |
newBuilder(BundleElement prototype) |
BundleElement.Builder |
newBuilderForType() |
protected BundleElement.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static BundleElement |
parseDelimitedFrom(InputStream input) |
static BundleElement |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BundleElement |
parseFrom(byte[] data) |
static BundleElement |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BundleElement |
parseFrom(ByteBuffer data) |
static BundleElement |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BundleElement |
parseFrom(com.google.protobuf.ByteString data) |
static BundleElement |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BundleElement |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BundleElement |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BundleElement |
parseFrom(InputStream input) |
static BundleElement |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BundleElement> |
parser() |
BundleElement.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int METADATA_FIELD_NUMBER
public static final int NAMED_QUERY_FIELD_NUMBER
public static final int DOCUMENT_METADATA_FIELD_NUMBER
public static final int DOCUMENT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public BundleElement.ElementTypeCase getElementTypeCase()
getElementTypeCase in interface BundleElementOrBuilderpublic boolean hasMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1;hasMetadata in interface BundleElementOrBuilderpublic BundleMetadata getMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1;getMetadata in interface BundleElementOrBuilderpublic BundleMetadataOrBuilder getMetadataOrBuilder()
.google.firestore.bundle.BundleMetadata metadata = 1;getMetadataOrBuilder in interface BundleElementOrBuilderpublic boolean hasNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2;hasNamedQuery in interface BundleElementOrBuilderpublic NamedQuery getNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2;getNamedQuery in interface BundleElementOrBuilderpublic NamedQueryOrBuilder getNamedQueryOrBuilder()
.google.firestore.bundle.NamedQuery named_query = 2;getNamedQueryOrBuilder in interface BundleElementOrBuilderpublic boolean hasDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;hasDocumentMetadata in interface BundleElementOrBuilderpublic BundledDocumentMetadata getDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;getDocumentMetadata in interface BundleElementOrBuilderpublic BundledDocumentMetadataOrBuilder getDocumentMetadataOrBuilder()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;getDocumentMetadataOrBuilder in interface BundleElementOrBuilderpublic boolean hasDocument()
.google.firestore.v1.Document document = 4;hasDocument in interface BundleElementOrBuilderpublic Document getDocument()
.google.firestore.v1.Document document = 4;getDocument in interface BundleElementOrBuilderpublic DocumentOrBuilder getDocumentOrBuilder()
.google.firestore.v1.Document document = 4;getDocumentOrBuilder in interface BundleElementOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static BundleElement parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BundleElement parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BundleElement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BundleElement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BundleElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BundleElement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BundleElement parseFrom(InputStream input) throws IOException
IOExceptionpublic static BundleElement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BundleElement parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static BundleElement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BundleElement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static BundleElement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic BundleElement.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static BundleElement.Builder newBuilder()
public static BundleElement.Builder newBuilder(BundleElement prototype)
public BundleElement.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected BundleElement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static BundleElement getDefaultInstance()
public static com.google.protobuf.Parser<BundleElement> parser()
public com.google.protobuf.Parser<BundleElement> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public BundleElement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.