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, 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<BundleMetadata.Builder>
public BundleMetadata.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<BundleMetadata.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<BundleMetadata.Builder>
public BundleMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public BundleMetadata build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public BundleMetadata buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public BundleMetadata.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<BundleMetadata.Builder>
public BundleMetadata.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<BundleMetadata.Builder>
public BundleMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BundleMetadata.Builder>
IOException
public String getId()
The ID of the bundle.
string id = 1;
getId
in interface BundleMetadataOrBuilder
public com.google.protobuf.ByteString getIdBytes()
The ID of the bundle.
string id = 1;
getIdBytes
in interface BundleMetadataOrBuilder
public 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 BundleMetadataOrBuilder
public 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 BundleMetadataOrBuilder
public 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 BundleMetadataOrBuilder
public int getVersion()
The schema version of the bundle.
uint32 version = 3;
getVersion
in interface BundleMetadataOrBuilder
public 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 BundleMetadataOrBuilder
public 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 BundleMetadataOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder>
Copyright © 2023 Google LLC. All rights reserved.