Struct gapi_grpc::google::cloud::aiplatform::v1beta1::ExplainRequest[][src]

pub struct ExplainRequest {
    pub endpoint: String,
    pub instances: Vec<Value>,
    pub parameters: Option<Value>,
    pub explanation_spec_override: Option<ExplanationSpecOverride>,
    pub deployed_model_id: String,
}

Request message for [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].

Fields

endpoint: String

Required. The name of the Endpoint requested to serve the explanation. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

instances: Vec<Value>

Required. The instances that are the input to the explanation call. A DeployedModel may have an upper limit on the number of instances it supports per request, and when it is exceeded the explanation call errors in case of AutoML Models, or, in case of customer created Models, the behaviour is as documented by that Model. The schema of any single instance may be specified via Endpoint’s DeployedModels’ [Model’s][google.cloud.aiplatform.v1beta1.DeployedModel.model] [PredictSchemata’s][google.cloud.aiplatform.v1beta1.Model.predict_schemata] [instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri].

parameters: Option<Value>

The parameters that govern the prediction. The schema of the parameters may be specified via Endpoint’s DeployedModels’ [Model’s ][google.cloud.aiplatform.v1beta1.DeployedModel.model] [PredictSchemata’s][google.cloud.aiplatform.v1beta1.Model.predict_schemata] [parameters_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.parameters_schema_uri].

explanation_spec_override: Option<ExplanationSpecOverride>

If specified, overrides the [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of the DeployedModel. Can be used for explaining prediction results with different configurations, such as:

deployed_model_id: String

If specified, this ExplainRequest will be served by the chosen DeployedModel, overriding [Endpoint.traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split].

Trait Implementations

impl Clone for ExplainRequest[src]

impl Debug for ExplainRequest[src]

impl Default for ExplainRequest[src]

impl Message for ExplainRequest[src]

impl PartialEq<ExplainRequest> for ExplainRequest[src]

impl StructuralPartialEq for ExplainRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for ExplainRequest

impl Send for ExplainRequest

impl Sync for ExplainRequest

impl Unpin for ExplainRequest

impl UnwindSafe for ExplainRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]