Class OperationProgress.Builder (6.51.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OperationProgress build()
Returns
TypeDescription
OperationProgress

buildPartial()

public OperationProgress buildPartial()
Returns
TypeDescription
OperationProgress

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearStartTime()

public OperationProgress.Builder clearStartTime()

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
OperationProgress.Builder

clone()

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

getDefaultInstanceForType()

public OperationProgress getDefaultInstanceForType()
Returns
TypeDescription
OperationProgress

getDescriptorForType()

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

getProgressPercent()

public int getProgressPercent()

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

int32 progress_percent = 1;

Returns
TypeDescription
int

The progressPercent.

getStartTime()

public Timestamp getStartTime()

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

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

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
OperationProgress.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(OperationProgress other)

public OperationProgress.Builder mergeFrom(OperationProgress other)
Parameter
NameDescription
otherOperationProgress
Returns
TypeDescription
OperationProgress.Builder

mergeStartTime(Timestamp value)

public OperationProgress.Builder mergeStartTime(Timestamp value)

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
OperationProgress.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OperationProgress.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
OperationProgress.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The progressPercent to set.

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

setStartTime(Timestamp value)

public OperationProgress.Builder setStartTime(Timestamp value)

Time the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
OperationProgress.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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