Class Progress.Builder (2.14.0)

public static final class Progress.Builder extends GeneratedMessageV3.Builder<Progress.Builder> implements ProgressOrBuilder

Measures the progress of a particular metric.

Protobuf type google.datastore.admin.v1.Progress

Implements

ProgressOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Progress build()
Returns
TypeDescription
Progress

buildPartial()

public Progress buildPartial()
Returns
TypeDescription
Progress

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWorkCompleted()

public Progress.Builder clearWorkCompleted()

The amount of work that has been completed. Note that this may be greater than work_estimated.

int64 work_completed = 1;

Returns
TypeDescription
Progress.Builder

This builder for chaining.

clearWorkEstimated()

public Progress.Builder clearWorkEstimated()

An estimate of how much work needs to be performed. May be zero if the work estimate is unavailable.

int64 work_estimated = 2;

Returns
TypeDescription
Progress.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Progress getDefaultInstanceForType()
Returns
TypeDescription
Progress

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getWorkCompleted()

public long getWorkCompleted()

The amount of work that has been completed. Note that this may be greater than work_estimated.

int64 work_completed = 1;

Returns
TypeDescription
long

The workCompleted.

getWorkEstimated()

public long getWorkEstimated()

An estimate of how much work needs to be performed. May be zero if the work estimate is unavailable.

int64 work_estimated = 2;

Returns
TypeDescription
long

The workEstimated.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Progress other)

public Progress.Builder mergeFrom(Progress other)
Parameter
NameDescription
otherProgress
Returns
TypeDescription
Progress.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Progress.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Progress.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setWorkCompleted(long value)

public Progress.Builder setWorkCompleted(long value)

The amount of work that has been completed. Note that this may be greater than work_estimated.

int64 work_completed = 1;

Parameter
NameDescription
valuelong

The workCompleted to set.

Returns
TypeDescription
Progress.Builder

This builder for chaining.

setWorkEstimated(long value)

public Progress.Builder setWorkEstimated(long value)

An estimate of how much work needs to be performed. May be zero if the work estimate is unavailable.

int64 work_estimated = 2;

Parameter
NameDescription
valuelong

The workEstimated to set.

Returns
TypeDescription
Progress.Builder

This builder for chaining.