Class OperationProgress.Builder (6.82.0)

public static final class OperationProgress.Builder extends GeneratedMessageV3.Builder<OperationProgress.Builder> implements OperationProgressOrBuilder

Encapsulates progress related information for a Cloud Spanner long running operation.

Protobuf type google.spanner.admin.database.v1.OperationProgress

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OperationProgress build()
Returns
Type Description
OperationProgress

buildPartial()

public OperationProgress buildPartial()
Returns
Type Description
OperationProgress

clear()

public OperationProgress.Builder clear()
Returns
Type Description
OperationProgress.Builder
Overrides

clearEndTime()

public OperationProgress.Builder clearEndTime()

If set, the time at which this operation failed or was completed successfully.

.google.protobuf.Timestamp end_time = 3;

Returns
Type Description
OperationProgress.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgressPercent()

public OperationProgress.Builder clearProgressPercent()

Percent completion of the operation. Values are between 0 and 100 inclusive.

int32 progress_percent = 1;

Returns
Type Description
OperationProgress.Builder

This builder for chaining.

clearStartTime()

public OperationProgress.Builder clearStartTime()

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
Type Description
OperationProgress.Builder

clone()

public OperationProgress.Builder clone()
Returns
Type Description
OperationProgress.Builder
Overrides

getDefaultInstanceForType()

public OperationProgress getDefaultInstanceForType()
Returns
Type Description
OperationProgress

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

If set, the time at which this operation failed or was completed successfully.

.google.protobuf.Timestamp end_time = 3;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

If set, the time at which this operation failed or was completed successfully.

.google.protobuf.Timestamp end_time = 3;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

If set, the time at which this operation failed or was completed successfully.

.google.protobuf.Timestamp end_time = 3;

Returns
Type Description
TimestampOrBuilder

getProgressPercent()

public int getProgressPercent()

Percent completion of the operation. Values are between 0 and 100 inclusive.

int32 progress_percent = 1;

Returns
Type Description
int

The progressPercent.

getStartTime()

public Timestamp getStartTime()

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

If set, the time at which this operation failed or was completed successfully.

.google.protobuf.Timestamp end_time = 3;

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public OperationProgress.Builder mergeEndTime(Timestamp value)

If set, the time at which this operation failed or was completed successfully.

.google.protobuf.Timestamp end_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
OperationProgress.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(OperationProgress other)

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

mergeStartTime(Timestamp value)

public OperationProgress.Builder mergeStartTime(Timestamp value)

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
OperationProgress.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndTime(Timestamp value)

public OperationProgress.Builder setEndTime(Timestamp value)

If set, the time at which this operation failed or was completed successfully.

.google.protobuf.Timestamp end_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
OperationProgress.Builder

setEndTime(Timestamp.Builder builderForValue)

public OperationProgress.Builder setEndTime(Timestamp.Builder builderForValue)

If set, the time at which this operation failed or was completed successfully.

.google.protobuf.Timestamp end_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
OperationProgress.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProgressPercent(int value)

public OperationProgress.Builder setProgressPercent(int value)

Percent completion of the operation. Values are between 0 and 100 inclusive.

int32 progress_percent = 1;

Parameter
Name Description
value int

The progressPercent to set.

Returns
Type Description
OperationProgress.Builder

This builder for chaining.

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

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

setStartTime(Timestamp value)

public OperationProgress.Builder setStartTime(Timestamp value)

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
OperationProgress.Builder

setStartTime(Timestamp.Builder builderForValue)

public OperationProgress.Builder setStartTime(Timestamp.Builder builderForValue)

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
OperationProgress.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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