public static final class BundleElement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder> 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 | Method and Description |
---|---|
BundleElement.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BundleElement |
build() |
BundleElement |
buildPartial() |
BundleElement.Builder |
clear() |
BundleElement.Builder |
clearDocument()
.google.firestore.v1.Document document = 4; |
BundleElement.Builder |
clearDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3; |
BundleElement.Builder |
clearElementType() |
BundleElement.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BundleElement.Builder |
clearMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1; |
BundleElement.Builder |
clearNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2; |
BundleElement.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BundleElement.Builder |
clone() |
BundleElement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Document |
getDocument()
.google.firestore.v1.Document document = 4; |
Document.Builder |
getDocumentBuilder()
.google.firestore.v1.Document document = 4; |
BundledDocumentMetadata |
getDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3; |
BundledDocumentMetadata.Builder |
getDocumentMetadataBuilder()
.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; |
BundleMetadata.Builder |
getMetadataBuilder()
.google.firestore.bundle.BundleMetadata metadata = 1; |
BundleMetadataOrBuilder |
getMetadataOrBuilder()
.google.firestore.bundle.BundleMetadata metadata = 1; |
NamedQuery |
getNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2; |
NamedQuery.Builder |
getNamedQueryBuilder()
.google.firestore.bundle.NamedQuery named_query = 2; |
NamedQueryOrBuilder |
getNamedQueryOrBuilder()
.google.firestore.bundle.NamedQuery named_query = 2; |
boolean |
hasDocument()
.google.firestore.v1.Document document = 4; |
boolean |
hasDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3; |
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() |
BundleElement.Builder |
mergeDocument(Document value)
.google.firestore.v1.Document document = 4; |
BundleElement.Builder |
mergeDocumentMetadata(BundledDocumentMetadata value)
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3; |
BundleElement.Builder |
mergeFrom(BundleElement other) |
BundleElement.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BundleElement.Builder |
mergeFrom(com.google.protobuf.Message other) |
BundleElement.Builder |
mergeMetadata(BundleMetadata value)
.google.firestore.bundle.BundleMetadata metadata = 1; |
BundleElement.Builder |
mergeNamedQuery(NamedQuery value)
.google.firestore.bundle.NamedQuery named_query = 2; |
BundleElement.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BundleElement.Builder |
setDocument(Document.Builder builderForValue)
.google.firestore.v1.Document document = 4; |
BundleElement.Builder |
setDocument(Document value)
.google.firestore.v1.Document document = 4; |
BundleElement.Builder |
setDocumentMetadata(BundledDocumentMetadata.Builder builderForValue)
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3; |
BundleElement.Builder |
setDocumentMetadata(BundledDocumentMetadata value)
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3; |
BundleElement.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BundleElement.Builder |
setMetadata(BundleMetadata.Builder builderForValue)
.google.firestore.bundle.BundleMetadata metadata = 1; |
BundleElement.Builder |
setMetadata(BundleMetadata value)
.google.firestore.bundle.BundleMetadata metadata = 1; |
BundleElement.Builder |
setNamedQuery(NamedQuery.Builder builderForValue)
.google.firestore.bundle.NamedQuery named_query = 2; |
BundleElement.Builder |
setNamedQuery(NamedQuery value)
.google.firestore.bundle.NamedQuery named_query = 2; |
BundleElement.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BundleElement.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public BundleElement.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public BundleElement getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public BundleElement build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public BundleElement buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public BundleElement.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public BundleElement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public BundleElement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public BundleElement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public BundleElement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public BundleElement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public BundleElement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BundleElement.Builder>
public BundleElement.Builder mergeFrom(BundleElement other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public BundleElement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BundleElement.Builder>
IOException
public BundleElement.ElementTypeCase getElementTypeCase()
getElementTypeCase
in interface BundleElementOrBuilder
public BundleElement.Builder clearElementType()
public boolean hasMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1;
hasMetadata
in interface BundleElementOrBuilder
public BundleMetadata getMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1;
getMetadata
in interface BundleElementOrBuilder
public BundleElement.Builder setMetadata(BundleMetadata value)
.google.firestore.bundle.BundleMetadata metadata = 1;
public BundleElement.Builder setMetadata(BundleMetadata.Builder builderForValue)
.google.firestore.bundle.BundleMetadata metadata = 1;
public BundleElement.Builder mergeMetadata(BundleMetadata value)
.google.firestore.bundle.BundleMetadata metadata = 1;
public BundleElement.Builder clearMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1;
public BundleMetadata.Builder getMetadataBuilder()
.google.firestore.bundle.BundleMetadata metadata = 1;
public BundleMetadataOrBuilder getMetadataOrBuilder()
.google.firestore.bundle.BundleMetadata metadata = 1;
getMetadataOrBuilder
in interface BundleElementOrBuilder
public boolean hasNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2;
hasNamedQuery
in interface BundleElementOrBuilder
public NamedQuery getNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2;
getNamedQuery
in interface BundleElementOrBuilder
public BundleElement.Builder setNamedQuery(NamedQuery value)
.google.firestore.bundle.NamedQuery named_query = 2;
public BundleElement.Builder setNamedQuery(NamedQuery.Builder builderForValue)
.google.firestore.bundle.NamedQuery named_query = 2;
public BundleElement.Builder mergeNamedQuery(NamedQuery value)
.google.firestore.bundle.NamedQuery named_query = 2;
public BundleElement.Builder clearNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2;
public NamedQuery.Builder getNamedQueryBuilder()
.google.firestore.bundle.NamedQuery named_query = 2;
public NamedQueryOrBuilder getNamedQueryOrBuilder()
.google.firestore.bundle.NamedQuery named_query = 2;
getNamedQueryOrBuilder
in interface BundleElementOrBuilder
public boolean hasDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
hasDocumentMetadata
in interface BundleElementOrBuilder
public BundledDocumentMetadata getDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
getDocumentMetadata
in interface BundleElementOrBuilder
public BundleElement.Builder setDocumentMetadata(BundledDocumentMetadata value)
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
public BundleElement.Builder setDocumentMetadata(BundledDocumentMetadata.Builder builderForValue)
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
public BundleElement.Builder mergeDocumentMetadata(BundledDocumentMetadata value)
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
public BundleElement.Builder clearDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
public BundledDocumentMetadata.Builder getDocumentMetadataBuilder()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
public BundledDocumentMetadataOrBuilder getDocumentMetadataOrBuilder()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
getDocumentMetadataOrBuilder
in interface BundleElementOrBuilder
public boolean hasDocument()
.google.firestore.v1.Document document = 4;
hasDocument
in interface BundleElementOrBuilder
public Document getDocument()
.google.firestore.v1.Document document = 4;
getDocument
in interface BundleElementOrBuilder
public BundleElement.Builder setDocument(Document value)
.google.firestore.v1.Document document = 4;
public BundleElement.Builder setDocument(Document.Builder builderForValue)
.google.firestore.v1.Document document = 4;
public BundleElement.Builder mergeDocument(Document value)
.google.firestore.v1.Document document = 4;
public BundleElement.Builder clearDocument()
.google.firestore.v1.Document document = 4;
public Document.Builder getDocumentBuilder()
.google.firestore.v1.Document document = 4;
public DocumentOrBuilder getDocumentOrBuilder()
.google.firestore.v1.Document document = 4;
getDocumentOrBuilder
in interface BundleElementOrBuilder
public final BundleElement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
public final BundleElement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleElement.Builder>
Copyright © 2023 Google LLC. All rights reserved.