Class Backup.Stats.Builder (3.21.4)

public static final class Backup.Stats.Builder extends GeneratedMessageV3.Builder<Backup.Stats.Builder> implements Backup.StatsOrBuilder

Backup specific statistics.

Protobuf type google.firestore.admin.v1.Backup.Stats

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Backup.Stats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Backup.Stats.Builder
Overrides

build()

public Backup.Stats build()
Returns
Type Description
Backup.Stats

buildPartial()

public Backup.Stats buildPartial()
Returns
Type Description
Backup.Stats

clear()

public Backup.Stats.Builder clear()
Returns
Type Description
Backup.Stats.Builder
Overrides

clearDocumentCount()

public Backup.Stats.Builder clearDocumentCount()

Output only. The total number of documents contained in the backup.

int64 document_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Backup.Stats.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Backup.Stats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Backup.Stats.Builder
Overrides

clearIndexCount()

public Backup.Stats.Builder clearIndexCount()

Output only. The total number of index entries contained in the backup.

int64 index_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Backup.Stats.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Backup.Stats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Backup.Stats.Builder
Overrides

clearSizeBytes()

public Backup.Stats.Builder clearSizeBytes()

Output only. Summation of the size of all documents and index entries in the backup, measured in bytes.

int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Backup.Stats.Builder

This builder for chaining.

clone()

public Backup.Stats.Builder clone()
Returns
Type Description
Backup.Stats.Builder
Overrides

getDefaultInstanceForType()

public Backup.Stats getDefaultInstanceForType()
Returns
Type Description
Backup.Stats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDocumentCount()

public long getDocumentCount()

Output only. The total number of documents contained in the backup.

int64 document_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The documentCount.

getIndexCount()

public long getIndexCount()

Output only. The total number of index entries contained in the backup.

int64 index_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The indexCount.

getSizeBytes()

public long getSizeBytes()

Output only. Summation of the size of all documents and index entries in the backup, measured in bytes.

int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The sizeBytes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Backup.Stats other)

public Backup.Stats.Builder mergeFrom(Backup.Stats other)
Parameter
Name Description
other Backup.Stats
Returns
Type Description
Backup.Stats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Backup.Stats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Backup.Stats.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Backup.Stats.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Backup.Stats.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Backup.Stats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Backup.Stats.Builder
Overrides

setDocumentCount(long value)

public Backup.Stats.Builder setDocumentCount(long value)

Output only. The total number of documents contained in the backup.

int64 document_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The documentCount to set.

Returns
Type Description
Backup.Stats.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Backup.Stats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Backup.Stats.Builder
Overrides

setIndexCount(long value)

public Backup.Stats.Builder setIndexCount(long value)

Output only. The total number of index entries contained in the backup.

int64 index_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The indexCount to set.

Returns
Type Description
Backup.Stats.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Backup.Stats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Backup.Stats.Builder
Overrides

setSizeBytes(long value)

public Backup.Stats.Builder setSizeBytes(long value)

Output only. Summation of the size of all documents and index entries in the backup, measured in bytes.

int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The sizeBytes to set.

Returns
Type Description
Backup.Stats.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Backup.Stats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Backup.Stats.Builder
Overrides