#[non_exhaustive]pub struct PredictSchemata {
pub instance_schema_uri: String,
pub parameters_schema_uri: String,
pub prediction_schema_uri: String,
/* private fields */
}dataset-service or job-service or model-garden-service or model-service or pipeline-service only.Expand description
Contains the schemata used in Model’s predictions and explanations via PredictionService.Predict, PredictionService.Explain and BatchPredictionJob.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.instance_schema_uri: StringImmutable. Points to a YAML file stored on Google Cloud Storage describing the format of a single instance, which are used in PredictRequest.instances, ExplainRequest.instances and BatchPredictionJob.input_config. The schema is defined as an OpenAPI 3.0.2 Schema Object. AutoML Models always have this field populated by Vertex AI. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access.
parameters_schema_uri: StringImmutable. Points to a YAML file stored on Google Cloud Storage describing the parameters of prediction and explanation via PredictRequest.parameters, ExplainRequest.parameters and BatchPredictionJob.model_parameters. The schema is defined as an OpenAPI 3.0.2 Schema Object. AutoML Models always have this field populated by Vertex AI, if no parameters are supported, then it is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access.
prediction_schema_uri: StringImmutable. Points to a YAML file stored on Google Cloud Storage describing the format of a single prediction produced by this Model, which are returned via PredictResponse.predictions, ExplainResponse.explanations, and BatchPredictionJob.output_config. The schema is defined as an OpenAPI 3.0.2 Schema Object. AutoML Models always have this field populated by Vertex AI. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access.
Implementations§
Source§impl PredictSchemata
impl PredictSchemata
pub fn new() -> Self
Sourcepub fn set_instance_schema_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_schema_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_schema_uri.
Sourcepub fn set_parameters_schema_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_parameters_schema_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of parameters_schema_uri.
Sourcepub fn set_prediction_schema_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_prediction_schema_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of prediction_schema_uri.
Trait Implementations§
Source§impl Clone for PredictSchemata
impl Clone for PredictSchemata
Source§fn clone(&self) -> PredictSchemata
fn clone(&self) -> PredictSchemata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more