Class BundleMetadata.Builder (3.2.0)

public static final class BundleMetadata.Builder extends GeneratedMessageV3.Builder<BundleMetadata.Builder> implements BundleMetadataOrBuilder

Metadata describing the bundle file/stream.

Protobuf type google.firestore.bundle.BundleMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BundleMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BundleMetadata.Builder
Overrides

build()

public BundleMetadata build()
Returns
TypeDescription
BundleMetadata

buildPartial()

public BundleMetadata buildPartial()
Returns
TypeDescription
BundleMetadata

clear()

public BundleMetadata.Builder clear()
Returns
TypeDescription
BundleMetadata.Builder
Overrides

clearCreateTime()

public BundleMetadata.Builder clearCreateTime()

Time at which the documents snapshot is taken for this bundle.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
BundleMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public BundleMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BundleMetadata.Builder
Overrides

clearId()

public BundleMetadata.Builder clearId()

The ID of the bundle.

string id = 1;

Returns
TypeDescription
BundleMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BundleMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BundleMetadata.Builder
Overrides

clearTotalBytes()

public BundleMetadata.Builder clearTotalBytes()

The size of the bundle in bytes, excluding this BundleMetadata.

uint64 total_bytes = 5;

Returns
TypeDescription
BundleMetadata.Builder

This builder for chaining.

clearTotalDocuments()

public BundleMetadata.Builder clearTotalDocuments()

The number of documents in the bundle.

uint32 total_documents = 4;

Returns
TypeDescription
BundleMetadata.Builder

This builder for chaining.

clearVersion()

public BundleMetadata.Builder clearVersion()

The schema version of the bundle.

uint32 version = 3;

Returns
TypeDescription
BundleMetadata.Builder

This builder for chaining.

clone()

public BundleMetadata.Builder clone()
Returns
TypeDescription
BundleMetadata.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Time at which the documents snapshot is taken for this bundle.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
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;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time at which the documents snapshot is taken for this bundle.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public BundleMetadata getDefaultInstanceForType()
Returns
TypeDescription
BundleMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

The ID of the bundle.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

The ID of the bundle.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getTotalBytes()

public long getTotalBytes()

The size of the bundle in bytes, excluding this BundleMetadata.

uint64 total_bytes = 5;

Returns
TypeDescription
long

The totalBytes.

getTotalDocuments()

public int getTotalDocuments()

The number of documents in the bundle.

uint32 total_documents = 4;

Returns
TypeDescription
int

The totalDocuments.

getVersion()

public int getVersion()

The schema version of the bundle.

uint32 version = 3;

Returns
TypeDescription
int

The version.

hasCreateTime()

public boolean hasCreateTime()

Time at which the documents snapshot is taken for this bundle.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BundleMetadata.Builder

mergeFrom(BundleMetadata other)

public BundleMetadata.Builder mergeFrom(BundleMetadata other)
Parameter
NameDescription
otherBundleMetadata
Returns
TypeDescription
BundleMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BundleMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BundleMetadata.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BundleMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BundleMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BundleMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BundleMetadata.Builder
Overrides

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;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BundleMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BundleMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BundleMetadata.Builder
Overrides

setId(String value)

public BundleMetadata.Builder setId(String value)

The ID of the bundle.

string id = 1;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
BundleMetadata.Builder

This builder for chaining.

setIdBytes(ByteString value)

public BundleMetadata.Builder setIdBytes(ByteString value)

The ID of the bundle.

string id = 1;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BundleMetadata.Builder
Overrides

setTotalBytes(long value)

public BundleMetadata.Builder setTotalBytes(long value)

The size of the bundle in bytes, excluding this BundleMetadata.

uint64 total_bytes = 5;

Parameter
NameDescription
valuelong

The totalBytes to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueint

The totalDocuments to set.

Returns
TypeDescription
BundleMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BundleMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BundleMetadata.Builder
Overrides

setVersion(int value)

public BundleMetadata.Builder setVersion(int value)

The schema version of the bundle.

uint32 version = 3;

Parameter
NameDescription
valueint

The version to set.

Returns
TypeDescription
BundleMetadata.Builder

This builder for chaining.