Enum google_api_proto::google::cloud::aiplatform::v1beta1::batch_prediction_job::output_config::Destination
source · pub enum Destination {
GcsDestination(GcsDestination),
BigqueryDestination(BigQueryDestination),
}
Expand description
Required. The destination of the output.
Variants§
GcsDestination(GcsDestination)
The Cloud Storage location of the directory where the output is
to be written to. In the given directory a new directory is created.
Its name is prediction-<model-display-name>-<job-create-time>
,
where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format.
Inside of it files predictions_0001.<extension>
,
predictions_0002.<extension>
, …, predictions_N.<extension>
are created where <extension>
depends on chosen
[predictions_format][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.predictions_format],
and N may equal 0001 and depends on the total number of successfully
predicted instances. If the Model has both
[instance][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
and
[prediction][google.cloud.aiplatform.v1beta1.PredictSchemata.parameters_schema_uri]
schemata defined then each such file contains predictions as per the
[predictions_format][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.predictions_format].
If prediction for any instance failed (partially or completely), then
an additional errors_0001.<extension>
, errors_0002.<extension>
,…,
errors_N.<extension>
files are created (N depends on total number
of failed predictions). These files contain the failed instances,
as per their schema, followed by an additional error
field which as
value has [google.rpc.Status][google.rpc.Status]
containing only code
and message
fields.
BigqueryDestination(BigQueryDestination)
The BigQuery project or dataset location where the output is to be
written to. If project is provided, a new dataset is created with name
prediction_<model-display-name>_<job-create-time>
where predictions
, and errors
.
If the Model has both
[instance][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
and
[prediction][google.cloud.aiplatform.v1beta1.PredictSchemata.parameters_schema_uri]
schemata defined then the tables have columns as follows: The
predictions
table contains instances for which the prediction
succeeded, it has columns as per a concatenation of the Model’s
instance and prediction schemata. The errors
table contains rows for
which the prediction has failed, it has instance columns, as per the
instance schema, followed by a single “errors” column, which as values
has [google.rpc.Status][google.rpc.Status]
represented as a STRUCT, and containing only code
and message
.
Implementations§
source§impl Destination
impl Destination
sourcepub fn merge<B>(
field: &mut Option<Destination>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<Destination>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for Destination
impl Clone for Destination
source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Destination
impl Debug for Destination
source§impl PartialEq for Destination
impl PartialEq for Destination
source§fn eq(&self, other: &Destination) -> bool
fn eq(&self, other: &Destination) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Destination
Auto Trait Implementations§
impl Freeze for Destination
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnwindSafe for Destination
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request