Class BackupRunInfo.Builder (0.6.0)

public static final class BackupRunInfo.Builder extends GeneratedMessage.Builder<BackupRunInfo.Builder> implements BackupRunInfoOrBuilder

Metadata about latest backup run state for a database resource.

Protobuf type google.cloud.databasecenter.v1beta.BackupRunInfo

Static Methods

getDescriptor()

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

Methods

build()

public BackupRunInfo build()
Returns
Type Description
BackupRunInfo

buildPartial()

public BackupRunInfo buildPartial()
Returns
Type Description
BackupRunInfo

clear()

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

clearEndTime()

public BackupRunInfo.Builder clearEndTime()

The time the backup operation completed.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
BackupRunInfo.Builder

clearErrorMessage()

public BackupRunInfo.Builder clearErrorMessage()

Additional information about the error encountered.

string error_message = 3;

Returns
Type Description
BackupRunInfo.Builder

This builder for chaining.

clearOperationErrorType()

public BackupRunInfo.Builder clearOperationErrorType()

Optional. OperationErrorType to expose specific error when backup operation of database resource failed, that is state is FAILED.

.google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BackupRunInfo.Builder

This builder for chaining.

clearStartTime()

public BackupRunInfo.Builder clearStartTime()

The time the backup operation started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
BackupRunInfo.Builder

clearState()

public BackupRunInfo.Builder clearState()

Output only. The state of this run.

.google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupRunInfo.Builder

This builder for chaining.

clearSubResource()

public BackupRunInfo.Builder clearSubResource()

Optional. Sub resource details associated with the backup run.

.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BackupRunInfo.Builder

getDefaultInstanceForType()

public BackupRunInfo getDefaultInstanceForType()
Returns
Type Description
BackupRunInfo

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

The time the backup operation completed.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time the backup operation completed.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time the backup operation completed.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
TimestampOrBuilder

getErrorMessage()

public String getErrorMessage()

Additional information about the error encountered.

string error_message = 3;

Returns
Type Description
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

Additional information about the error encountered.

string error_message = 3;

Returns
Type Description
ByteString

The bytes for errorMessage.

getOperationErrorType()

public OperationErrorType getOperationErrorType()

Optional. OperationErrorType to expose specific error when backup operation of database resource failed, that is state is FAILED.

.google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OperationErrorType

The operationErrorType.

getOperationErrorTypeValue()

public int getOperationErrorTypeValue()

Optional. OperationErrorType to expose specific error when backup operation of database resource failed, that is state is FAILED.

.google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for operationErrorType.

getStartTime()

public Timestamp getStartTime()

The time the backup operation started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time the backup operation started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time the backup operation started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimestampOrBuilder

getState()

public BackupRunInfo.State getState()

Output only. The state of this run.

.google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupRunInfo.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of this run.

.google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getSubResource()

public SubResource getSubResource()

Optional. Sub resource details associated with the backup run.

.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubResource

The subResource.

getSubResourceBuilder()

public SubResource.Builder getSubResourceBuilder()

Optional. Sub resource details associated with the backup run.

.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubResource.Builder

getSubResourceOrBuilder()

public SubResourceOrBuilder getSubResourceOrBuilder()

Optional. Sub resource details associated with the backup run.

.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubResourceOrBuilder

hasEndTime()

public boolean hasEndTime()

The time the backup operation completed.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

The time the backup operation started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
boolean

Whether the startTime field is set.

hasSubResource()

public boolean hasSubResource()

Optional. Sub resource details associated with the backup run.

.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the subResource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public BackupRunInfo.Builder mergeEndTime(Timestamp value)

The time the backup operation completed.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRunInfo.Builder

mergeFrom(BackupRunInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public BackupRunInfo.Builder mergeStartTime(Timestamp value)

The time the backup operation started.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRunInfo.Builder

mergeSubResource(SubResource value)

public BackupRunInfo.Builder mergeSubResource(SubResource value)

Optional. Sub resource details associated with the backup run.

.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SubResource
Returns
Type Description
BackupRunInfo.Builder

setEndTime(Timestamp value)

public BackupRunInfo.Builder setEndTime(Timestamp value)

The time the backup operation completed.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRunInfo.Builder

setEndTime(Timestamp.Builder builderForValue)

public BackupRunInfo.Builder setEndTime(Timestamp.Builder builderForValue)

The time the backup operation completed.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupRunInfo.Builder

setErrorMessage(String value)

public BackupRunInfo.Builder setErrorMessage(String value)

Additional information about the error encountered.

string error_message = 3;

Parameter
Name Description
value String

The errorMessage to set.

Returns
Type Description
BackupRunInfo.Builder

This builder for chaining.

setErrorMessageBytes(ByteString value)

public BackupRunInfo.Builder setErrorMessageBytes(ByteString value)

Additional information about the error encountered.

string error_message = 3;

Parameter
Name Description
value ByteString

The bytes for errorMessage to set.

Returns
Type Description
BackupRunInfo.Builder

This builder for chaining.

setOperationErrorType(OperationErrorType value)

public BackupRunInfo.Builder setOperationErrorType(OperationErrorType value)

Optional. OperationErrorType to expose specific error when backup operation of database resource failed, that is state is FAILED.

.google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value OperationErrorType

The operationErrorType to set.

Returns
Type Description
BackupRunInfo.Builder

This builder for chaining.

setOperationErrorTypeValue(int value)

public BackupRunInfo.Builder setOperationErrorTypeValue(int value)

Optional. OperationErrorType to expose specific error when backup operation of database resource failed, that is state is FAILED.

.google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for operationErrorType to set.

Returns
Type Description
BackupRunInfo.Builder

This builder for chaining.

setStartTime(Timestamp value)

public BackupRunInfo.Builder setStartTime(Timestamp value)

The time the backup operation started.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRunInfo.Builder

setStartTime(Timestamp.Builder builderForValue)

public BackupRunInfo.Builder setStartTime(Timestamp.Builder builderForValue)

The time the backup operation started.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupRunInfo.Builder

setState(BackupRunInfo.State value)

public BackupRunInfo.Builder setState(BackupRunInfo.State value)

Output only. The state of this run.

.google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value BackupRunInfo.State

The state to set.

Returns
Type Description
BackupRunInfo.Builder

This builder for chaining.

setStateValue(int value)

public BackupRunInfo.Builder setStateValue(int value)

Output only. The state of this run.

.google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
BackupRunInfo.Builder

This builder for chaining.

setSubResource(SubResource value)

public BackupRunInfo.Builder setSubResource(SubResource value)

Optional. Sub resource details associated with the backup run.

.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SubResource
Returns
Type Description
BackupRunInfo.Builder

setSubResource(SubResource.Builder builderForValue)

public BackupRunInfo.Builder setSubResource(SubResource.Builder builderForValue)

Optional. Sub resource details associated with the backup run.

.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SubResource.Builder
Returns
Type Description
BackupRunInfo.Builder