public static final class BundleMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder> implements BundleMetadataOrBuilder
Metadata describing the bundle file/stream.Protobuf type
google.firestore.bundle.BundleMetadata| Modifier and Type | Method and Description |
|---|---|
BundleMetadata.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BundleMetadata |
build() |
BundleMetadata |
buildPartial() |
BundleMetadata.Builder |
clear() |
BundleMetadata.Builder |
clearCreateTime()
Time at which the documents snapshot is taken for this bundle.
|
BundleMetadata.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BundleMetadata.Builder |
clearId()
The ID of the bundle.
|
BundleMetadata.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BundleMetadata.Builder |
clearTotalBytes()
The size of the bundle in bytes, excluding this `BundleMetadata`.
|
BundleMetadata.Builder |
clearTotalDocuments()
The number of documents in the bundle.
|
BundleMetadata.Builder |
clearVersion()
The schema version of the bundle.
|
BundleMetadata.Builder |
clone() |
com.google.protobuf.Timestamp |
getCreateTime()
Time at which the documents snapshot is taken for this bundle.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Time at which the documents snapshot is taken for this bundle.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Time at which the documents snapshot is taken for this bundle.
|
BundleMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getId()
The ID of the bundle.
|
com.google.protobuf.ByteString |
getIdBytes()
The ID of the bundle.
|
long |
getTotalBytes()
The size of the bundle in bytes, excluding this `BundleMetadata`.
|
int |
getTotalDocuments()
The number of documents in the bundle.
|
int |
getVersion()
The schema version of the bundle.
|
boolean |
hasCreateTime()
Time at which the documents snapshot is taken for this bundle.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BundleMetadata.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Time at which the documents snapshot is taken for this bundle.
|
BundleMetadata.Builder |
mergeFrom(BundleMetadata other) |
BundleMetadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BundleMetadata.Builder |
mergeFrom(com.google.protobuf.Message other) |
BundleMetadata.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BundleMetadata.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Time at which the documents snapshot is taken for this bundle.
|
BundleMetadata.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Time at which the documents snapshot is taken for this bundle.
|
BundleMetadata.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BundleMetadata.Builder |
setId(String value)
The ID of the bundle.
|
BundleMetadata.Builder |
setIdBytes(com.google.protobuf.ByteString value)
The ID of the bundle.
|
BundleMetadata.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BundleMetadata.Builder |
setTotalBytes(long value)
The size of the bundle in bytes, excluding this `BundleMetadata`.
|
BundleMetadata.Builder |
setTotalDocuments(int value)
The number of documents in the bundle.
|
BundleMetadata.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BundleMetadata.Builder |
setVersion(int value)
The schema version of the bundle.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public BundleMetadata.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public BundleMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BundleMetadata build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BundleMetadata buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BundleMetadata.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public BundleMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public BundleMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public BundleMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public BundleMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public BundleMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public BundleMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BundleMetadata.Builder>public BundleMetadata.Builder mergeFrom(BundleMetadata other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public BundleMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BundleMetadata.Builder>IOExceptionpublic String getId()
The ID of the bundle.
string id = 1;getId in interface BundleMetadataOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The ID of the bundle.
string id = 1;getIdBytes in interface BundleMetadataOrBuilderpublic BundleMetadata.Builder setId(String value)
The ID of the bundle.
string id = 1;value - The id to set.public BundleMetadata.Builder clearId()
The ID of the bundle.
string id = 1;public BundleMetadata.Builder setIdBytes(com.google.protobuf.ByteString value)
The ID of the bundle.
string id = 1;value - The bytes for id to set.public boolean hasCreateTime()
Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;hasCreateTime in interface BundleMetadataOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;getCreateTime in interface BundleMetadataOrBuilderpublic BundleMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;public BundleMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;public BundleMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;public BundleMetadata.Builder clearCreateTime()
Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;getCreateTimeOrBuilder in interface BundleMetadataOrBuilderpublic int getVersion()
The schema version of the bundle.
uint32 version = 3;getVersion in interface BundleMetadataOrBuilderpublic BundleMetadata.Builder setVersion(int value)
The schema version of the bundle.
uint32 version = 3;value - The version to set.public BundleMetadata.Builder clearVersion()
The schema version of the bundle.
uint32 version = 3;public int getTotalDocuments()
The number of documents in the bundle.
uint32 total_documents = 4;getTotalDocuments in interface BundleMetadataOrBuilderpublic BundleMetadata.Builder setTotalDocuments(int value)
The number of documents in the bundle.
uint32 total_documents = 4;value - The totalDocuments to set.public BundleMetadata.Builder clearTotalDocuments()
The number of documents in the bundle.
uint32 total_documents = 4;public long getTotalBytes()
The size of the bundle in bytes, excluding this `BundleMetadata`.
uint64 total_bytes = 5;getTotalBytes in interface BundleMetadataOrBuilderpublic BundleMetadata.Builder setTotalBytes(long value)
The size of the bundle in bytes, excluding this `BundleMetadata`.
uint64 total_bytes = 5;value - The totalBytes to set.public BundleMetadata.Builder clearTotalBytes()
The size of the bundle in bytes, excluding this `BundleMetadata`.
uint64 total_bytes = 5;public final BundleMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>public final BundleMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>Copyright © 2022 Google LLC. All rights reserved.