Struct CollectUserEvent (0.5.0)

The request builder for [UserEventService::collect_user_event][crate::client::UserEventService::collect_user_event] calls.

Example

# use google_cloud_discoveryengine_v1::builder;
use builder::user_event_service::CollectUserEvent;
# tokio_test::block_on(async {

let builder = prepare_request_builder();
let response = builder.send().await?;
# gax::Result::<()>::Ok(()) });

fn prepare_request_builder() -> CollectUserEvent {
  # panic!();
  // ... details omitted ...
}

Implementations

with_request

 fn with_request<V: Into<crate::model::CollectUserEventRequest>>(self, v: V) -> Self

Sets the full request, replacing any prior values.

with_options

 fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self

Sets all the options, replacing any prior values.

send

async fn send(self) -> Result<api::model::HttpBody>

Sends the request.

set_parent

 fn set_parent<T: Into<std::string::String>>(self, v: T) -> Self

Sets the value of [parent][crate::model::CollectUserEventRequest::parent].

This is a required field for requests.

set_user_event

 fn set_user_event<T: Into<std::string::String>>(self, v: T) -> Self

Sets the value of [user_event][crate::model::CollectUserEventRequest::user_event].

This is a required field for requests.

set_uri

 fn set_uri<T>(self, v: T) -> Self
where
    T: std::convert::Into<std::string::String>,

Sets the value of [uri][crate::model::CollectUserEventRequest::uri].

set_or_clear_uri

 fn set_or_clear_uri<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<std::string::String>,

Sets or clears the value of [uri][crate::model::CollectUserEventRequest::uri].

set_ets

 fn set_ets<T>(self, v: T) -> Self
where
    T: std::convert::Into<i64>,

Sets the value of [ets][crate::model::CollectUserEventRequest::ets].

set_or_clear_ets

 fn set_or_clear_ets<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<i64>,

Sets or clears the value of [ets][crate::model::CollectUserEventRequest::ets].