Class BackupRunInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BackupRunInfo.Builder>
com.google.cloud.databasecenter.v1beta.BackupRunInfo.Builder
- All Implemented Interfaces:
BackupRunInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BackupRunInfo
public static final class BackupRunInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BackupRunInfo.Builder>
implements BackupRunInfoOrBuilder
Metadata about latest backup run state for a database resource.Protobuf type
google.cloud.databasecenter.v1beta.BackupRunInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The time the backup operation completed.Additional information about the error encountered.Optional.The time the backup operation started.Output only.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe time the backup operation completed.com.google.protobuf.Timestamp.BuilderThe time the backup operation completed.com.google.protobuf.TimestampOrBuilderThe time the backup operation completed.Additional information about the error encountered.com.google.protobuf.ByteStringAdditional information about the error encountered.Optional.intOptional.com.google.protobuf.TimestampThe time the backup operation started.com.google.protobuf.Timestamp.BuilderThe time the backup operation started.com.google.protobuf.TimestampOrBuilderThe time the backup operation started.getState()Output only.intOutput only.Optional.Optional.Optional.booleanThe time the backup operation completed.booleanThe time the backup operation started.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEndTime(com.google.protobuf.Timestamp value) The time the backup operation completed.mergeFrom(BackupRunInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(com.google.protobuf.Timestamp value) The time the backup operation started.mergeSubResource(SubResource value) Optional.setEndTime(com.google.protobuf.Timestamp value) The time the backup operation completed.setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) The time the backup operation completed.setErrorMessage(String value) Additional information about the error encountered.setErrorMessageBytes(com.google.protobuf.ByteString value) Additional information about the error encountered.Optional.setOperationErrorTypeValue(int value) Optional.setStartTime(com.google.protobuf.Timestamp value) The time the backup operation started.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) The time the backup operation started.setState(BackupRunInfo.State value) Output only.setStateValue(int value) Output only.setSubResource(SubResource value) Optional.setSubResource(SubResource.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BackupRunInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BackupRunInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BackupRunInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackupRunInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BackupRunInfo.Builder>
-
mergeFrom
public BackupRunInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackupRunInfo.Builder>- Throws:
IOException
-
hasStartTime
public boolean hasStartTime()The time the backup operation started.
.google.protobuf.Timestamp start_time = 1;- Specified by:
hasStartTimein interfaceBackupRunInfoOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()The time the backup operation started.
.google.protobuf.Timestamp start_time = 1;- Specified by:
getStartTimein interfaceBackupRunInfoOrBuilder- Returns:
- The startTime.
-
setStartTime
The time the backup operation started.
.google.protobuf.Timestamp start_time = 1; -
setStartTime
The time the backup operation started.
.google.protobuf.Timestamp start_time = 1; -
mergeStartTime
The time the backup operation started.
.google.protobuf.Timestamp start_time = 1; -
clearStartTime
The time the backup operation started.
.google.protobuf.Timestamp start_time = 1; -
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()The time the backup operation started.
.google.protobuf.Timestamp start_time = 1; -
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()The time the backup operation started.
.google.protobuf.Timestamp start_time = 1;- Specified by:
getStartTimeOrBuilderin interfaceBackupRunInfoOrBuilder
-
hasEndTime
public boolean hasEndTime()The time the backup operation completed.
.google.protobuf.Timestamp end_time = 6;- Specified by:
hasEndTimein interfaceBackupRunInfoOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()The time the backup operation completed.
.google.protobuf.Timestamp end_time = 6;- Specified by:
getEndTimein interfaceBackupRunInfoOrBuilder- Returns:
- The endTime.
-
setEndTime
The time the backup operation completed.
.google.protobuf.Timestamp end_time = 6; -
setEndTime
The time the backup operation completed.
.google.protobuf.Timestamp end_time = 6; -
mergeEndTime
The time the backup operation completed.
.google.protobuf.Timestamp end_time = 6; -
clearEndTime
The time the backup operation completed.
.google.protobuf.Timestamp end_time = 6; -
getEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()The time the backup operation completed.
.google.protobuf.Timestamp end_time = 6; -
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()The time the backup operation completed.
.google.protobuf.Timestamp end_time = 6;- Specified by:
getEndTimeOrBuilderin interfaceBackupRunInfoOrBuilder
-
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];- Specified by:
getStateValuein interfaceBackupRunInfoOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. The state of this run.
.google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. The state of this run.
.google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceBackupRunInfoOrBuilder- Returns:
- The state.
-
setState
Output only. The state of this run.
.google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. The state of this run.
.google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getErrorMessage
Additional information about the error encountered.
string error_message = 3;- Specified by:
getErrorMessagein interfaceBackupRunInfoOrBuilder- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()Additional information about the error encountered.
string error_message = 3;- Specified by:
getErrorMessageBytesin interfaceBackupRunInfoOrBuilder- Returns:
- The bytes for errorMessage.
-
setErrorMessage
Additional information about the error encountered.
string error_message = 3;- Parameters:
value- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
Additional information about the error encountered.
string error_message = 3;- Returns:
- This builder for chaining.
-
setErrorMessageBytes
Additional information about the error encountered.
string error_message = 3;- Parameters:
value- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getOperationErrorTypeValuein interfaceBackupRunInfoOrBuilder- Returns:
- The enum numeric value on the wire for operationErrorType.
-
setOperationErrorTypeValue
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];- Parameters:
value- The enum numeric value on the wire for operationErrorType to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getOperationErrorTypein interfaceBackupRunInfoOrBuilder- Returns:
- The operationErrorType.
-
setOperationErrorType
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];- Parameters:
value- The operationErrorType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasSubResourcein interfaceBackupRunInfoOrBuilder- Returns:
- Whether the subResource field is set.
-
getSubResource
Optional. Sub resource details associated with the backup run.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubResourcein interfaceBackupRunInfoOrBuilder- Returns:
- The subResource.
-
setSubResource
Optional. Sub resource details associated with the backup run.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setSubResource
Optional. Sub resource details associated with the backup run.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; -
mergeSubResource
Optional. Sub resource details associated with the backup run.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearSubResource
Optional. Sub resource details associated with the backup run.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getSubResourceBuilder
Optional. Sub resource details associated with the backup run.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getSubResourceOrBuilder
Optional. Sub resource details associated with the backup run.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubResourceOrBuilderin interfaceBackupRunInfoOrBuilder
-