Metadata common to all Datastore Admin operations.
Fields
start_time
The time that work began on the operation.
end_time
The time the operation ended, either successfully or otherwise.
operation_type
The type of the operation. Can be used as a filter in ListOperationsRequest.
labels
The client-assigned labels which were provided when the operation was created. May also include additional labels.
state
The current state of the Operation.
Implementations
new
fn new() -> Self
set_start_time
fn set_start_time<T>(self, v: T) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets the value of [start_time][crate::model::CommonMetadata::start_time].
set_or_clear_start_time
fn set_or_clear_start_time<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets or clears the value of [start_time][crate::model::CommonMetadata::start_time].
set_end_time
fn set_end_time<T>(self, v: T) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets the value of [end_time][crate::model::CommonMetadata::end_time].
set_or_clear_end_time
fn set_or_clear_end_time<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets or clears the value of [end_time][crate::model::CommonMetadata::end_time].
set_operation_type
fn set_operation_type<T: std::convert::Into<crate::model::OperationType>>(self, v: T) -> Self
Sets the value of [operation_type][crate::model::CommonMetadata::operation_type].
set_labels
fn set_labels<T, K, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
K: std::convert::Into<std::string::String>,
V: std::convert::Into<std::string::String>,
Sets the value of [labels][crate::model::CommonMetadata::labels].
set_state
fn set_state<T: std::convert::Into<crate::model::common_metadata::State>>(self, v: T) -> Self
Sets the value of [state][crate::model::CommonMetadata::state].