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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OperationProgress.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public OperationProgress build()
Returns
buildPartial()
public OperationProgress buildPartial()
Returns
clear()
public OperationProgress.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public OperationProgress.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public OperationProgress.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProgressPercent()
public OperationProgress.Builder clearProgressPercent()
Percent completion of the operation.
Values are between 0 and 100 inclusive.
int32 progress_percent = 1;
Returns
clearStartTime()
public OperationProgress.Builder clearStartTime()
Time the request was received.
.google.protobuf.Timestamp start_time = 2;
Returns
clone()
public OperationProgress.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public OperationProgress getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
If set, the time at which this operation failed or was completed
successfully.
.google.protobuf.Timestamp end_time = 3;
Returns
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
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
Time the request was received.
.google.protobuf.Timestamp start_time = 2;
Returns
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Time the request was received.
.google.protobuf.Timestamp start_time = 2;
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
public OperationProgress.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public OperationProgress.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(OperationProgress other)
public OperationProgress.Builder mergeFrom(OperationProgress other)
Parameter
Returns
mergeStartTime(Timestamp value)
public OperationProgress.Builder mergeStartTime(Timestamp value)
Time the request was received.
.google.protobuf.Timestamp start_time = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OperationProgress.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public OperationProgress.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OperationProgress.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setStartTime(Timestamp value)
public OperationProgress.Builder setStartTime(Timestamp value)
Time the request was received.
.google.protobuf.Timestamp start_time = 2;
Parameter
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final OperationProgress.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides