Class Backup.Stats.Builder (3.20.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Backup.Stats build()
Returns
TypeDescription
Backup.Stats

buildPartial()

public Backup.Stats buildPartial()
Returns
TypeDescription
Backup.Stats

clear()

public Backup.Stats.Builder clear()
Returns
TypeDescription
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
TypeDescription
Backup.Stats.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Backup.Stats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Backup.Stats.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Backup.Stats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Backup.Stats.Builder

This builder for chaining.

clone()

public Backup.Stats.Builder clone()
Returns
TypeDescription
Backup.Stats.Builder
Overrides

getDefaultInstanceForType()

public Backup.Stats getDefaultInstanceForType()
Returns
TypeDescription
Backup.Stats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
long

The sizeBytes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Backup.Stats other)

public Backup.Stats.Builder mergeFrom(Backup.Stats other)
Parameter
NameDescription
otherBackup.Stats
Returns
TypeDescription
Backup.Stats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Backup.Stats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The documentCount to set.

Returns
TypeDescription
Backup.Stats.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Backup.Stats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The indexCount to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The sizeBytes to set.

Returns
TypeDescription
Backup.Stats.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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