pub struct GoogleCloudAiplatformV1BatchPredictionJob {Show 27 fields
pub update_time: Option<DateTime<Utc>>,
pub display_name: Option<String>,
pub model_parameters: Option<Value>,
pub input_config: Option<GoogleCloudAiplatformV1BatchPredictionJobInputConfig>,
pub create_time: Option<DateTime<Utc>>,
pub instance_config: Option<GoogleCloudAiplatformV1BatchPredictionJobInstanceConfig>,
pub dedicated_resources: Option<GoogleCloudAiplatformV1BatchDedicatedResources>,
pub model_version_id: Option<String>,
pub unmanaged_container_model: Option<GoogleCloudAiplatformV1UnmanagedContainerModel>,
pub resources_consumed: Option<GoogleCloudAiplatformV1ResourcesConsumed>,
pub labels: Option<HashMap<String, String>>,
pub manual_batch_tuning_parameters: Option<GoogleCloudAiplatformV1ManualBatchTuningParameters>,
pub explanation_spec: Option<GoogleCloudAiplatformV1ExplanationSpec>,
pub error: Option<GoogleRpcStatus>,
pub disable_container_logging: Option<bool>,
pub state: Option<String>,
pub encryption_spec: Option<GoogleCloudAiplatformV1EncryptionSpec>,
pub service_account: Option<String>,
pub generate_explanation: Option<bool>,
pub output_config: Option<GoogleCloudAiplatformV1BatchPredictionJobOutputConfig>,
pub name: Option<String>,
pub partial_failures: Option<Vec<GoogleRpcStatus>>,
pub end_time: Option<DateTime<Utc>>,
pub completion_stats: Option<GoogleCloudAiplatformV1CompletionStats>,
pub output_info: Option<GoogleCloudAiplatformV1BatchPredictionJobOutputInfo>,
pub model: Option<String>,
pub start_time: Option<DateTime<Utc>>,
}Expand description
A job that uses a Model to produce predictions on multiple input instances. If predictions for significant portion of the instances fail, the job may finish without attempting predictions for all remaining instances.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations batch prediction jobs get projects (response)
- locations batch prediction jobs create projects (request|response)
Fields§
§update_time: Option<DateTime<Utc>>Output only. Time when the BatchPredictionJob was most recently updated.
display_name: Option<String>Required. The user-defined name of this BatchPredictionJob.
model_parameters: Option<Value>The parameters that govern the predictions. The schema of the parameters may be specified via the Model’s PredictSchemata’s parameters_schema_uri.
input_config: Option<GoogleCloudAiplatformV1BatchPredictionJobInputConfig>Required. Input configuration of the instances on which predictions are performed. The schema of any single instance may be specified via the Model’s PredictSchemata’s instance_schema_uri.
create_time: Option<DateTime<Utc>>Output only. Time when the BatchPredictionJob was created.
instance_config: Option<GoogleCloudAiplatformV1BatchPredictionJobInstanceConfig>Configuration for how to convert batch prediction input instances to the prediction instances that are sent to the Model.
dedicated_resources: Option<GoogleCloudAiplatformV1BatchDedicatedResources>The config of resources used by the Model during the batch prediction. If the Model supports DEDICATED_RESOURCES this config may be provided (and the job will use these resources), if the Model doesn’t support AUTOMATIC_RESOURCES, this config must be provided.
model_version_id: Option<String>Output only. The version ID of the Model that produces the predictions via this job.
unmanaged_container_model: Option<GoogleCloudAiplatformV1UnmanagedContainerModel>Contains model information necessary to perform batch prediction without requiring uploading to model registry. Exactly one of model and unmanaged_container_model must be set.
resources_consumed: Option<GoogleCloudAiplatformV1ResourcesConsumed>Output only. Information about resources that had been consumed by this job. Provided in real time at best effort basis, as well as a final value once the job completes. Note: This field currently may be not populated for batch predictions that use AutoML Models.
labels: Option<HashMap<String, String>>The labels with user-defined metadata to organize BatchPredictionJobs. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
manual_batch_tuning_parameters: Option<GoogleCloudAiplatformV1ManualBatchTuningParameters>Immutable. Parameters configuring the batch behavior. Currently only applicable when dedicated_resources are used (in other cases Vertex AI does the tuning itself).
explanation_spec: Option<GoogleCloudAiplatformV1ExplanationSpec>Explanation configuration for this BatchPredictionJob. Can be specified only if generate_explanation is set to true. This value overrides the value of Model.explanation_spec. All fields of explanation_spec are optional in the request. If a field of the explanation_spec object is not populated, the corresponding field of the Model.explanation_spec object is inherited.
error: Option<GoogleRpcStatus>Output only. Only populated when the job’s state is JOB_STATE_FAILED or JOB_STATE_CANCELLED.
disable_container_logging: Option<bool>For custom-trained Models and AutoML Tabular Models, the container of the DeployedModel instances will send stderr and stdout streams to Cloud Logging by default. Please note that the logs incur cost, which are subject to Cloud Logging pricing. User can disable container logging by setting this flag to true.
state: Option<String>Output only. The detailed state of the job.
encryption_spec: Option<GoogleCloudAiplatformV1EncryptionSpec>Customer-managed encryption key options for a BatchPredictionJob. If this is set, then all resources created by the BatchPredictionJob will be encrypted with the provided encryption key.
service_account: Option<String>The service account that the DeployedModel’s container runs as. If not specified, a system generated one will be used, which has minimal permissions and the custom container, if used, may not have enough permission to access other Google Cloud resources. Users deploying the Model must have the iam.serviceAccounts.actAs permission on this service account.
generate_explanation: Option<bool>Generate explanation with the batch prediction results. When set to true, the batch prediction output changes based on the predictions_format field of the BatchPredictionJob.output_config object: * bigquery: output includes a column named explanation. The value is a struct that conforms to the Explanation object. * jsonl: The JSON objects on each line include an additional entry keyed explanation. The value of the entry is a JSON object that conforms to the Explanation object. * csv: Generating explanations for CSV format is not supported. If this field is set to true, either the Model.explanation_spec or explanation_spec must be populated.
output_config: Option<GoogleCloudAiplatformV1BatchPredictionJobOutputConfig>Required. The Configuration specifying where output predictions should be written. The schema of any single prediction may be specified as a concatenation of Model’s PredictSchemata’s instance_schema_uri and prediction_schema_uri.
name: Option<String>Output only. Resource name of the BatchPredictionJob.
partial_failures: Option<Vec<GoogleRpcStatus>>Output only. Partial failures encountered. For example, single files that can’t be read. This field never exceeds 20 entries. Status details fields contain standard Google Cloud error details.
end_time: Option<DateTime<Utc>>Output only. Time when the BatchPredictionJob entered any of the following states: JOB_STATE_SUCCEEDED, JOB_STATE_FAILED, JOB_STATE_CANCELLED.
completion_stats: Option<GoogleCloudAiplatformV1CompletionStats>Output only. Statistics on completed and failed prediction instances.
output_info: Option<GoogleCloudAiplatformV1BatchPredictionJobOutputInfo>Output only. Information further describing the output of this job.
model: Option<String>The name of the Model resource that produces the predictions via this job, must share the same ancestor Location. Starting this job has no impact on any existing deployments of the Model and their resources. Exactly one of model and unmanaged_container_model must be set. The model resource name may contain version id or version alias to specify the version. Example: projects/{project}/locations/{location}/models/{model}@2 or projects/{project}/locations/{location}/models/{model}@golden if no version is specified, the default version will be deployed. The model resource could also be a publisher model. Example: publishers/{publisher}/models/{model} or projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
start_time: Option<DateTime<Utc>>Output only. Time when the BatchPredictionJob for the first time entered the JOB_STATE_RUNNING state.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1BatchPredictionJob
impl Clone for GoogleCloudAiplatformV1BatchPredictionJob
Source§fn clone(&self) -> GoogleCloudAiplatformV1BatchPredictionJob
fn clone(&self) -> GoogleCloudAiplatformV1BatchPredictionJob
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudAiplatformV1BatchPredictionJob
impl Default for GoogleCloudAiplatformV1BatchPredictionJob
Source§fn default() -> GoogleCloudAiplatformV1BatchPredictionJob
fn default() -> GoogleCloudAiplatformV1BatchPredictionJob
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1BatchPredictionJob
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1BatchPredictionJob
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for GoogleCloudAiplatformV1BatchPredictionJob
impl ResponseResult for GoogleCloudAiplatformV1BatchPredictionJob
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1BatchPredictionJob
impl RefUnwindSafe for GoogleCloudAiplatformV1BatchPredictionJob
impl Send for GoogleCloudAiplatformV1BatchPredictionJob
impl Sync for GoogleCloudAiplatformV1BatchPredictionJob
impl Unpin for GoogleCloudAiplatformV1BatchPredictionJob
impl UnwindSafe for GoogleCloudAiplatformV1BatchPredictionJob
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more