Package com.google.firestore.bundle
Class BundledDocumentMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
com.google.firestore.bundle.BundledDocumentMetadata.Builder
- All Implemented Interfaces:
BundledDocumentMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BundledDocumentMetadata
public static final class BundledDocumentMetadata.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
implements BundledDocumentMetadataOrBuilder
Metadata describing a Firestore document saved in the bundle.Protobuf type
google.firestore.bundle.BundledDocumentMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllQueries(Iterable<String> values) The names of the queries in this bundle that this document matches to.addQueries(String value) The names of the queries in this bundle that this document matches to.addQueriesBytes(com.google.protobuf.ByteString value) The names of the queries in this bundle that this document matches to.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Whether the document exists.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The document key of a bundled document.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The names of the queries in this bundle that this document matches to.The snapshot version of the document data bundled.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether the document exists.getName()The document key of a bundled document.com.google.protobuf.ByteStringThe document key of a bundled document.getQueries(int index) The names of the queries in this bundle that this document matches to.com.google.protobuf.ByteStringgetQueriesBytes(int index) The names of the queries in this bundle that this document matches to.intThe names of the queries in this bundle that this document matches to.com.google.protobuf.ProtocolStringListThe names of the queries in this bundle that this document matches to.com.google.protobuf.TimestampThe snapshot version of the document data bundled.com.google.protobuf.Timestamp.BuilderThe snapshot version of the document data bundled.com.google.protobuf.TimestampOrBuilderThe snapshot version of the document data bundled.booleanThe snapshot version of the document data bundled.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(BundledDocumentMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeReadTime(com.google.protobuf.Timestamp value) The snapshot version of the document data bundled.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setExists(boolean value) Whether the document exists.The document key of a bundled document.setNameBytes(com.google.protobuf.ByteString value) The document key of a bundled document.setQueries(int index, String value) The names of the queries in this bundle that this document matches to.setReadTime(com.google.protobuf.Timestamp value) The snapshot version of the document data bundled.setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) The snapshot version of the document data bundled.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
setField
public BundledDocumentMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
clearField
public BundledDocumentMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
clearOneof
public BundledDocumentMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
setRepeatedField
public BundledDocumentMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
addRepeatedField
public BundledDocumentMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BundledDocumentMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
mergeFrom
public BundledDocumentMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BundledDocumentMetadata.Builder>- Throws:
IOException
-
getName
The document key of a bundled document.
string name = 1;- Specified by:
getNamein interfaceBundledDocumentMetadataOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The document key of a bundled document.
string name = 1;- Specified by:
getNameBytesin interfaceBundledDocumentMetadataOrBuilder- Returns:
- The bytes for name.
-
setName
The document key of a bundled document.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The document key of a bundled document.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The document key of a bundled document.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasReadTime
public boolean hasReadTime()The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2;- Specified by:
hasReadTimein interfaceBundledDocumentMetadataOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.Timestamp getReadTime()The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2;- Specified by:
getReadTimein interfaceBundledDocumentMetadataOrBuilder- Returns:
- The readTime.
-
setReadTime
The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2; -
setReadTime
public BundledDocumentMetadata.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2; -
mergeReadTime
The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2; -
clearReadTime
The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2; -
getReadTimeBuilder
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2; -
getReadTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()The snapshot version of the document data bundled.
.google.protobuf.Timestamp read_time = 2;- Specified by:
getReadTimeOrBuilderin interfaceBundledDocumentMetadataOrBuilder
-
getExists
public boolean getExists()Whether the document exists.
bool exists = 3;- Specified by:
getExistsin interfaceBundledDocumentMetadataOrBuilder- Returns:
- The exists.
-
setExists
Whether the document exists.
bool exists = 3;- Parameters:
value- The exists to set.- Returns:
- This builder for chaining.
-
clearExists
Whether the document exists.
bool exists = 3;- Returns:
- This builder for chaining.
-
getQueriesList
public com.google.protobuf.ProtocolStringList getQueriesList()The names of the queries in this bundle that this document matches to.
repeated string queries = 4;- Specified by:
getQueriesListin interfaceBundledDocumentMetadataOrBuilder- Returns:
- A list containing the queries.
-
getQueriesCount
public int getQueriesCount()The names of the queries in this bundle that this document matches to.
repeated string queries = 4;- Specified by:
getQueriesCountin interfaceBundledDocumentMetadataOrBuilder- Returns:
- The count of queries.
-
getQueries
The names of the queries in this bundle that this document matches to.
repeated string queries = 4;- Specified by:
getQueriesin interfaceBundledDocumentMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The queries at the given index.
-
getQueriesBytes
public com.google.protobuf.ByteString getQueriesBytes(int index) The names of the queries in this bundle that this document matches to.
repeated string queries = 4;- Specified by:
getQueriesBytesin interfaceBundledDocumentMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the queries at the given index.
-
setQueries
The names of the queries in this bundle that this document matches to.
repeated string queries = 4;- Parameters:
index- The index to set the value at.value- The queries to set.- Returns:
- This builder for chaining.
-
addQueries
The names of the queries in this bundle that this document matches to.
repeated string queries = 4;- Parameters:
value- The queries to add.- Returns:
- This builder for chaining.
-
addAllQueries
The names of the queries in this bundle that this document matches to.
repeated string queries = 4;- Parameters:
values- The queries to add.- Returns:
- This builder for chaining.
-
clearQueries
The names of the queries in this bundle that this document matches to.
repeated string queries = 4;- Returns:
- This builder for chaining.
-
addQueriesBytes
The names of the queries in this bundle that this document matches to.
repeated string queries = 4;- Parameters:
value- The bytes of the queries to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BundledDocumentMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-
mergeUnknownFields
public final BundledDocumentMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BundledDocumentMetadata.Builder>
-