Represents the metadata of the long-running operation.
Fields
create_time
Output only. The time the operation was created.
end_time
Output only. The time the operation finished running.
target
Output only. Server-defined resource path for the target of the operation.
verb
Output only. Name of the verb executed by the operation.
status_message
Output only. Human-readable status of the operation, if any.
requested_cancellation
Output only. True if the user has requested cancellation
of the operation; false otherwise.
Operations that have successfully been cancelled
have [Operation.error][] value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
api_version
Output only. API version used to start the operation.
Implementations
new
fn new() -> Self
set_create_time
fn set_create_time<T>(self, v: T) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets the value of [create_time][crate::model::OperationMetadata::create_time].
set_or_clear_create_time
fn set_or_clear_create_time<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets or clears the value of [create_time][crate::model::OperationMetadata::create_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::OperationMetadata::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::OperationMetadata::end_time].
set_target
fn set_target<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
Sets the value of [target][crate::model::OperationMetadata::target].
set_verb
fn set_verb<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
Sets the value of [verb][crate::model::OperationMetadata::verb].
set_status_message
fn set_status_message<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
Sets the value of [status_message][crate::model::OperationMetadata::status_message].
set_requested_cancellation
fn set_requested_cancellation<T: std::convert::Into<bool>>(self, v: T) -> Self
Sets the value of [requested_cancellation][crate::model::OperationMetadata::requested_cancellation].
set_api_version
fn set_api_version<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
Sets the value of [api_version][crate::model::OperationMetadata::api_version].