public static final class BundleElement.Builder extends 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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BundleElement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public BundleElement build()
Returns
buildPartial()
public BundleElement buildPartial()
Returns
clear()
public BundleElement.Builder clear()
Returns
Overrides
clearDocument()
public BundleElement.Builder clearDocument()
.google.firestore.v1.Document document = 4;
Returns
public BundleElement.Builder clearDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Returns
clearElementType()
public BundleElement.Builder clearElementType()
Returns
clearField(Descriptors.FieldDescriptor field)
public BundleElement.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public BundleElement.Builder clearMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1;
Returns
clearNamedQuery()
public BundleElement.Builder clearNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public BundleElement.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public BundleElement.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public BundleElement getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDocument()
public Document getDocument()
.google.firestore.v1.Document document = 4;
Returns
getDocumentBuilder()
public Document.Builder getDocumentBuilder()
.google.firestore.v1.Document document = 4;
Returns
public BundledDocumentMetadata getDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Returns
public BundledDocumentMetadata.Builder getDocumentMetadataBuilder()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Returns
public BundledDocumentMetadataOrBuilder getDocumentMetadataOrBuilder()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Returns
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
.google.firestore.v1.Document document = 4;
Returns
getElementTypeCase()
public BundleElement.ElementTypeCase getElementTypeCase()
Returns
public BundleMetadata getMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1;
Returns
public BundleMetadata.Builder getMetadataBuilder()
.google.firestore.bundle.BundleMetadata metadata = 1;
Returns
public BundleMetadataOrBuilder getMetadataOrBuilder()
.google.firestore.bundle.BundleMetadata metadata = 1;
Returns
getNamedQuery()
public NamedQuery getNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2;
Returns
getNamedQueryBuilder()
public NamedQuery.Builder getNamedQueryBuilder()
.google.firestore.bundle.NamedQuery named_query = 2;
Returns
getNamedQueryOrBuilder()
public NamedQueryOrBuilder getNamedQueryOrBuilder()
.google.firestore.bundle.NamedQuery named_query = 2;
Returns
hasDocument()
public boolean hasDocument()
.google.firestore.v1.Document document = 4;
Returns
Type | Description |
boolean | Whether the document field is set.
|
public boolean hasDocumentMetadata()
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Returns
Type | Description |
boolean | Whether the documentMetadata field is set.
|
public boolean hasMetadata()
.google.firestore.bundle.BundleMetadata metadata = 1;
Returns
Type | Description |
boolean | Whether the metadata field is set.
|
hasNamedQuery()
public boolean hasNamedQuery()
.google.firestore.bundle.NamedQuery named_query = 2;
Returns
Type | Description |
boolean | Whether the namedQuery field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeDocument(Document value)
public BundleElement.Builder mergeDocument(Document value)
.google.firestore.v1.Document document = 4;
Parameter
Returns
public BundleElement.Builder mergeDocumentMetadata(BundledDocumentMetadata value)
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Parameter
Returns
mergeFrom(BundleElement other)
public BundleElement.Builder mergeFrom(BundleElement other)
Parameter
Returns
public BundleElement.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BundleElement.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public BundleElement.Builder mergeMetadata(BundleMetadata value)
.google.firestore.bundle.BundleMetadata metadata = 1;
Parameter
Returns
mergeNamedQuery(NamedQuery value)
public BundleElement.Builder mergeNamedQuery(NamedQuery value)
.google.firestore.bundle.NamedQuery named_query = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BundleElement.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDocument(Document value)
public BundleElement.Builder setDocument(Document value)
.google.firestore.v1.Document document = 4;
Parameter
Returns
setDocument(Document.Builder builderForValue)
public BundleElement.Builder setDocument(Document.Builder builderForValue)
.google.firestore.v1.Document document = 4;
Parameter
Returns
public BundleElement.Builder setDocumentMetadata(BundledDocumentMetadata value)
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Parameter
Returns
public BundleElement.Builder setDocumentMetadata(BundledDocumentMetadata.Builder builderForValue)
.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BundleElement.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BundleElement.Builder setMetadata(BundleMetadata value)
.google.firestore.bundle.BundleMetadata metadata = 1;
Parameter
Returns
public BundleElement.Builder setMetadata(BundleMetadata.Builder builderForValue)
.google.firestore.bundle.BundleMetadata metadata = 1;
Parameter
Returns
setNamedQuery(NamedQuery value)
public BundleElement.Builder setNamedQuery(NamedQuery value)
.google.firestore.bundle.NamedQuery named_query = 2;
Parameter
Returns
setNamedQuery(NamedQuery.Builder builderForValue)
public BundleElement.Builder setNamedQuery(NamedQuery.Builder builderForValue)
.google.firestore.bundle.NamedQuery named_query = 2;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BundleElement.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BundleElement.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides