public static final class BundleMetadata.Builder extends GeneratedMessageV3.Builder<BundleMetadata.Builder> implements BundleMetadataOrBuilderMetadata describing the bundle file/stream.
Protobuf type google.firestore.bundle.BundleMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BundleMetadata.BuilderImplements
BundleMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BundleMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| BundleMetadata.Builder |
build()
public BundleMetadata build()| Type | Description |
| BundleMetadata |
buildPartial()
public BundleMetadata buildPartial()| Type | Description |
| BundleMetadata |
clear()
public BundleMetadata.Builder clear()| Type | Description |
| BundleMetadata.Builder |
clearCreateTime()
public BundleMetadata.Builder clearCreateTime()Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;
| Type | Description |
| BundleMetadata.Builder |
clearField(Descriptors.FieldDescriptor field)
public BundleMetadata.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| BundleMetadata.Builder |
clearId()
public BundleMetadata.Builder clearId()The ID of the bundle.
string id = 1;
| Type | Description |
| BundleMetadata.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public BundleMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| BundleMetadata.Builder |
clearTotalBytes()
public BundleMetadata.Builder clearTotalBytes() The size of the bundle in bytes, excluding this BundleMetadata.
uint64 total_bytes = 5;
| Type | Description |
| BundleMetadata.Builder | This builder for chaining. |
clearTotalDocuments()
public BundleMetadata.Builder clearTotalDocuments()The number of documents in the bundle.
uint32 total_documents = 4;
| Type | Description |
| BundleMetadata.Builder | This builder for chaining. |
clearVersion()
public BundleMetadata.Builder clearVersion()The schema version of the bundle.
uint32 version = 3;
| Type | Description |
| BundleMetadata.Builder | This builder for chaining. |
clone()
public BundleMetadata.Builder clone()| Type | Description |
| BundleMetadata.Builder |
getCreateTime()
public Timestamp getCreateTime()Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;
| Type | Description |
| Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;
| Type | Description |
| Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;
| Type | Description |
| TimestampOrBuilder |
getDefaultInstanceForType()
public BundleMetadata getDefaultInstanceForType()| Type | Description |
| BundleMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getId()
public String getId()The ID of the bundle.
string id = 1;
| Type | Description |
| String | The id. |
getIdBytes()
public ByteString getIdBytes()The ID of the bundle.
string id = 1;
| Type | Description |
| ByteString | The bytes for id. |
getTotalBytes()
public long getTotalBytes() The size of the bundle in bytes, excluding this BundleMetadata.
uint64 total_bytes = 5;
| Type | Description |
| long | The totalBytes. |
getTotalDocuments()
public int getTotalDocuments()The number of documents in the bundle.
uint32 total_documents = 4;
| Type | Description |
| int | The totalDocuments. |
getVersion()
public int getVersion()The schema version of the bundle.
uint32 version = 3;
| Type | Description |
| int | The version. |
hasCreateTime()
public boolean hasCreateTime()Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;
| Type | Description |
| boolean | Whether the createTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeCreateTime(Timestamp value)
public BundleMetadata.Builder mergeCreateTime(Timestamp value)Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;
| Name | Description |
| value | Timestamp |
| Type | Description |
| BundleMetadata.Builder |
mergeFrom(BundleMetadata other)
public BundleMetadata.Builder mergeFrom(BundleMetadata other)| Name | Description |
| other | BundleMetadata |
| Type | Description |
| BundleMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BundleMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| BundleMetadata.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public BundleMetadata.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| BundleMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BundleMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| BundleMetadata.Builder |
setCreateTime(Timestamp value)
public BundleMetadata.Builder setCreateTime(Timestamp value)Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;
| Name | Description |
| value | Timestamp |
| Type | Description |
| BundleMetadata.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public BundleMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)Time at which the documents snapshot is taken for this bundle.
.google.protobuf.Timestamp create_time = 2;
| Name | Description |
| builderForValue | Builder |
| Type | Description |
| BundleMetadata.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public BundleMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| BundleMetadata.Builder |
setId(String value)
public BundleMetadata.Builder setId(String value)The ID of the bundle.
string id = 1;
| Name | Description |
| value | StringThe id to set. |
| Type | Description |
| BundleMetadata.Builder | This builder for chaining. |
setIdBytes(ByteString value)
public BundleMetadata.Builder setIdBytes(ByteString value)The ID of the bundle.
string id = 1;
| Name | Description |
| value | ByteStringThe bytes for id to set. |
| Type | Description |
| BundleMetadata.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BundleMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| BundleMetadata.Builder |
setTotalBytes(long value)
public BundleMetadata.Builder setTotalBytes(long value) The size of the bundle in bytes, excluding this BundleMetadata.
uint64 total_bytes = 5;
| Name | Description |
| value | longThe totalBytes to set. |
| Type | Description |
| BundleMetadata.Builder | This builder for chaining. |
setTotalDocuments(int value)
public BundleMetadata.Builder setTotalDocuments(int value)The number of documents in the bundle.
uint32 total_documents = 4;
| Name | Description |
| value | intThe totalDocuments to set. |
| Type | Description |
| BundleMetadata.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final BundleMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| BundleMetadata.Builder |
setVersion(int value)
public BundleMetadata.Builder setVersion(int value)The schema version of the bundle.
uint32 version = 3;
| Name | Description |
| value | intThe version to set. |
| Type | Description |
| BundleMetadata.Builder | This builder for chaining. |