google_cloud_aiplatform_v1_schema_predict_instance/
model.rs

1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17#![allow(rustdoc::redundant_explicit_links)]
18#![allow(rustdoc::broken_intra_doc_links)]
19#![no_implicit_prelude]
20extern crate bytes;
21extern crate serde;
22extern crate serde_json;
23extern crate serde_with;
24extern crate std;
25extern crate wkt;
26
27mod debug;
28mod deserialize;
29mod serialize;
30
31/// Prediction input format for Image Classification.
32#[derive(Clone, Default, PartialEq)]
33#[non_exhaustive]
34pub struct ImageClassificationPredictionInstance {
35    /// The image bytes or Cloud Storage URI to make the prediction on.
36    pub content: std::string::String,
37
38    /// The MIME type of the content of the image. Only the images in below listed
39    /// MIME types are supported.
40    ///
41    /// - image/jpeg
42    /// - image/gif
43    /// - image/png
44    /// - image/webp
45    /// - image/bmp
46    /// - image/tiff
47    /// - image/vnd.microsoft.icon
48    pub mime_type: std::string::String,
49
50    pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
51}
52
53impl ImageClassificationPredictionInstance {
54    pub fn new() -> Self {
55        std::default::Default::default()
56    }
57
58    /// Sets the value of [content][crate::model::ImageClassificationPredictionInstance::content].
59    ///
60    /// # Example
61    /// ```ignore,no_run
62    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::ImageClassificationPredictionInstance;
63    /// let x = ImageClassificationPredictionInstance::new().set_content("example");
64    /// ```
65    pub fn set_content<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
66        self.content = v.into();
67        self
68    }
69
70    /// Sets the value of [mime_type][crate::model::ImageClassificationPredictionInstance::mime_type].
71    ///
72    /// # Example
73    /// ```ignore,no_run
74    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::ImageClassificationPredictionInstance;
75    /// let x = ImageClassificationPredictionInstance::new().set_mime_type("example");
76    /// ```
77    pub fn set_mime_type<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
78        self.mime_type = v.into();
79        self
80    }
81}
82
83impl wkt::message::Message for ImageClassificationPredictionInstance {
84    fn typename() -> &'static str {
85        "type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance"
86    }
87}
88
89/// Prediction input format for Image Object Detection.
90#[derive(Clone, Default, PartialEq)]
91#[non_exhaustive]
92pub struct ImageObjectDetectionPredictionInstance {
93    /// The image bytes or Cloud Storage URI to make the prediction on.
94    pub content: std::string::String,
95
96    /// The MIME type of the content of the image. Only the images in below listed
97    /// MIME types are supported.
98    ///
99    /// - image/jpeg
100    /// - image/gif
101    /// - image/png
102    /// - image/webp
103    /// - image/bmp
104    /// - image/tiff
105    /// - image/vnd.microsoft.icon
106    pub mime_type: std::string::String,
107
108    pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
109}
110
111impl ImageObjectDetectionPredictionInstance {
112    pub fn new() -> Self {
113        std::default::Default::default()
114    }
115
116    /// Sets the value of [content][crate::model::ImageObjectDetectionPredictionInstance::content].
117    ///
118    /// # Example
119    /// ```ignore,no_run
120    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::ImageObjectDetectionPredictionInstance;
121    /// let x = ImageObjectDetectionPredictionInstance::new().set_content("example");
122    /// ```
123    pub fn set_content<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
124        self.content = v.into();
125        self
126    }
127
128    /// Sets the value of [mime_type][crate::model::ImageObjectDetectionPredictionInstance::mime_type].
129    ///
130    /// # Example
131    /// ```ignore,no_run
132    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::ImageObjectDetectionPredictionInstance;
133    /// let x = ImageObjectDetectionPredictionInstance::new().set_mime_type("example");
134    /// ```
135    pub fn set_mime_type<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
136        self.mime_type = v.into();
137        self
138    }
139}
140
141impl wkt::message::Message for ImageObjectDetectionPredictionInstance {
142    fn typename() -> &'static str {
143        "type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance"
144    }
145}
146
147/// Prediction input format for Image Segmentation.
148#[derive(Clone, Default, PartialEq)]
149#[non_exhaustive]
150pub struct ImageSegmentationPredictionInstance {
151    /// The image bytes to make the predictions on.
152    pub content: std::string::String,
153
154    /// The MIME type of the content of the image. Only the images in below listed
155    /// MIME types are supported.
156    ///
157    /// - image/jpeg
158    /// - image/png
159    pub mime_type: std::string::String,
160
161    pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
162}
163
164impl ImageSegmentationPredictionInstance {
165    pub fn new() -> Self {
166        std::default::Default::default()
167    }
168
169    /// Sets the value of [content][crate::model::ImageSegmentationPredictionInstance::content].
170    ///
171    /// # Example
172    /// ```ignore,no_run
173    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::ImageSegmentationPredictionInstance;
174    /// let x = ImageSegmentationPredictionInstance::new().set_content("example");
175    /// ```
176    pub fn set_content<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
177        self.content = v.into();
178        self
179    }
180
181    /// Sets the value of [mime_type][crate::model::ImageSegmentationPredictionInstance::mime_type].
182    ///
183    /// # Example
184    /// ```ignore,no_run
185    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::ImageSegmentationPredictionInstance;
186    /// let x = ImageSegmentationPredictionInstance::new().set_mime_type("example");
187    /// ```
188    pub fn set_mime_type<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
189        self.mime_type = v.into();
190        self
191    }
192}
193
194impl wkt::message::Message for ImageSegmentationPredictionInstance {
195    fn typename() -> &'static str {
196        "type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance"
197    }
198}
199
200/// Prediction input format for Text Classification.
201#[derive(Clone, Default, PartialEq)]
202#[non_exhaustive]
203pub struct TextClassificationPredictionInstance {
204    /// The text snippet to make the predictions on.
205    pub content: std::string::String,
206
207    /// The MIME type of the text snippet. The supported MIME types are listed
208    /// below.
209    ///
210    /// - text/plain
211    pub mime_type: std::string::String,
212
213    pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
214}
215
216impl TextClassificationPredictionInstance {
217    pub fn new() -> Self {
218        std::default::Default::default()
219    }
220
221    /// Sets the value of [content][crate::model::TextClassificationPredictionInstance::content].
222    ///
223    /// # Example
224    /// ```ignore,no_run
225    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::TextClassificationPredictionInstance;
226    /// let x = TextClassificationPredictionInstance::new().set_content("example");
227    /// ```
228    pub fn set_content<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
229        self.content = v.into();
230        self
231    }
232
233    /// Sets the value of [mime_type][crate::model::TextClassificationPredictionInstance::mime_type].
234    ///
235    /// # Example
236    /// ```ignore,no_run
237    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::TextClassificationPredictionInstance;
238    /// let x = TextClassificationPredictionInstance::new().set_mime_type("example");
239    /// ```
240    pub fn set_mime_type<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
241        self.mime_type = v.into();
242        self
243    }
244}
245
246impl wkt::message::Message for TextClassificationPredictionInstance {
247    fn typename() -> &'static str {
248        "type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance"
249    }
250}
251
252/// Prediction input format for Text Extraction.
253#[derive(Clone, Default, PartialEq)]
254#[non_exhaustive]
255pub struct TextExtractionPredictionInstance {
256    /// The text snippet to make the predictions on.
257    pub content: std::string::String,
258
259    /// The MIME type of the text snippet. The supported MIME types are listed
260    /// below.
261    ///
262    /// - text/plain
263    pub mime_type: std::string::String,
264
265    /// This field is only used for batch prediction. If a key is provided, the
266    /// batch prediction result will by mapped to this key. If omitted, then the
267    /// batch prediction result will contain the entire input instance. Vertex AI
268    /// will not check if keys in the request are duplicates, so it is up to the
269    /// caller to ensure the keys are unique.
270    pub key: std::string::String,
271
272    pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
273}
274
275impl TextExtractionPredictionInstance {
276    pub fn new() -> Self {
277        std::default::Default::default()
278    }
279
280    /// Sets the value of [content][crate::model::TextExtractionPredictionInstance::content].
281    ///
282    /// # Example
283    /// ```ignore,no_run
284    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::TextExtractionPredictionInstance;
285    /// let x = TextExtractionPredictionInstance::new().set_content("example");
286    /// ```
287    pub fn set_content<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
288        self.content = v.into();
289        self
290    }
291
292    /// Sets the value of [mime_type][crate::model::TextExtractionPredictionInstance::mime_type].
293    ///
294    /// # Example
295    /// ```ignore,no_run
296    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::TextExtractionPredictionInstance;
297    /// let x = TextExtractionPredictionInstance::new().set_mime_type("example");
298    /// ```
299    pub fn set_mime_type<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
300        self.mime_type = v.into();
301        self
302    }
303
304    /// Sets the value of [key][crate::model::TextExtractionPredictionInstance::key].
305    ///
306    /// # Example
307    /// ```ignore,no_run
308    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::TextExtractionPredictionInstance;
309    /// let x = TextExtractionPredictionInstance::new().set_key("example");
310    /// ```
311    pub fn set_key<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
312        self.key = v.into();
313        self
314    }
315}
316
317impl wkt::message::Message for TextExtractionPredictionInstance {
318    fn typename() -> &'static str {
319        "type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance"
320    }
321}
322
323/// Prediction input format for Text Sentiment.
324#[derive(Clone, Default, PartialEq)]
325#[non_exhaustive]
326pub struct TextSentimentPredictionInstance {
327    /// The text snippet to make the predictions on.
328    pub content: std::string::String,
329
330    /// The MIME type of the text snippet. The supported MIME types are listed
331    /// below.
332    ///
333    /// - text/plain
334    pub mime_type: std::string::String,
335
336    pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
337}
338
339impl TextSentimentPredictionInstance {
340    pub fn new() -> Self {
341        std::default::Default::default()
342    }
343
344    /// Sets the value of [content][crate::model::TextSentimentPredictionInstance::content].
345    ///
346    /// # Example
347    /// ```ignore,no_run
348    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::TextSentimentPredictionInstance;
349    /// let x = TextSentimentPredictionInstance::new().set_content("example");
350    /// ```
351    pub fn set_content<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
352        self.content = v.into();
353        self
354    }
355
356    /// Sets the value of [mime_type][crate::model::TextSentimentPredictionInstance::mime_type].
357    ///
358    /// # Example
359    /// ```ignore,no_run
360    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::TextSentimentPredictionInstance;
361    /// let x = TextSentimentPredictionInstance::new().set_mime_type("example");
362    /// ```
363    pub fn set_mime_type<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
364        self.mime_type = v.into();
365        self
366    }
367}
368
369impl wkt::message::Message for TextSentimentPredictionInstance {
370    fn typename() -> &'static str {
371        "type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance"
372    }
373}
374
375/// Prediction input format for Video Action Recognition.
376#[derive(Clone, Default, PartialEq)]
377#[non_exhaustive]
378pub struct VideoActionRecognitionPredictionInstance {
379    /// The Google Cloud Storage location of the video on which to perform the
380    /// prediction.
381    pub content: std::string::String,
382
383    /// The MIME type of the content of the video. Only the following are
384    /// supported: video/mp4 video/avi video/quicktime
385    pub mime_type: std::string::String,
386
387    /// The beginning, inclusive, of the video's time segment on which to perform
388    /// the prediction. Expressed as a number of seconds as measured from the
389    /// start of the video, with "s" appended at the end. Fractions are allowed,
390    /// up to a microsecond precision.
391    pub time_segment_start: std::string::String,
392
393    /// The end, exclusive, of the video's time segment on which to perform
394    /// the prediction. Expressed as a number of seconds as measured from the
395    /// start of the video, with "s" appended at the end. Fractions are allowed,
396    /// up to a microsecond precision, and "inf" or "Infinity" is allowed, which
397    /// means the end of the video.
398    pub time_segment_end: std::string::String,
399
400    pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
401}
402
403impl VideoActionRecognitionPredictionInstance {
404    pub fn new() -> Self {
405        std::default::Default::default()
406    }
407
408    /// Sets the value of [content][crate::model::VideoActionRecognitionPredictionInstance::content].
409    ///
410    /// # Example
411    /// ```ignore,no_run
412    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoActionRecognitionPredictionInstance;
413    /// let x = VideoActionRecognitionPredictionInstance::new().set_content("example");
414    /// ```
415    pub fn set_content<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
416        self.content = v.into();
417        self
418    }
419
420    /// Sets the value of [mime_type][crate::model::VideoActionRecognitionPredictionInstance::mime_type].
421    ///
422    /// # Example
423    /// ```ignore,no_run
424    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoActionRecognitionPredictionInstance;
425    /// let x = VideoActionRecognitionPredictionInstance::new().set_mime_type("example");
426    /// ```
427    pub fn set_mime_type<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
428        self.mime_type = v.into();
429        self
430    }
431
432    /// Sets the value of [time_segment_start][crate::model::VideoActionRecognitionPredictionInstance::time_segment_start].
433    ///
434    /// # Example
435    /// ```ignore,no_run
436    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoActionRecognitionPredictionInstance;
437    /// let x = VideoActionRecognitionPredictionInstance::new().set_time_segment_start("example");
438    /// ```
439    pub fn set_time_segment_start<T: std::convert::Into<std::string::String>>(
440        mut self,
441        v: T,
442    ) -> Self {
443        self.time_segment_start = v.into();
444        self
445    }
446
447    /// Sets the value of [time_segment_end][crate::model::VideoActionRecognitionPredictionInstance::time_segment_end].
448    ///
449    /// # Example
450    /// ```ignore,no_run
451    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoActionRecognitionPredictionInstance;
452    /// let x = VideoActionRecognitionPredictionInstance::new().set_time_segment_end("example");
453    /// ```
454    pub fn set_time_segment_end<T: std::convert::Into<std::string::String>>(
455        mut self,
456        v: T,
457    ) -> Self {
458        self.time_segment_end = v.into();
459        self
460    }
461}
462
463impl wkt::message::Message for VideoActionRecognitionPredictionInstance {
464    fn typename() -> &'static str {
465        "type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance"
466    }
467}
468
469/// Prediction input format for Video Classification.
470#[derive(Clone, Default, PartialEq)]
471#[non_exhaustive]
472pub struct VideoClassificationPredictionInstance {
473    /// The Google Cloud Storage location of the video on which to perform the
474    /// prediction.
475    pub content: std::string::String,
476
477    /// The MIME type of the content of the video. Only the following are
478    /// supported: video/mp4 video/avi video/quicktime
479    pub mime_type: std::string::String,
480
481    /// The beginning, inclusive, of the video's time segment on which to perform
482    /// the prediction. Expressed as a number of seconds as measured from the
483    /// start of the video, with "s" appended at the end. Fractions are allowed,
484    /// up to a microsecond precision.
485    pub time_segment_start: std::string::String,
486
487    /// The end, exclusive, of the video's time segment on which to perform
488    /// the prediction. Expressed as a number of seconds as measured from the
489    /// start of the video, with "s" appended at the end. Fractions are allowed,
490    /// up to a microsecond precision, and "inf" or "Infinity" is allowed, which
491    /// means the end of the video.
492    pub time_segment_end: std::string::String,
493
494    pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
495}
496
497impl VideoClassificationPredictionInstance {
498    pub fn new() -> Self {
499        std::default::Default::default()
500    }
501
502    /// Sets the value of [content][crate::model::VideoClassificationPredictionInstance::content].
503    ///
504    /// # Example
505    /// ```ignore,no_run
506    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoClassificationPredictionInstance;
507    /// let x = VideoClassificationPredictionInstance::new().set_content("example");
508    /// ```
509    pub fn set_content<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
510        self.content = v.into();
511        self
512    }
513
514    /// Sets the value of [mime_type][crate::model::VideoClassificationPredictionInstance::mime_type].
515    ///
516    /// # Example
517    /// ```ignore,no_run
518    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoClassificationPredictionInstance;
519    /// let x = VideoClassificationPredictionInstance::new().set_mime_type("example");
520    /// ```
521    pub fn set_mime_type<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
522        self.mime_type = v.into();
523        self
524    }
525
526    /// Sets the value of [time_segment_start][crate::model::VideoClassificationPredictionInstance::time_segment_start].
527    ///
528    /// # Example
529    /// ```ignore,no_run
530    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoClassificationPredictionInstance;
531    /// let x = VideoClassificationPredictionInstance::new().set_time_segment_start("example");
532    /// ```
533    pub fn set_time_segment_start<T: std::convert::Into<std::string::String>>(
534        mut self,
535        v: T,
536    ) -> Self {
537        self.time_segment_start = v.into();
538        self
539    }
540
541    /// Sets the value of [time_segment_end][crate::model::VideoClassificationPredictionInstance::time_segment_end].
542    ///
543    /// # Example
544    /// ```ignore,no_run
545    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoClassificationPredictionInstance;
546    /// let x = VideoClassificationPredictionInstance::new().set_time_segment_end("example");
547    /// ```
548    pub fn set_time_segment_end<T: std::convert::Into<std::string::String>>(
549        mut self,
550        v: T,
551    ) -> Self {
552        self.time_segment_end = v.into();
553        self
554    }
555}
556
557impl wkt::message::Message for VideoClassificationPredictionInstance {
558    fn typename() -> &'static str {
559        "type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance"
560    }
561}
562
563/// Prediction input format for Video Object Tracking.
564#[derive(Clone, Default, PartialEq)]
565#[non_exhaustive]
566pub struct VideoObjectTrackingPredictionInstance {
567    /// The Google Cloud Storage location of the video on which to perform the
568    /// prediction.
569    pub content: std::string::String,
570
571    /// The MIME type of the content of the video. Only the following are
572    /// supported: video/mp4 video/avi video/quicktime
573    pub mime_type: std::string::String,
574
575    /// The beginning, inclusive, of the video's time segment on which to perform
576    /// the prediction. Expressed as a number of seconds as measured from the
577    /// start of the video, with "s" appended at the end. Fractions are allowed,
578    /// up to a microsecond precision.
579    pub time_segment_start: std::string::String,
580
581    /// The end, exclusive, of the video's time segment on which to perform
582    /// the prediction. Expressed as a number of seconds as measured from the
583    /// start of the video, with "s" appended at the end. Fractions are allowed,
584    /// up to a microsecond precision, and "inf" or "Infinity" is allowed, which
585    /// means the end of the video.
586    pub time_segment_end: std::string::String,
587
588    pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
589}
590
591impl VideoObjectTrackingPredictionInstance {
592    pub fn new() -> Self {
593        std::default::Default::default()
594    }
595
596    /// Sets the value of [content][crate::model::VideoObjectTrackingPredictionInstance::content].
597    ///
598    /// # Example
599    /// ```ignore,no_run
600    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoObjectTrackingPredictionInstance;
601    /// let x = VideoObjectTrackingPredictionInstance::new().set_content("example");
602    /// ```
603    pub fn set_content<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
604        self.content = v.into();
605        self
606    }
607
608    /// Sets the value of [mime_type][crate::model::VideoObjectTrackingPredictionInstance::mime_type].
609    ///
610    /// # Example
611    /// ```ignore,no_run
612    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoObjectTrackingPredictionInstance;
613    /// let x = VideoObjectTrackingPredictionInstance::new().set_mime_type("example");
614    /// ```
615    pub fn set_mime_type<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
616        self.mime_type = v.into();
617        self
618    }
619
620    /// Sets the value of [time_segment_start][crate::model::VideoObjectTrackingPredictionInstance::time_segment_start].
621    ///
622    /// # Example
623    /// ```ignore,no_run
624    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoObjectTrackingPredictionInstance;
625    /// let x = VideoObjectTrackingPredictionInstance::new().set_time_segment_start("example");
626    /// ```
627    pub fn set_time_segment_start<T: std::convert::Into<std::string::String>>(
628        mut self,
629        v: T,
630    ) -> Self {
631        self.time_segment_start = v.into();
632        self
633    }
634
635    /// Sets the value of [time_segment_end][crate::model::VideoObjectTrackingPredictionInstance::time_segment_end].
636    ///
637    /// # Example
638    /// ```ignore,no_run
639    /// # use google_cloud_aiplatform_v1_schema_predict_instance::model::VideoObjectTrackingPredictionInstance;
640    /// let x = VideoObjectTrackingPredictionInstance::new().set_time_segment_end("example");
641    /// ```
642    pub fn set_time_segment_end<T: std::convert::Into<std::string::String>>(
643        mut self,
644        v: T,
645    ) -> Self {
646        self.time_segment_end = v.into();
647        self
648    }
649}
650
651impl wkt::message::Message for VideoObjectTrackingPredictionInstance {
652    fn typename() -> &'static str {
653        "type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance"
654    }
655}