Debian Codegraph @

videointelligence/v1p2beta1/videointelligence-gen.go

raw symbols SCIP
1 // Copyright 2026 Google LLC.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // Code generated file. DO NOT EDIT.
6
7 // Package videointelligence provides access to the Cloud Video Intelligence API.
8 //
9 // This package is DEPRECATED. Use package cloud.google.com/go/videointelligence/apiv1 instead.
10 //
11 // For product documentation, see: https://cloud.google.com/video-intelligence/docs/
12 //
13 // # Library status
14 //
15 // These client libraries are officially supported by Google. However, this
16 // library is considered complete and is in maintenance mode. This means
17 // that we will address critical bugs and security issues but will not add
18 // any new features.
19 //
20 // When possible, we recommend using our newer
21 // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
22 // that are still actively being worked and iterated on.
23 //
24 // # Creating a client
25 //
26 // Usage example:
27 //
28 // import "google.golang.org/api/videointelligence/v1p2beta1"
29 // ...
30 // ctx := context.Background()
31 // videointelligenceService, err := videointelligence.NewService(ctx)
32 //
33 // In this example, Google Application Default Credentials are used for
34 // authentication. For information on how to create and obtain Application
35 // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
36 //
37 // # Other authentication options
38 //
39 // To use an API key for authentication (note: some APIs do not support API
40 // keys), use [google.golang.org/api/option.WithAPIKey]:
41 //
42 // videointelligenceService, err := videointelligence.NewService(ctx, option.WithAPIKey("AIza..."))
43 //
44 // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
45 // flow, use [google.golang.org/api/option.WithTokenSource]:
46 //
47 // config := &oauth2.Config{...}
48 // // ...
49 // token, err := config.Exchange(ctx, ...)
50 // videointelligenceService, err := videointelligence.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
51 //
52 // See [google.golang.org/api/option.ClientOption] for details on options.
53 package videointelligence // import "google.golang.org/api/videointelligence/v1p2beta1"
54
55 import (
56 "bytes"
57 "context"
58 "encoding/json"
59 "errors"
60 "fmt"
61 "io"
62 "log/slog"
63 "net/http"
64 "net/url"
65 "strconv"
66 "strings"
67
68 "github.com/googleapis/gax-go/v2/internallog"
69 googleapi "google.golang.org/api/googleapi"
70 internal "google.golang.org/api/internal"
71 gensupport "google.golang.org/api/internal/gensupport"
72 option "google.golang.org/api/option"
73 internaloption "google.golang.org/api/option/internaloption"
74 htransport "google.golang.org/api/transport/http"
75 )
76
77 // Always reference these packages, just in case the auto-generated code
78 // below doesn't.
79 var _ = bytes.NewBuffer
80 var _ = strconv.Itoa
81 var _ = fmt.Sprintf
82 var _ = json.NewDecoder
83 var _ = io.Copy
84 var _ = url.Parse
85 var _ = gensupport.MarshalJSON
86 var _ = googleapi.Version
87 var _ = errors.New
88 var _ = strings.Replace
89 var _ = context.Canceled
90 var _ = internaloption.WithDefaultEndpoint
91 var _ = internal.Version
92 var _ = internallog.New
93
94 const apiId = "videointelligence:v1p2beta1"
95 const apiName = "videointelligence"
96 const apiVersion = "v1p2beta1"
97 const basePath = "https://videointelligence.googleapis.com/"
98 const basePathTemplate = "https://videointelligence.UNIVERSE_DOMAIN/"
99 const mtlsBasePath = "https://videointelligence.mtls.googleapis.com/"
100
101 // OAuth2 scopes used by this API.
102 const (
103 // See, edit, configure, and delete your Google Cloud data and see the email
104 // address for your Google Account.
105 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
106 )
107
108 // NewService creates a new Service.
109 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
110 scopesOption := internaloption.WithDefaultScopes(
111 "https://www.googleapis.com/auth/cloud-platform",
112 )
113 // NOTE: prepend, so we don't override user-specified scopes.
114 opts = append([]option.ClientOption{scopesOption}, opts...)
115 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
116 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
117 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
118 opts = append(opts, internaloption.EnableNewAuthLibrary())
119 client, endpoint, err := htransport.NewClient(ctx, opts...)
120 if err != nil {
121 return nil, err
122 }
123 s := &Service{client: client, BasePath: basePath, logger: internaloption.GetLogger(opts)}
124 s.Videos = NewVideosService(s)
125 if endpoint != "" {
126 s.BasePath = endpoint
127 }
128 return s, nil
129 }
130
131 // New creates a new Service. It uses the provided http.Client for requests.
132 //
133 // Deprecated: please use NewService instead.
134 // To provide a custom HTTP client, use option.WithHTTPClient.
135 // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
136 func New(client *http.Client) (*Service, error) {
137 if client == nil {
138 return nil, errors.New("client is nil")
139 }
140 return NewService(context.TODO(), option.WithHTTPClient(client))
141 }
142
143 type Service struct {
144 client *http.Client
145 logger *slog.Logger
146 BasePath string // API endpoint base URL
147 UserAgent string // optional additional User-Agent fragment
148
149 Videos *VideosService
150 }
151
152 func (s *Service) userAgent() string {
153 if s.UserAgent == "" {
154 return googleapi.UserAgent
155 }
156 return googleapi.UserAgent + " " + s.UserAgent
157 }
158
159 func NewVideosService(s *Service) *VideosService {
160 rs := &VideosService{s: s}
161 return rs
162 }
163
164 type VideosService struct {
165 s *Service
166 }
167
168 // GoogleCloudVideointelligenceV1AnnotateVideoProgress: Video annotation
169 // progress. Included in the `metadata` field of the `Operation` returned by
170 // the `GetOperation` call of the `google::longrunning::Operations` service.
171 type GoogleCloudVideointelligenceV1AnnotateVideoProgress struct {
172 // AnnotationProgress: Progress metadata for all videos specified in
173 // `AnnotateVideoRequest`.
174 AnnotationProgress []*GoogleCloudVideointelligenceV1VideoAnnotationProgress `json:"annotationProgress,omitempty"`
175 // ForceSendFields is a list of field names (e.g. "AnnotationProgress") to
176 // unconditionally include in API requests. By default, fields with empty or
177 // default values are omitted from API requests. See
178 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
179 // details.
180 ForceSendFields []string `json:"-"`
181 // NullFields is a list of field names (e.g. "AnnotationProgress") to include
182 // in API requests with the JSON null value. By default, fields with empty
183 // values are omitted from API requests. See
184 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
185 NullFields []string `json:"-"`
186 }
187
188 func (s GoogleCloudVideointelligenceV1AnnotateVideoProgress) MarshalJSON() ([]byte, error) {
189 type NoMethod GoogleCloudVideointelligenceV1AnnotateVideoProgress
190 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
191 }
192
193 // GoogleCloudVideointelligenceV1AnnotateVideoResponse: Video annotation
194 // response. Included in the `response` field of the `Operation` returned by
195 // the `GetOperation` call of the `google::longrunning::Operations` service.
196 type GoogleCloudVideointelligenceV1AnnotateVideoResponse struct {
197 // AnnotationResults: Annotation results for all videos specified in
198 // `AnnotateVideoRequest`.
199 AnnotationResults []*GoogleCloudVideointelligenceV1VideoAnnotationResults `json:"annotationResults,omitempty"`
200 // ForceSendFields is a list of field names (e.g. "AnnotationResults") to
201 // unconditionally include in API requests. By default, fields with empty or
202 // default values are omitted from API requests. See
203 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
204 // details.
205 ForceSendFields []string `json:"-"`
206 // NullFields is a list of field names (e.g. "AnnotationResults") to include in
207 // API requests with the JSON null value. By default, fields with empty values
208 // are omitted from API requests. See
209 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
210 NullFields []string `json:"-"`
211 }
212
213 func (s GoogleCloudVideointelligenceV1AnnotateVideoResponse) MarshalJSON() ([]byte, error) {
214 type NoMethod GoogleCloudVideointelligenceV1AnnotateVideoResponse
215 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
216 }
217
218 // GoogleCloudVideointelligenceV1DetectedAttribute: A generic detected
219 // attribute represented by name in string format.
220 type GoogleCloudVideointelligenceV1DetectedAttribute struct {
221 // Confidence: Detected attribute confidence. Range [0, 1].
222 Confidence float64 `json:"confidence,omitempty"`
223 // Name: The name of the attribute, for example, glasses, dark_glasses,
224 // mouth_open. A full list of supported type names will be provided in the
225 // document.
226 Name string `json:"name,omitempty"`
227 // Value: Text value of the detection result. For example, the value for
228 // "HairColor" can be "black", "blonde", etc.
229 Value string `json:"value,omitempty"`
230 // ForceSendFields is a list of field names (e.g. "Confidence") to
231 // unconditionally include in API requests. By default, fields with empty or
232 // default values are omitted from API requests. See
233 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
234 // details.
235 ForceSendFields []string `json:"-"`
236 // NullFields is a list of field names (e.g. "Confidence") to include in API
237 // requests with the JSON null value. By default, fields with empty values are
238 // omitted from API requests. See
239 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
240 NullFields []string `json:"-"`
241 }
242
243 func (s GoogleCloudVideointelligenceV1DetectedAttribute) MarshalJSON() ([]byte, error) {
244 type NoMethod GoogleCloudVideointelligenceV1DetectedAttribute
245 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
246 }
247
248 func (s *GoogleCloudVideointelligenceV1DetectedAttribute) UnmarshalJSON(data []byte) error {
249 type NoMethod GoogleCloudVideointelligenceV1DetectedAttribute
250 var s1 struct {
251 Confidence gensupport.JSONFloat64 `json:"confidence"`
252 *NoMethod
253 }
254 s1.NoMethod = (*NoMethod)(s)
255 if err := json.Unmarshal(data, &s1); err != nil {
256 return err
257 }
258 s.Confidence = float64(s1.Confidence)
259 return nil
260 }
261
262 // GoogleCloudVideointelligenceV1DetectedLandmark: A generic detected landmark
263 // represented by name in string format and a 2D location.
264 type GoogleCloudVideointelligenceV1DetectedLandmark struct {
265 // Confidence: The confidence score of the detected landmark. Range [0, 1].
266 Confidence float64 `json:"confidence,omitempty"`
267 // Name: The name of this landmark, for example, left_hand, right_shoulder.
268 Name string `json:"name,omitempty"`
269 // Point: The 2D point of the detected landmark using the normalized image
270 // coordinate system. The normalized coordinates have the range from 0 to 1.
271 Point *GoogleCloudVideointelligenceV1NormalizedVertex `json:"point,omitempty"`
272 // ForceSendFields is a list of field names (e.g. "Confidence") to
273 // unconditionally include in API requests. By default, fields with empty or
274 // default values are omitted from API requests. See
275 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
276 // details.
277 ForceSendFields []string `json:"-"`
278 // NullFields is a list of field names (e.g. "Confidence") to include in API
279 // requests with the JSON null value. By default, fields with empty values are
280 // omitted from API requests. See
281 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
282 NullFields []string `json:"-"`
283 }
284
285 func (s GoogleCloudVideointelligenceV1DetectedLandmark) MarshalJSON() ([]byte, error) {
286 type NoMethod GoogleCloudVideointelligenceV1DetectedLandmark
287 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
288 }
289
290 func (s *GoogleCloudVideointelligenceV1DetectedLandmark) UnmarshalJSON(data []byte) error {
291 type NoMethod GoogleCloudVideointelligenceV1DetectedLandmark
292 var s1 struct {
293 Confidence gensupport.JSONFloat64 `json:"confidence"`
294 *NoMethod
295 }
296 s1.NoMethod = (*NoMethod)(s)
297 if err := json.Unmarshal(data, &s1); err != nil {
298 return err
299 }
300 s.Confidence = float64(s1.Confidence)
301 return nil
302 }
303
304 // GoogleCloudVideointelligenceV1Entity: Detected entity from video analysis.
305 type GoogleCloudVideointelligenceV1Entity struct {
306 // Description: Textual description, e.g., `Fixed-gear bicycle`.
307 Description string `json:"description,omitempty"`
308 // EntityId: Opaque entity ID. Some IDs may be available in Google Knowledge
309 // Graph Search API (https://developers.google.com/knowledge-graph/).
310 EntityId string `json:"entityId,omitempty"`
311 // LanguageCode: Language code for `description` in BCP-47 format.
312 LanguageCode string `json:"languageCode,omitempty"`
313 // ForceSendFields is a list of field names (e.g. "Description") to
314 // unconditionally include in API requests. By default, fields with empty or
315 // default values are omitted from API requests. See
316 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
317 // details.
318 ForceSendFields []string `json:"-"`
319 // NullFields is a list of field names (e.g. "Description") to include in API
320 // requests with the JSON null value. By default, fields with empty values are
321 // omitted from API requests. See
322 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
323 NullFields []string `json:"-"`
324 }
325
326 func (s GoogleCloudVideointelligenceV1Entity) MarshalJSON() ([]byte, error) {
327 type NoMethod GoogleCloudVideointelligenceV1Entity
328 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
329 }
330
331 // GoogleCloudVideointelligenceV1ExplicitContentAnnotation: Explicit content
332 // annotation (based on per-frame visual signals only). If no explicit content
333 // has been detected in a frame, no annotations are present for that frame.
334 type GoogleCloudVideointelligenceV1ExplicitContentAnnotation struct {
335 // Frames: All video frames where explicit content was detected.
336 Frames []*GoogleCloudVideointelligenceV1ExplicitContentFrame `json:"frames,omitempty"`
337 // Version: Feature version.
338 Version string `json:"version,omitempty"`
339 // ForceSendFields is a list of field names (e.g. "Frames") to unconditionally
340 // include in API requests. By default, fields with empty or default values are
341 // omitted from API requests. See
342 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
343 // details.
344 ForceSendFields []string `json:"-"`
345 // NullFields is a list of field names (e.g. "Frames") to include in API
346 // requests with the JSON null value. By default, fields with empty values are
347 // omitted from API requests. See
348 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
349 NullFields []string `json:"-"`
350 }
351
352 func (s GoogleCloudVideointelligenceV1ExplicitContentAnnotation) MarshalJSON() ([]byte, error) {
353 type NoMethod GoogleCloudVideointelligenceV1ExplicitContentAnnotation
354 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
355 }
356
357 // GoogleCloudVideointelligenceV1ExplicitContentFrame: Video frame level
358 // annotation results for explicit content.
359 type GoogleCloudVideointelligenceV1ExplicitContentFrame struct {
360 // PornographyLikelihood: Likelihood of the pornography content..
361 //
362 // Possible values:
363 // "LIKELIHOOD_UNSPECIFIED" - Unspecified likelihood.
364 // "VERY_UNLIKELY" - Very unlikely.
365 // "UNLIKELY" - Unlikely.
366 // "POSSIBLE" - Possible.
367 // "LIKELY" - Likely.
368 // "VERY_LIKELY" - Very likely.
369 PornographyLikelihood string `json:"pornographyLikelihood,omitempty"`
370 // TimeOffset: Time-offset, relative to the beginning of the video,
371 // corresponding to the video frame for this location.
372 TimeOffset string `json:"timeOffset,omitempty"`
373 // ForceSendFields is a list of field names (e.g. "PornographyLikelihood") to
374 // unconditionally include in API requests. By default, fields with empty or
375 // default values are omitted from API requests. See
376 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
377 // details.
378 ForceSendFields []string `json:"-"`
379 // NullFields is a list of field names (e.g. "PornographyLikelihood") to
380 // include in API requests with the JSON null value. By default, fields with
381 // empty values are omitted from API requests. See
382 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
383 NullFields []string `json:"-"`
384 }
385
386 func (s GoogleCloudVideointelligenceV1ExplicitContentFrame) MarshalJSON() ([]byte, error) {
387 type NoMethod GoogleCloudVideointelligenceV1ExplicitContentFrame
388 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
389 }
390
391 // GoogleCloudVideointelligenceV1ExportToOutputUriStatus: Status of exporting
392 // annotation response to user specified `output_uri`.
393 type GoogleCloudVideointelligenceV1ExportToOutputUriStatus struct {
394 // State: Output only. State of the `output_uri` export.
395 //
396 // Possible values:
397 // "STATE_UNSPECIFIED" - Default value.
398 // "SUCCEEDED" - Export succeeded.
399 // "FAILED" - Export failed.
400 State string `json:"state,omitempty"`
401 // Status: Output only. Only set if state is FAILED.
402 Status *GoogleRpcStatus `json:"status,omitempty"`
403 // ForceSendFields is a list of field names (e.g. "State") to unconditionally
404 // include in API requests. By default, fields with empty or default values are
405 // omitted from API requests. See
406 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
407 // details.
408 ForceSendFields []string `json:"-"`
409 // NullFields is a list of field names (e.g. "State") to include in API
410 // requests with the JSON null value. By default, fields with empty values are
411 // omitted from API requests. See
412 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
413 NullFields []string `json:"-"`
414 }
415
416 func (s GoogleCloudVideointelligenceV1ExportToOutputUriStatus) MarshalJSON() ([]byte, error) {
417 type NoMethod GoogleCloudVideointelligenceV1ExportToOutputUriStatus
418 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
419 }
420
421 // GoogleCloudVideointelligenceV1FaceAnnotation: Deprecated. No effect.
422 type GoogleCloudVideointelligenceV1FaceAnnotation struct {
423 // Frames: All video frames where a face was detected.
424 Frames []*GoogleCloudVideointelligenceV1FaceFrame `json:"frames,omitempty"`
425 // Segments: All video segments where a face was detected.
426 Segments []*GoogleCloudVideointelligenceV1FaceSegment `json:"segments,omitempty"`
427 // Thumbnail: Thumbnail of a representative face view (in JPEG format).
428 Thumbnail string `json:"thumbnail,omitempty"`
429 // ForceSendFields is a list of field names (e.g. "Frames") to unconditionally
430 // include in API requests. By default, fields with empty or default values are
431 // omitted from API requests. See
432 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
433 // details.
434 ForceSendFields []string `json:"-"`
435 // NullFields is a list of field names (e.g. "Frames") to include in API
436 // requests with the JSON null value. By default, fields with empty values are
437 // omitted from API requests. See
438 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
439 NullFields []string `json:"-"`
440 }
441
442 func (s GoogleCloudVideointelligenceV1FaceAnnotation) MarshalJSON() ([]byte, error) {
443 type NoMethod GoogleCloudVideointelligenceV1FaceAnnotation
444 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
445 }
446
447 // GoogleCloudVideointelligenceV1FaceDetectionAnnotation: Face detection
448 // annotation.
449 type GoogleCloudVideointelligenceV1FaceDetectionAnnotation struct {
450 // Thumbnail: The thumbnail of a person's face.
451 Thumbnail string `json:"thumbnail,omitempty"`
452 // Tracks: The face tracks with attributes.
453 Tracks []*GoogleCloudVideointelligenceV1Track `json:"tracks,omitempty"`
454 // Version: Feature version.
455 Version string `json:"version,omitempty"`
456 // ForceSendFields is a list of field names (e.g. "Thumbnail") to
457 // unconditionally include in API requests. By default, fields with empty or
458 // default values are omitted from API requests. See
459 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
460 // details.
461 ForceSendFields []string `json:"-"`
462 // NullFields is a list of field names (e.g. "Thumbnail") to include in API
463 // requests with the JSON null value. By default, fields with empty values are
464 // omitted from API requests. See
465 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
466 NullFields []string `json:"-"`
467 }
468
469 func (s GoogleCloudVideointelligenceV1FaceDetectionAnnotation) MarshalJSON() ([]byte, error) {
470 type NoMethod GoogleCloudVideointelligenceV1FaceDetectionAnnotation
471 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
472 }
473
474 // GoogleCloudVideointelligenceV1FaceFrame: Deprecated. No effect.
475 type GoogleCloudVideointelligenceV1FaceFrame struct {
476 // NormalizedBoundingBoxes: Normalized Bounding boxes in a frame. There can be
477 // more than one boxes if the same face is detected in multiple locations
478 // within the current frame.
479 NormalizedBoundingBoxes []*GoogleCloudVideointelligenceV1NormalizedBoundingBox `json:"normalizedBoundingBoxes,omitempty"`
480 // TimeOffset: Time-offset, relative to the beginning of the video,
481 // corresponding to the video frame for this location.
482 TimeOffset string `json:"timeOffset,omitempty"`
483 // ForceSendFields is a list of field names (e.g. "NormalizedBoundingBoxes") to
484 // unconditionally include in API requests. By default, fields with empty or
485 // default values are omitted from API requests. See
486 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
487 // details.
488 ForceSendFields []string `json:"-"`
489 // NullFields is a list of field names (e.g. "NormalizedBoundingBoxes") to
490 // include in API requests with the JSON null value. By default, fields with
491 // empty values are omitted from API requests. See
492 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
493 NullFields []string `json:"-"`
494 }
495
496 func (s GoogleCloudVideointelligenceV1FaceFrame) MarshalJSON() ([]byte, error) {
497 type NoMethod GoogleCloudVideointelligenceV1FaceFrame
498 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
499 }
500
501 // GoogleCloudVideointelligenceV1FaceSegment: Video segment level annotation
502 // results for face detection.
503 type GoogleCloudVideointelligenceV1FaceSegment struct {
504 // Segment: Video segment where a face was detected.
505 Segment *GoogleCloudVideointelligenceV1VideoSegment `json:"segment,omitempty"`
506 // ForceSendFields is a list of field names (e.g. "Segment") to unconditionally
507 // include in API requests. By default, fields with empty or default values are
508 // omitted from API requests. See
509 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
510 // details.
511 ForceSendFields []string `json:"-"`
512 // NullFields is a list of field names (e.g. "Segment") to include in API
513 // requests with the JSON null value. By default, fields with empty values are
514 // omitted from API requests. See
515 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
516 NullFields []string `json:"-"`
517 }
518
519 func (s GoogleCloudVideointelligenceV1FaceSegment) MarshalJSON() ([]byte, error) {
520 type NoMethod GoogleCloudVideointelligenceV1FaceSegment
521 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
522 }
523
524 // GoogleCloudVideointelligenceV1LabelAnnotation: Label annotation.
525 type GoogleCloudVideointelligenceV1LabelAnnotation struct {
526 // CategoryEntities: Common categories for the detected entity. For example,
527 // when the label is `Terrier`, the category is likely `dog`. And in some cases
528 // there might be more than one categories e.g., `Terrier` could also be a
529 // `pet`.
530 CategoryEntities []*GoogleCloudVideointelligenceV1Entity `json:"categoryEntities,omitempty"`
531 // Entity: Detected entity.
532 Entity *GoogleCloudVideointelligenceV1Entity `json:"entity,omitempty"`
533 // Frames: All video frames where a label was detected.
534 Frames []*GoogleCloudVideointelligenceV1LabelFrame `json:"frames,omitempty"`
535 // Segments: All video segments where a label was detected.
536 Segments []*GoogleCloudVideointelligenceV1LabelSegment `json:"segments,omitempty"`
537 // Version: Feature version.
538 Version string `json:"version,omitempty"`
539 // ForceSendFields is a list of field names (e.g. "CategoryEntities") to
540 // unconditionally include in API requests. By default, fields with empty or
541 // default values are omitted from API requests. See
542 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
543 // details.
544 ForceSendFields []string `json:"-"`
545 // NullFields is a list of field names (e.g. "CategoryEntities") to include in
546 // API requests with the JSON null value. By default, fields with empty values
547 // are omitted from API requests. See
548 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
549 NullFields []string `json:"-"`
550 }
551
552 func (s GoogleCloudVideointelligenceV1LabelAnnotation) MarshalJSON() ([]byte, error) {
553 type NoMethod GoogleCloudVideointelligenceV1LabelAnnotation
554 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
555 }
556
557 // GoogleCloudVideointelligenceV1LabelFrame: Video frame level annotation
558 // results for label detection.
559 type GoogleCloudVideointelligenceV1LabelFrame struct {
560 // Confidence: Confidence that the label is accurate. Range: [0, 1].
561 Confidence float64 `json:"confidence,omitempty"`
562 // TimeOffset: Time-offset, relative to the beginning of the video,
563 // corresponding to the video frame for this location.
564 TimeOffset string `json:"timeOffset,omitempty"`
565 // ForceSendFields is a list of field names (e.g. "Confidence") to
566 // unconditionally include in API requests. By default, fields with empty or
567 // default values are omitted from API requests. See
568 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
569 // details.
570 ForceSendFields []string `json:"-"`
571 // NullFields is a list of field names (e.g. "Confidence") to include in API
572 // requests with the JSON null value. By default, fields with empty values are
573 // omitted from API requests. See
574 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
575 NullFields []string `json:"-"`
576 }
577
578 func (s GoogleCloudVideointelligenceV1LabelFrame) MarshalJSON() ([]byte, error) {
579 type NoMethod GoogleCloudVideointelligenceV1LabelFrame
580 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
581 }
582
583 func (s *GoogleCloudVideointelligenceV1LabelFrame) UnmarshalJSON(data []byte) error {
584 type NoMethod GoogleCloudVideointelligenceV1LabelFrame
585 var s1 struct {
586 Confidence gensupport.JSONFloat64 `json:"confidence"`
587 *NoMethod
588 }
589 s1.NoMethod = (*NoMethod)(s)
590 if err := json.Unmarshal(data, &s1); err != nil {
591 return err
592 }
593 s.Confidence = float64(s1.Confidence)
594 return nil
595 }
596
597 // GoogleCloudVideointelligenceV1LabelSegment: Video segment level annotation
598 // results for label detection.
599 type GoogleCloudVideointelligenceV1LabelSegment struct {
600 // Confidence: Confidence that the label is accurate. Range: [0, 1].
601 Confidence float64 `json:"confidence,omitempty"`
602 // Segment: Video segment where a label was detected.
603 Segment *GoogleCloudVideointelligenceV1VideoSegment `json:"segment,omitempty"`
604 // ForceSendFields is a list of field names (e.g. "Confidence") to
605 // unconditionally include in API requests. By default, fields with empty or
606 // default values are omitted from API requests. See
607 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
608 // details.
609 ForceSendFields []string `json:"-"`
610 // NullFields is a list of field names (e.g. "Confidence") to include in API
611 // requests with the JSON null value. By default, fields with empty values are
612 // omitted from API requests. See
613 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
614 NullFields []string `json:"-"`
615 }
616
617 func (s GoogleCloudVideointelligenceV1LabelSegment) MarshalJSON() ([]byte, error) {
618 type NoMethod GoogleCloudVideointelligenceV1LabelSegment
619 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
620 }
621
622 func (s *GoogleCloudVideointelligenceV1LabelSegment) UnmarshalJSON(data []byte) error {
623 type NoMethod GoogleCloudVideointelligenceV1LabelSegment
624 var s1 struct {
625 Confidence gensupport.JSONFloat64 `json:"confidence"`
626 *NoMethod
627 }
628 s1.NoMethod = (*NoMethod)(s)
629 if err := json.Unmarshal(data, &s1); err != nil {
630 return err
631 }
632 s.Confidence = float64(s1.Confidence)
633 return nil
634 }
635
636 // GoogleCloudVideointelligenceV1LogoRecognitionAnnotation: Annotation
637 // corresponding to one detected, tracked and recognized logo class.
638 type GoogleCloudVideointelligenceV1LogoRecognitionAnnotation struct {
639 // Entity: Entity category information to specify the logo class that all the
640 // logo tracks within this LogoRecognitionAnnotation are recognized as.
641 Entity *GoogleCloudVideointelligenceV1Entity `json:"entity,omitempty"`
642 // Segments: All video segments where the recognized logo appears. There might
643 // be multiple instances of the same logo class appearing in one VideoSegment.
644 Segments []*GoogleCloudVideointelligenceV1VideoSegment `json:"segments,omitempty"`
645 // Tracks: All logo tracks where the recognized logo appears. Each track
646 // corresponds to one logo instance appearing in consecutive frames.
647 Tracks []*GoogleCloudVideointelligenceV1Track `json:"tracks,omitempty"`
648 // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
649 // include in API requests. By default, fields with empty or default values are
650 // omitted from API requests. See
651 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
652 // details.
653 ForceSendFields []string `json:"-"`
654 // NullFields is a list of field names (e.g. "Entity") to include in API
655 // requests with the JSON null value. By default, fields with empty values are
656 // omitted from API requests. See
657 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
658 NullFields []string `json:"-"`
659 }
660
661 func (s GoogleCloudVideointelligenceV1LogoRecognitionAnnotation) MarshalJSON() ([]byte, error) {
662 type NoMethod GoogleCloudVideointelligenceV1LogoRecognitionAnnotation
663 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
664 }
665
666 // GoogleCloudVideointelligenceV1NormalizedBoundingBox: Normalized bounding
667 // box. The normalized vertex coordinates are relative to the original image.
668 // Range: [0, 1].
669 type GoogleCloudVideointelligenceV1NormalizedBoundingBox struct {
670 // Bottom: Bottom Y coordinate.
671 Bottom float64 `json:"bottom,omitempty"`
672 // Left: Left X coordinate.
673 Left float64 `json:"left,omitempty"`
674 // Right: Right X coordinate.
675 Right float64 `json:"right,omitempty"`
676 // Top: Top Y coordinate.
677 Top float64 `json:"top,omitempty"`
678 // ForceSendFields is a list of field names (e.g. "Bottom") to unconditionally
679 // include in API requests. By default, fields with empty or default values are
680 // omitted from API requests. See
681 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
682 // details.
683 ForceSendFields []string `json:"-"`
684 // NullFields is a list of field names (e.g. "Bottom") to include in API
685 // requests with the JSON null value. By default, fields with empty values are
686 // omitted from API requests. See
687 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
688 NullFields []string `json:"-"`
689 }
690
691 func (s GoogleCloudVideointelligenceV1NormalizedBoundingBox) MarshalJSON() ([]byte, error) {
692 type NoMethod GoogleCloudVideointelligenceV1NormalizedBoundingBox
693 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
694 }
695
696 func (s *GoogleCloudVideointelligenceV1NormalizedBoundingBox) UnmarshalJSON(data []byte) error {
697 type NoMethod GoogleCloudVideointelligenceV1NormalizedBoundingBox
698 var s1 struct {
699 Bottom gensupport.JSONFloat64 `json:"bottom"`
700 Left gensupport.JSONFloat64 `json:"left"`
701 Right gensupport.JSONFloat64 `json:"right"`
702 Top gensupport.JSONFloat64 `json:"top"`
703 *NoMethod
704 }
705 s1.NoMethod = (*NoMethod)(s)
706 if err := json.Unmarshal(data, &s1); err != nil {
707 return err
708 }
709 s.Bottom = float64(s1.Bottom)
710 s.Left = float64(s1.Left)
711 s.Right = float64(s1.Right)
712 s.Top = float64(s1.Top)
713 return nil
714 }
715
716 // GoogleCloudVideointelligenceV1NormalizedBoundingPoly: Normalized bounding
717 // polygon for text (that might not be aligned with axis). Contains list of the
718 // corner points in clockwise order starting from top-left corner. For example,
719 // for a rectangular bounding box: When the text is horizontal it might look
720 // like: 0----1 | | 3----2 When it's clockwise rotated 180 degrees around the
721 // top-left corner it becomes: 2----3 | | 1----0 and the vertex order will
722 // still be (0, 1, 2, 3). Note that values can be less than 0, or greater than
723 // 1 due to trigonometric calculations for location of the box.
724 type GoogleCloudVideointelligenceV1NormalizedBoundingPoly struct {
725 // Vertices: Normalized vertices of the bounding polygon.
726 Vertices []*GoogleCloudVideointelligenceV1NormalizedVertex `json:"vertices,omitempty"`
727 // ForceSendFields is a list of field names (e.g. "Vertices") to
728 // unconditionally include in API requests. By default, fields with empty or
729 // default values are omitted from API requests. See
730 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
731 // details.
732 ForceSendFields []string `json:"-"`
733 // NullFields is a list of field names (e.g. "Vertices") to include in API
734 // requests with the JSON null value. By default, fields with empty values are
735 // omitted from API requests. See
736 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
737 NullFields []string `json:"-"`
738 }
739
740 func (s GoogleCloudVideointelligenceV1NormalizedBoundingPoly) MarshalJSON() ([]byte, error) {
741 type NoMethod GoogleCloudVideointelligenceV1NormalizedBoundingPoly
742 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
743 }
744
745 // GoogleCloudVideointelligenceV1NormalizedVertex: A vertex represents a 2D
746 // point in the image. NOTE: the normalized vertex coordinates are relative to
747 // the original image and range from 0 to 1.
748 type GoogleCloudVideointelligenceV1NormalizedVertex struct {
749 // X: X coordinate.
750 X float64 `json:"x,omitempty"`
751 // Y: Y coordinate.
752 Y float64 `json:"y,omitempty"`
753 // ForceSendFields is a list of field names (e.g. "X") to unconditionally
754 // include in API requests. By default, fields with empty or default values are
755 // omitted from API requests. See
756 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
757 // details.
758 ForceSendFields []string `json:"-"`
759 // NullFields is a list of field names (e.g. "X") to include in API requests
760 // with the JSON null value. By default, fields with empty values are omitted
761 // from API requests. See
762 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
763 NullFields []string `json:"-"`
764 }
765
766 func (s GoogleCloudVideointelligenceV1NormalizedVertex) MarshalJSON() ([]byte, error) {
767 type NoMethod GoogleCloudVideointelligenceV1NormalizedVertex
768 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
769 }
770
771 func (s *GoogleCloudVideointelligenceV1NormalizedVertex) UnmarshalJSON(data []byte) error {
772 type NoMethod GoogleCloudVideointelligenceV1NormalizedVertex
773 var s1 struct {
774 X gensupport.JSONFloat64 `json:"x"`
775 Y gensupport.JSONFloat64 `json:"y"`
776 *NoMethod
777 }
778 s1.NoMethod = (*NoMethod)(s)
779 if err := json.Unmarshal(data, &s1); err != nil {
780 return err
781 }
782 s.X = float64(s1.X)
783 s.Y = float64(s1.Y)
784 return nil
785 }
786
787 // GoogleCloudVideointelligenceV1ObjectTrackingAnnotation: Annotations
788 // corresponding to one tracked object.
789 type GoogleCloudVideointelligenceV1ObjectTrackingAnnotation struct {
790 // Confidence: Object category's labeling confidence of this track.
791 Confidence float64 `json:"confidence,omitempty"`
792 // Entity: Entity to specify the object category that this track is labeled as.
793 Entity *GoogleCloudVideointelligenceV1Entity `json:"entity,omitempty"`
794 // Frames: Information corresponding to all frames where this object track
795 // appears. Non-streaming batch mode: it may be one or multiple
796 // ObjectTrackingFrame messages in frames. Streaming mode: it can only be one
797 // ObjectTrackingFrame message in frames.
798 Frames []*GoogleCloudVideointelligenceV1ObjectTrackingFrame `json:"frames,omitempty"`
799 // Segment: Non-streaming batch mode ONLY. Each object track corresponds to one
800 // video segment where it appears.
801 Segment *GoogleCloudVideointelligenceV1VideoSegment `json:"segment,omitempty"`
802 // TrackId: Streaming mode ONLY. In streaming mode, we do not know the end time
803 // of a tracked object before it is completed. Hence, there is no VideoSegment
804 // info returned. Instead, we provide a unique identifiable integer track_id so
805 // that the customers can correlate the results of the ongoing
806 // ObjectTrackAnnotation of the same track_id over time.
807 TrackId int64 `json:"trackId,omitempty,string"`
808 // Version: Feature version.
809 Version string `json:"version,omitempty"`
810 // ForceSendFields is a list of field names (e.g. "Confidence") to
811 // unconditionally include in API requests. By default, fields with empty or
812 // default values are omitted from API requests. See
813 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
814 // details.
815 ForceSendFields []string `json:"-"`
816 // NullFields is a list of field names (e.g. "Confidence") to include in API
817 // requests with the JSON null value. By default, fields with empty values are
818 // omitted from API requests. See
819 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
820 NullFields []string `json:"-"`
821 }
822
823 func (s GoogleCloudVideointelligenceV1ObjectTrackingAnnotation) MarshalJSON() ([]byte, error) {
824 type NoMethod GoogleCloudVideointelligenceV1ObjectTrackingAnnotation
825 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
826 }
827
828 func (s *GoogleCloudVideointelligenceV1ObjectTrackingAnnotation) UnmarshalJSON(data []byte) error {
829 type NoMethod GoogleCloudVideointelligenceV1ObjectTrackingAnnotation
830 var s1 struct {
831 Confidence gensupport.JSONFloat64 `json:"confidence"`
832 *NoMethod
833 }
834 s1.NoMethod = (*NoMethod)(s)
835 if err := json.Unmarshal(data, &s1); err != nil {
836 return err
837 }
838 s.Confidence = float64(s1.Confidence)
839 return nil
840 }
841
842 // GoogleCloudVideointelligenceV1ObjectTrackingFrame: Video frame level
843 // annotations for object detection and tracking. This field stores per frame
844 // location, time offset, and confidence.
845 type GoogleCloudVideointelligenceV1ObjectTrackingFrame struct {
846 // NormalizedBoundingBox: The normalized bounding box location of this object
847 // track for the frame.
848 NormalizedBoundingBox *GoogleCloudVideointelligenceV1NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
849 // TimeOffset: The timestamp of the frame in microseconds.
850 TimeOffset string `json:"timeOffset,omitempty"`
851 // ForceSendFields is a list of field names (e.g. "NormalizedBoundingBox") to
852 // unconditionally include in API requests. By default, fields with empty or
853 // default values are omitted from API requests. See
854 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
855 // details.
856 ForceSendFields []string `json:"-"`
857 // NullFields is a list of field names (e.g. "NormalizedBoundingBox") to
858 // include in API requests with the JSON null value. By default, fields with
859 // empty values are omitted from API requests. See
860 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
861 NullFields []string `json:"-"`
862 }
863
864 func (s GoogleCloudVideointelligenceV1ObjectTrackingFrame) MarshalJSON() ([]byte, error) {
865 type NoMethod GoogleCloudVideointelligenceV1ObjectTrackingFrame
866 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
867 }
868
869 // GoogleCloudVideointelligenceV1PersonDetectionAnnotation: Person detection
870 // annotation per video.
871 type GoogleCloudVideointelligenceV1PersonDetectionAnnotation struct {
872 // Tracks: The detected tracks of a person.
873 Tracks []*GoogleCloudVideointelligenceV1Track `json:"tracks,omitempty"`
874 // Version: Feature version.
875 Version string `json:"version,omitempty"`
876 // ForceSendFields is a list of field names (e.g. "Tracks") to unconditionally
877 // include in API requests. By default, fields with empty or default values are
878 // omitted from API requests. See
879 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
880 // details.
881 ForceSendFields []string `json:"-"`
882 // NullFields is a list of field names (e.g. "Tracks") to include in API
883 // requests with the JSON null value. By default, fields with empty values are
884 // omitted from API requests. See
885 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
886 NullFields []string `json:"-"`
887 }
888
889 func (s GoogleCloudVideointelligenceV1PersonDetectionAnnotation) MarshalJSON() ([]byte, error) {
890 type NoMethod GoogleCloudVideointelligenceV1PersonDetectionAnnotation
891 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
892 }
893
894 // GoogleCloudVideointelligenceV1SpeechRecognitionAlternative: Alternative
895 // hypotheses (a.k.a. n-best list).
896 type GoogleCloudVideointelligenceV1SpeechRecognitionAlternative struct {
897 // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A
898 // higher number indicates an estimated greater likelihood that the recognized
899 // words are correct. This field is set only for the top alternative. This
900 // field is not guaranteed to be accurate and users should not rely on it to be
901 // always provided. The default of 0.0 is a sentinel value indicating
902 // `confidence` was not set.
903 Confidence float64 `json:"confidence,omitempty"`
904 // Transcript: Transcript text representing the words that the user spoke.
905 Transcript string `json:"transcript,omitempty"`
906 // Words: Output only. A list of word-specific information for each recognized
907 // word. Note: When `enable_speaker_diarization` is set to true, you will see
908 // all the words from the beginning of the audio.
909 Words []*GoogleCloudVideointelligenceV1WordInfo `json:"words,omitempty"`
910 // ForceSendFields is a list of field names (e.g. "Confidence") to
911 // unconditionally include in API requests. By default, fields with empty or
912 // default values are omitted from API requests. See
913 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
914 // details.
915 ForceSendFields []string `json:"-"`
916 // NullFields is a list of field names (e.g. "Confidence") to include in API
917 // requests with the JSON null value. By default, fields with empty values are
918 // omitted from API requests. See
919 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
920 NullFields []string `json:"-"`
921 }
922
923 func (s GoogleCloudVideointelligenceV1SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) {
924 type NoMethod GoogleCloudVideointelligenceV1SpeechRecognitionAlternative
925 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
926 }
927
928 func (s *GoogleCloudVideointelligenceV1SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error {
929 type NoMethod GoogleCloudVideointelligenceV1SpeechRecognitionAlternative
930 var s1 struct {
931 Confidence gensupport.JSONFloat64 `json:"confidence"`
932 *NoMethod
933 }
934 s1.NoMethod = (*NoMethod)(s)
935 if err := json.Unmarshal(data, &s1); err != nil {
936 return err
937 }
938 s.Confidence = float64(s1.Confidence)
939 return nil
940 }
941
942 // GoogleCloudVideointelligenceV1SpeechTranscription: A speech recognition
943 // result corresponding to a portion of the audio.
944 type GoogleCloudVideointelligenceV1SpeechTranscription struct {
945 // Alternatives: May contain one or more recognition hypotheses (up to the
946 // maximum specified in `max_alternatives`). These alternatives are ordered in
947 // terms of accuracy, with the top (first) alternative being the most probable,
948 // as ranked by the recognizer.
949 Alternatives []*GoogleCloudVideointelligenceV1SpeechRecognitionAlternative `json:"alternatives,omitempty"`
950 // LanguageCode: Output only. The BCP-47
951 // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language
952 // in this result. This language code was detected to have the most likelihood
953 // of being spoken in the audio.
954 LanguageCode string `json:"languageCode,omitempty"`
955 // ForceSendFields is a list of field names (e.g. "Alternatives") to
956 // unconditionally include in API requests. By default, fields with empty or
957 // default values are omitted from API requests. See
958 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
959 // details.
960 ForceSendFields []string `json:"-"`
961 // NullFields is a list of field names (e.g. "Alternatives") to include in API
962 // requests with the JSON null value. By default, fields with empty values are
963 // omitted from API requests. See
964 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
965 NullFields []string `json:"-"`
966 }
967
968 func (s GoogleCloudVideointelligenceV1SpeechTranscription) MarshalJSON() ([]byte, error) {
969 type NoMethod GoogleCloudVideointelligenceV1SpeechTranscription
970 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
971 }
972
973 // GoogleCloudVideointelligenceV1TextAnnotation: Annotations related to one
974 // detected OCR text snippet. This will contain the corresponding text,
975 // confidence value, and frame level information for each detection.
976 type GoogleCloudVideointelligenceV1TextAnnotation struct {
977 // Segments: All video segments where OCR detected text appears.
978 Segments []*GoogleCloudVideointelligenceV1TextSegment `json:"segments,omitempty"`
979 // Text: The detected text.
980 Text string `json:"text,omitempty"`
981 // Version: Feature version.
982 Version string `json:"version,omitempty"`
983 // ForceSendFields is a list of field names (e.g. "Segments") to
984 // unconditionally include in API requests. By default, fields with empty or
985 // default values are omitted from API requests. See
986 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
987 // details.
988 ForceSendFields []string `json:"-"`
989 // NullFields is a list of field names (e.g. "Segments") to include in API
990 // requests with the JSON null value. By default, fields with empty values are
991 // omitted from API requests. See
992 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
993 NullFields []string `json:"-"`
994 }
995
996 func (s GoogleCloudVideointelligenceV1TextAnnotation) MarshalJSON() ([]byte, error) {
997 type NoMethod GoogleCloudVideointelligenceV1TextAnnotation
998 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
999 }
1000
1001 // GoogleCloudVideointelligenceV1TextFrame: Video frame level annotation
1002 // results for text annotation (OCR). Contains information regarding timestamp
1003 // and bounding box locations for the frames containing detected OCR text
1004 // snippets.
1005 type GoogleCloudVideointelligenceV1TextFrame struct {
1006 // RotatedBoundingBox: Bounding polygon of the detected text for this frame.
1007 RotatedBoundingBox *GoogleCloudVideointelligenceV1NormalizedBoundingPoly `json:"rotatedBoundingBox,omitempty"`
1008 // TimeOffset: Timestamp of this frame.
1009 TimeOffset string `json:"timeOffset,omitempty"`
1010 // ForceSendFields is a list of field names (e.g. "RotatedBoundingBox") to
1011 // unconditionally include in API requests. By default, fields with empty or
1012 // default values are omitted from API requests. See
1013 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1014 // details.
1015 ForceSendFields []string `json:"-"`
1016 // NullFields is a list of field names (e.g. "RotatedBoundingBox") to include
1017 // in API requests with the JSON null value. By default, fields with empty
1018 // values are omitted from API requests. See
1019 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1020 NullFields []string `json:"-"`
1021 }
1022
1023 func (s GoogleCloudVideointelligenceV1TextFrame) MarshalJSON() ([]byte, error) {
1024 type NoMethod GoogleCloudVideointelligenceV1TextFrame
1025 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1026 }
1027
1028 // GoogleCloudVideointelligenceV1TextSegment: Video segment level annotation
1029 // results for text detection.
1030 type GoogleCloudVideointelligenceV1TextSegment struct {
1031 // Confidence: Confidence for the track of detected text. It is calculated as
1032 // the highest over all frames where OCR detected text appears.
1033 Confidence float64 `json:"confidence,omitempty"`
1034 // Frames: Information related to the frames where OCR detected text appears.
1035 Frames []*GoogleCloudVideointelligenceV1TextFrame `json:"frames,omitempty"`
1036 // Segment: Video segment where a text snippet was detected.
1037 Segment *GoogleCloudVideointelligenceV1VideoSegment `json:"segment,omitempty"`
1038 // ForceSendFields is a list of field names (e.g. "Confidence") to
1039 // unconditionally include in API requests. By default, fields with empty or
1040 // default values are omitted from API requests. See
1041 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1042 // details.
1043 ForceSendFields []string `json:"-"`
1044 // NullFields is a list of field names (e.g. "Confidence") to include in API
1045 // requests with the JSON null value. By default, fields with empty values are
1046 // omitted from API requests. See
1047 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1048 NullFields []string `json:"-"`
1049 }
1050
1051 func (s GoogleCloudVideointelligenceV1TextSegment) MarshalJSON() ([]byte, error) {
1052 type NoMethod GoogleCloudVideointelligenceV1TextSegment
1053 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1054 }
1055
1056 func (s *GoogleCloudVideointelligenceV1TextSegment) UnmarshalJSON(data []byte) error {
1057 type NoMethod GoogleCloudVideointelligenceV1TextSegment
1058 var s1 struct {
1059 Confidence gensupport.JSONFloat64 `json:"confidence"`
1060 *NoMethod
1061 }
1062 s1.NoMethod = (*NoMethod)(s)
1063 if err := json.Unmarshal(data, &s1); err != nil {
1064 return err
1065 }
1066 s.Confidence = float64(s1.Confidence)
1067 return nil
1068 }
1069
1070 // GoogleCloudVideointelligenceV1TimestampedObject: For tracking related
1071 // features. An object at time_offset with attributes, and located with
1072 // normalized_bounding_box.
1073 type GoogleCloudVideointelligenceV1TimestampedObject struct {
1074 // Attributes: Optional. The attributes of the object in the bounding box.
1075 Attributes []*GoogleCloudVideointelligenceV1DetectedAttribute `json:"attributes,omitempty"`
1076 // Landmarks: Optional. The detected landmarks.
1077 Landmarks []*GoogleCloudVideointelligenceV1DetectedLandmark `json:"landmarks,omitempty"`
1078 // NormalizedBoundingBox: Normalized Bounding box in a frame, where the object
1079 // is located.
1080 NormalizedBoundingBox *GoogleCloudVideointelligenceV1NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
1081 // TimeOffset: Time-offset, relative to the beginning of the video,
1082 // corresponding to the video frame for this object.
1083 TimeOffset string `json:"timeOffset,omitempty"`
1084 // ForceSendFields is a list of field names (e.g. "Attributes") to
1085 // unconditionally include in API requests. By default, fields with empty or
1086 // default values are omitted from API requests. See
1087 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1088 // details.
1089 ForceSendFields []string `json:"-"`
1090 // NullFields is a list of field names (e.g. "Attributes") to include in API
1091 // requests with the JSON null value. By default, fields with empty values are
1092 // omitted from API requests. See
1093 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1094 NullFields []string `json:"-"`
1095 }
1096
1097 func (s GoogleCloudVideointelligenceV1TimestampedObject) MarshalJSON() ([]byte, error) {
1098 type NoMethod GoogleCloudVideointelligenceV1TimestampedObject
1099 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1100 }
1101
1102 // GoogleCloudVideointelligenceV1Track: A track of an object instance.
1103 type GoogleCloudVideointelligenceV1Track struct {
1104 // Attributes: Optional. Attributes in the track level.
1105 Attributes []*GoogleCloudVideointelligenceV1DetectedAttribute `json:"attributes,omitempty"`
1106 // Confidence: Optional. The confidence score of the tracked object.
1107 Confidence float64 `json:"confidence,omitempty"`
1108 // Segment: Video segment of a track.
1109 Segment *GoogleCloudVideointelligenceV1VideoSegment `json:"segment,omitempty"`
1110 // TimestampedObjects: The object with timestamp and attributes per frame in
1111 // the track.
1112 TimestampedObjects []*GoogleCloudVideointelligenceV1TimestampedObject `json:"timestampedObjects,omitempty"`
1113 // ForceSendFields is a list of field names (e.g. "Attributes") to
1114 // unconditionally include in API requests. By default, fields with empty or
1115 // default values are omitted from API requests. See
1116 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1117 // details.
1118 ForceSendFields []string `json:"-"`
1119 // NullFields is a list of field names (e.g. "Attributes") to include in API
1120 // requests with the JSON null value. By default, fields with empty values are
1121 // omitted from API requests. See
1122 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1123 NullFields []string `json:"-"`
1124 }
1125
1126 func (s GoogleCloudVideointelligenceV1Track) MarshalJSON() ([]byte, error) {
1127 type NoMethod GoogleCloudVideointelligenceV1Track
1128 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1129 }
1130
1131 func (s *GoogleCloudVideointelligenceV1Track) UnmarshalJSON(data []byte) error {
1132 type NoMethod GoogleCloudVideointelligenceV1Track
1133 var s1 struct {
1134 Confidence gensupport.JSONFloat64 `json:"confidence"`
1135 *NoMethod
1136 }
1137 s1.NoMethod = (*NoMethod)(s)
1138 if err := json.Unmarshal(data, &s1); err != nil {
1139 return err
1140 }
1141 s.Confidence = float64(s1.Confidence)
1142 return nil
1143 }
1144
1145 // GoogleCloudVideointelligenceV1VideoAnnotationProgress: Annotation progress
1146 // for a single video.
1147 type GoogleCloudVideointelligenceV1VideoAnnotationProgress struct {
1148 // ExportStatus: Status of exporting annotation response to user specified
1149 // `output_uri`. Only set if `output_uri` is set in the request.
1150 ExportStatus *GoogleCloudVideointelligenceV1ExportToOutputUriStatus `json:"exportStatus,omitempty"`
1151 // Feature: Specifies which feature is being tracked if the request contains
1152 // more than one feature.
1153 //
1154 // Possible values:
1155 // "FEATURE_UNSPECIFIED" - Unspecified.
1156 // "LABEL_DETECTION" - Label detection. Detect objects, such as dog or
1157 // flower.
1158 // "SHOT_CHANGE_DETECTION" - Shot change detection.
1159 // "EXPLICIT_CONTENT_DETECTION" - Explicit content detection.
1160 // "FACE_DETECTION" - Human face detection.
1161 // "SPEECH_TRANSCRIPTION" - Speech transcription.
1162 // "TEXT_DETECTION" - OCR text detection and tracking.
1163 // "OBJECT_TRACKING" - Object detection and tracking.
1164 // "LOGO_RECOGNITION" - Logo detection, tracking, and recognition.
1165 // "PERSON_DETECTION" - Person detection.
1166 Feature string `json:"feature,omitempty"`
1167 // InputUri: Video file location in Cloud Storage
1168 // (https://cloud.google.com/storage/).
1169 InputUri string `json:"inputUri,omitempty"`
1170 // ProgressPercent: Approximate percentage processed thus far. Guaranteed to be
1171 // 100 when fully processed.
1172 ProgressPercent int64 `json:"progressPercent,omitempty"`
1173 // Segment: Specifies which segment is being tracked if the request contains
1174 // more than one segment.
1175 Segment *GoogleCloudVideointelligenceV1VideoSegment `json:"segment,omitempty"`
1176 // StartTime: Time when the request was received.
1177 StartTime string `json:"startTime,omitempty"`
1178 // UpdateTime: Time of the most recent update.
1179 UpdateTime string `json:"updateTime,omitempty"`
1180 // ForceSendFields is a list of field names (e.g. "ExportStatus") to
1181 // unconditionally include in API requests. By default, fields with empty or
1182 // default values are omitted from API requests. See
1183 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1184 // details.
1185 ForceSendFields []string `json:"-"`
1186 // NullFields is a list of field names (e.g. "ExportStatus") to include in API
1187 // requests with the JSON null value. By default, fields with empty values are
1188 // omitted from API requests. See
1189 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1190 NullFields []string `json:"-"`
1191 }
1192
1193 func (s GoogleCloudVideointelligenceV1VideoAnnotationProgress) MarshalJSON() ([]byte, error) {
1194 type NoMethod GoogleCloudVideointelligenceV1VideoAnnotationProgress
1195 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1196 }
1197
1198 // GoogleCloudVideointelligenceV1VideoAnnotationResults: Annotation results for
1199 // a single video.
1200 type GoogleCloudVideointelligenceV1VideoAnnotationResults struct {
1201 // Error: If set, indicates an error. Note that for a single
1202 // `AnnotateVideoRequest` some videos may succeed and some may fail.
1203 Error *GoogleRpcStatus `json:"error,omitempty"`
1204 // ExplicitAnnotation: Explicit content annotation.
1205 ExplicitAnnotation *GoogleCloudVideointelligenceV1ExplicitContentAnnotation `json:"explicitAnnotation,omitempty"`
1206 // FaceAnnotations: Deprecated. Please use `face_detection_annotations`
1207 // instead.
1208 FaceAnnotations []*GoogleCloudVideointelligenceV1FaceAnnotation `json:"faceAnnotations,omitempty"`
1209 // FaceDetectionAnnotations: Face detection annotations.
1210 FaceDetectionAnnotations []*GoogleCloudVideointelligenceV1FaceDetectionAnnotation `json:"faceDetectionAnnotations,omitempty"`
1211 // FrameLabelAnnotations: Label annotations on frame level. There is exactly
1212 // one element for each unique label.
1213 FrameLabelAnnotations []*GoogleCloudVideointelligenceV1LabelAnnotation `json:"frameLabelAnnotations,omitempty"`
1214 // InputUri: Video file location in Cloud Storage
1215 // (https://cloud.google.com/storage/).
1216 InputUri string `json:"inputUri,omitempty"`
1217 // LogoRecognitionAnnotations: Annotations for list of logos detected, tracked
1218 // and recognized in video.
1219 LogoRecognitionAnnotations []*GoogleCloudVideointelligenceV1LogoRecognitionAnnotation `json:"logoRecognitionAnnotations,omitempty"`
1220 // ObjectAnnotations: Annotations for list of objects detected and tracked in
1221 // video.
1222 ObjectAnnotations []*GoogleCloudVideointelligenceV1ObjectTrackingAnnotation `json:"objectAnnotations,omitempty"`
1223 // PersonDetectionAnnotations: Person detection annotations.
1224 PersonDetectionAnnotations []*GoogleCloudVideointelligenceV1PersonDetectionAnnotation `json:"personDetectionAnnotations,omitempty"`
1225 // Segment: Video segment on which the annotation is run.
1226 Segment *GoogleCloudVideointelligenceV1VideoSegment `json:"segment,omitempty"`
1227 // SegmentLabelAnnotations: Topical label annotations on video level or
1228 // user-specified segment level. There is exactly one element for each unique
1229 // label.
1230 SegmentLabelAnnotations []*GoogleCloudVideointelligenceV1LabelAnnotation `json:"segmentLabelAnnotations,omitempty"`
1231 // SegmentPresenceLabelAnnotations: Presence label annotations on video level
1232 // or user-specified segment level. There is exactly one element for each
1233 // unique label. Compared to the existing topical `segment_label_annotations`,
1234 // this field presents more fine-grained, segment-level labels detected in
1235 // video content and is made available only when the client sets
1236 // `LabelDetectionConfig.model` to "builtin/latest" in the request.
1237 SegmentPresenceLabelAnnotations []*GoogleCloudVideointelligenceV1LabelAnnotation `json:"segmentPresenceLabelAnnotations,omitempty"`
1238 // ShotAnnotations: Shot annotations. Each shot is represented as a video
1239 // segment.
1240 ShotAnnotations []*GoogleCloudVideointelligenceV1VideoSegment `json:"shotAnnotations,omitempty"`
1241 // ShotLabelAnnotations: Topical label annotations on shot level. There is
1242 // exactly one element for each unique label.
1243 ShotLabelAnnotations []*GoogleCloudVideointelligenceV1LabelAnnotation `json:"shotLabelAnnotations,omitempty"`
1244 // ShotPresenceLabelAnnotations: Presence label annotations on shot level.
1245 // There is exactly one element for each unique label. Compared to the existing
1246 // topical `shot_label_annotations`, this field presents more fine-grained,
1247 // shot-level labels detected in video content and is made available only when
1248 // the client sets `LabelDetectionConfig.model` to "builtin/latest" in the
1249 // request.
1250 ShotPresenceLabelAnnotations []*GoogleCloudVideointelligenceV1LabelAnnotation `json:"shotPresenceLabelAnnotations,omitempty"`
1251 // SpeechTranscriptions: Speech transcription.
1252 SpeechTranscriptions []*GoogleCloudVideointelligenceV1SpeechTranscription `json:"speechTranscriptions,omitempty"`
1253 // TextAnnotations: OCR text detection and tracking. Annotations for list of
1254 // detected text snippets. Each will have list of frame information associated
1255 // with it.
1256 TextAnnotations []*GoogleCloudVideointelligenceV1TextAnnotation `json:"textAnnotations,omitempty"`
1257 // ForceSendFields is a list of field names (e.g. "Error") to unconditionally
1258 // include in API requests. By default, fields with empty or default values are
1259 // omitted from API requests. See
1260 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1261 // details.
1262 ForceSendFields []string `json:"-"`
1263 // NullFields is a list of field names (e.g. "Error") to include in API
1264 // requests with the JSON null value. By default, fields with empty values are
1265 // omitted from API requests. See
1266 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1267 NullFields []string `json:"-"`
1268 }
1269
1270 func (s GoogleCloudVideointelligenceV1VideoAnnotationResults) MarshalJSON() ([]byte, error) {
1271 type NoMethod GoogleCloudVideointelligenceV1VideoAnnotationResults
1272 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1273 }
1274
1275 // GoogleCloudVideointelligenceV1VideoSegment: Video segment.
1276 type GoogleCloudVideointelligenceV1VideoSegment struct {
1277 // EndTimeOffset: Time-offset, relative to the beginning of the video,
1278 // corresponding to the end of the segment (inclusive).
1279 EndTimeOffset string `json:"endTimeOffset,omitempty"`
1280 // StartTimeOffset: Time-offset, relative to the beginning of the video,
1281 // corresponding to the start of the segment (inclusive).
1282 StartTimeOffset string `json:"startTimeOffset,omitempty"`
1283 // ForceSendFields is a list of field names (e.g. "EndTimeOffset") to
1284 // unconditionally include in API requests. By default, fields with empty or
1285 // default values are omitted from API requests. See
1286 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1287 // details.
1288 ForceSendFields []string `json:"-"`
1289 // NullFields is a list of field names (e.g. "EndTimeOffset") to include in API
1290 // requests with the JSON null value. By default, fields with empty values are
1291 // omitted from API requests. See
1292 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1293 NullFields []string `json:"-"`
1294 }
1295
1296 func (s GoogleCloudVideointelligenceV1VideoSegment) MarshalJSON() ([]byte, error) {
1297 type NoMethod GoogleCloudVideointelligenceV1VideoSegment
1298 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1299 }
1300
1301 // GoogleCloudVideointelligenceV1WordInfo: Word-specific information for
1302 // recognized words. Word information is only included in the response when
1303 // certain request parameters are set, such as `enable_word_time_offsets`.
1304 type GoogleCloudVideointelligenceV1WordInfo struct {
1305 // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A
1306 // higher number indicates an estimated greater likelihood that the recognized
1307 // words are correct. This field is set only for the top alternative. This
1308 // field is not guaranteed to be accurate and users should not rely on it to be
1309 // always provided. The default of 0.0 is a sentinel value indicating
1310 // `confidence` was not set.
1311 Confidence float64 `json:"confidence,omitempty"`
1312 // EndTime: Time offset relative to the beginning of the audio, and
1313 // corresponding to the end of the spoken word. This field is only set if
1314 // `enable_word_time_offsets=true` and only in the top hypothesis. This is an
1315 // experimental feature and the accuracy of the time offset can vary.
1316 EndTime string `json:"endTime,omitempty"`
1317 // SpeakerLabel: Output only. A distinct string value is assigned for every
1318 // speaker within the audio. This field specifies which one of those speakers
1319 // was detected to have spoken this word.
1320 SpeakerLabel string `json:"speakerLabel,omitempty"`
1321 // SpeakerTag: Output only. A distinct integer value is assigned for every
1322 // speaker within the audio. This field specifies which one of those speakers
1323 // was detected to have spoken this word. Value ranges from 1 up to
1324 // diarization_speaker_count, and is only set if speaker diarization is
1325 // enabled.
1326 SpeakerTag int64 `json:"speakerTag,omitempty"`
1327 // StartTime: Time offset relative to the beginning of the audio, and
1328 // corresponding to the start of the spoken word. This field is only set if
1329 // `enable_word_time_offsets=true` and only in the top hypothesis. This is an
1330 // experimental feature and the accuracy of the time offset can vary.
1331 StartTime string `json:"startTime,omitempty"`
1332 // Word: The word corresponding to this set of information.
1333 Word string `json:"word,omitempty"`
1334 // ForceSendFields is a list of field names (e.g. "Confidence") to
1335 // unconditionally include in API requests. By default, fields with empty or
1336 // default values are omitted from API requests. See
1337 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1338 // details.
1339 ForceSendFields []string `json:"-"`
1340 // NullFields is a list of field names (e.g. "Confidence") to include in API
1341 // requests with the JSON null value. By default, fields with empty values are
1342 // omitted from API requests. See
1343 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1344 NullFields []string `json:"-"`
1345 }
1346
1347 func (s GoogleCloudVideointelligenceV1WordInfo) MarshalJSON() ([]byte, error) {
1348 type NoMethod GoogleCloudVideointelligenceV1WordInfo
1349 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1350 }
1351
1352 func (s *GoogleCloudVideointelligenceV1WordInfo) UnmarshalJSON(data []byte) error {
1353 type NoMethod GoogleCloudVideointelligenceV1WordInfo
1354 var s1 struct {
1355 Confidence gensupport.JSONFloat64 `json:"confidence"`
1356 *NoMethod
1357 }
1358 s1.NoMethod = (*NoMethod)(s)
1359 if err := json.Unmarshal(data, &s1); err != nil {
1360 return err
1361 }
1362 s.Confidence = float64(s1.Confidence)
1363 return nil
1364 }
1365
1366 // GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress: Video annotation
1367 // progress. Included in the `metadata` field of the `Operation` returned by
1368 // the `GetOperation` call of the `google::longrunning::Operations` service.
1369 type GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress struct {
1370 // AnnotationProgress: Progress metadata for all videos specified in
1371 // `AnnotateVideoRequest`.
1372 AnnotationProgress []*GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress `json:"annotationProgress,omitempty"`
1373 // ForceSendFields is a list of field names (e.g. "AnnotationProgress") to
1374 // unconditionally include in API requests. By default, fields with empty or
1375 // default values are omitted from API requests. See
1376 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1377 // details.
1378 ForceSendFields []string `json:"-"`
1379 // NullFields is a list of field names (e.g. "AnnotationProgress") to include
1380 // in API requests with the JSON null value. By default, fields with empty
1381 // values are omitted from API requests. See
1382 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1383 NullFields []string `json:"-"`
1384 }
1385
1386 func (s GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress) MarshalJSON() ([]byte, error) {
1387 type NoMethod GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
1388 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1389 }
1390
1391 // GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse: Video annotation
1392 // response. Included in the `response` field of the `Operation` returned by
1393 // the `GetOperation` call of the `google::longrunning::Operations` service.
1394 type GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse struct {
1395 // AnnotationResults: Annotation results for all videos specified in
1396 // `AnnotateVideoRequest`.
1397 AnnotationResults []*GoogleCloudVideointelligenceV1beta2VideoAnnotationResults `json:"annotationResults,omitempty"`
1398 // ForceSendFields is a list of field names (e.g. "AnnotationResults") to
1399 // unconditionally include in API requests. By default, fields with empty or
1400 // default values are omitted from API requests. See
1401 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1402 // details.
1403 ForceSendFields []string `json:"-"`
1404 // NullFields is a list of field names (e.g. "AnnotationResults") to include in
1405 // API requests with the JSON null value. By default, fields with empty values
1406 // are omitted from API requests. See
1407 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1408 NullFields []string `json:"-"`
1409 }
1410
1411 func (s GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse) MarshalJSON() ([]byte, error) {
1412 type NoMethod GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse
1413 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1414 }
1415
1416 // GoogleCloudVideointelligenceV1beta2DetectedAttribute: A generic detected
1417 // attribute represented by name in string format.
1418 type GoogleCloudVideointelligenceV1beta2DetectedAttribute struct {
1419 // Confidence: Detected attribute confidence. Range [0, 1].
1420 Confidence float64 `json:"confidence,omitempty"`
1421 // Name: The name of the attribute, for example, glasses, dark_glasses,
1422 // mouth_open. A full list of supported type names will be provided in the
1423 // document.
1424 Name string `json:"name,omitempty"`
1425 // Value: Text value of the detection result. For example, the value for
1426 // "HairColor" can be "black", "blonde", etc.
1427 Value string `json:"value,omitempty"`
1428 // ForceSendFields is a list of field names (e.g. "Confidence") to
1429 // unconditionally include in API requests. By default, fields with empty or
1430 // default values are omitted from API requests. See
1431 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1432 // details.
1433 ForceSendFields []string `json:"-"`
1434 // NullFields is a list of field names (e.g. "Confidence") to include in API
1435 // requests with the JSON null value. By default, fields with empty values are
1436 // omitted from API requests. See
1437 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1438 NullFields []string `json:"-"`
1439 }
1440
1441 func (s GoogleCloudVideointelligenceV1beta2DetectedAttribute) MarshalJSON() ([]byte, error) {
1442 type NoMethod GoogleCloudVideointelligenceV1beta2DetectedAttribute
1443 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1444 }
1445
1446 func (s *GoogleCloudVideointelligenceV1beta2DetectedAttribute) UnmarshalJSON(data []byte) error {
1447 type NoMethod GoogleCloudVideointelligenceV1beta2DetectedAttribute
1448 var s1 struct {
1449 Confidence gensupport.JSONFloat64 `json:"confidence"`
1450 *NoMethod
1451 }
1452 s1.NoMethod = (*NoMethod)(s)
1453 if err := json.Unmarshal(data, &s1); err != nil {
1454 return err
1455 }
1456 s.Confidence = float64(s1.Confidence)
1457 return nil
1458 }
1459
1460 // GoogleCloudVideointelligenceV1beta2DetectedLandmark: A generic detected
1461 // landmark represented by name in string format and a 2D location.
1462 type GoogleCloudVideointelligenceV1beta2DetectedLandmark struct {
1463 // Confidence: The confidence score of the detected landmark. Range [0, 1].
1464 Confidence float64 `json:"confidence,omitempty"`
1465 // Name: The name of this landmark, for example, left_hand, right_shoulder.
1466 Name string `json:"name,omitempty"`
1467 // Point: The 2D point of the detected landmark using the normalized image
1468 // coordinate system. The normalized coordinates have the range from 0 to 1.
1469 Point *GoogleCloudVideointelligenceV1beta2NormalizedVertex `json:"point,omitempty"`
1470 // ForceSendFields is a list of field names (e.g. "Confidence") to
1471 // unconditionally include in API requests. By default, fields with empty or
1472 // default values are omitted from API requests. See
1473 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1474 // details.
1475 ForceSendFields []string `json:"-"`
1476 // NullFields is a list of field names (e.g. "Confidence") to include in API
1477 // requests with the JSON null value. By default, fields with empty values are
1478 // omitted from API requests. See
1479 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1480 NullFields []string `json:"-"`
1481 }
1482
1483 func (s GoogleCloudVideointelligenceV1beta2DetectedLandmark) MarshalJSON() ([]byte, error) {
1484 type NoMethod GoogleCloudVideointelligenceV1beta2DetectedLandmark
1485 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1486 }
1487
1488 func (s *GoogleCloudVideointelligenceV1beta2DetectedLandmark) UnmarshalJSON(data []byte) error {
1489 type NoMethod GoogleCloudVideointelligenceV1beta2DetectedLandmark
1490 var s1 struct {
1491 Confidence gensupport.JSONFloat64 `json:"confidence"`
1492 *NoMethod
1493 }
1494 s1.NoMethod = (*NoMethod)(s)
1495 if err := json.Unmarshal(data, &s1); err != nil {
1496 return err
1497 }
1498 s.Confidence = float64(s1.Confidence)
1499 return nil
1500 }
1501
1502 // GoogleCloudVideointelligenceV1beta2Entity: Detected entity from video
1503 // analysis.
1504 type GoogleCloudVideointelligenceV1beta2Entity struct {
1505 // Description: Textual description, e.g., `Fixed-gear bicycle`.
1506 Description string `json:"description,omitempty"`
1507 // EntityId: Opaque entity ID. Some IDs may be available in Google Knowledge
1508 // Graph Search API (https://developers.google.com/knowledge-graph/).
1509 EntityId string `json:"entityId,omitempty"`
1510 // LanguageCode: Language code for `description` in BCP-47 format.
1511 LanguageCode string `json:"languageCode,omitempty"`
1512 // ForceSendFields is a list of field names (e.g. "Description") to
1513 // unconditionally include in API requests. By default, fields with empty or
1514 // default values are omitted from API requests. See
1515 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1516 // details.
1517 ForceSendFields []string `json:"-"`
1518 // NullFields is a list of field names (e.g. "Description") to include in API
1519 // requests with the JSON null value. By default, fields with empty values are
1520 // omitted from API requests. See
1521 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1522 NullFields []string `json:"-"`
1523 }
1524
1525 func (s GoogleCloudVideointelligenceV1beta2Entity) MarshalJSON() ([]byte, error) {
1526 type NoMethod GoogleCloudVideointelligenceV1beta2Entity
1527 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1528 }
1529
1530 // GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation: Explicit
1531 // content annotation (based on per-frame visual signals only). If no explicit
1532 // content has been detected in a frame, no annotations are present for that
1533 // frame.
1534 type GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation struct {
1535 // Frames: All video frames where explicit content was detected.
1536 Frames []*GoogleCloudVideointelligenceV1beta2ExplicitContentFrame `json:"frames,omitempty"`
1537 // Version: Feature version.
1538 Version string `json:"version,omitempty"`
1539 // ForceSendFields is a list of field names (e.g. "Frames") to unconditionally
1540 // include in API requests. By default, fields with empty or default values are
1541 // omitted from API requests. See
1542 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1543 // details.
1544 ForceSendFields []string `json:"-"`
1545 // NullFields is a list of field names (e.g. "Frames") to include in API
1546 // requests with the JSON null value. By default, fields with empty values are
1547 // omitted from API requests. See
1548 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1549 NullFields []string `json:"-"`
1550 }
1551
1552 func (s GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation) MarshalJSON() ([]byte, error) {
1553 type NoMethod GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation
1554 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1555 }
1556
1557 // GoogleCloudVideointelligenceV1beta2ExplicitContentFrame: Video frame level
1558 // annotation results for explicit content.
1559 type GoogleCloudVideointelligenceV1beta2ExplicitContentFrame struct {
1560 // PornographyLikelihood: Likelihood of the pornography content..
1561 //
1562 // Possible values:
1563 // "LIKELIHOOD_UNSPECIFIED" - Unspecified likelihood.
1564 // "VERY_UNLIKELY" - Very unlikely.
1565 // "UNLIKELY" - Unlikely.
1566 // "POSSIBLE" - Possible.
1567 // "LIKELY" - Likely.
1568 // "VERY_LIKELY" - Very likely.
1569 PornographyLikelihood string `json:"pornographyLikelihood,omitempty"`
1570 // TimeOffset: Time-offset, relative to the beginning of the video,
1571 // corresponding to the video frame for this location.
1572 TimeOffset string `json:"timeOffset,omitempty"`
1573 // ForceSendFields is a list of field names (e.g. "PornographyLikelihood") to
1574 // unconditionally include in API requests. By default, fields with empty or
1575 // default values are omitted from API requests. See
1576 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1577 // details.
1578 ForceSendFields []string `json:"-"`
1579 // NullFields is a list of field names (e.g. "PornographyLikelihood") to
1580 // include in API requests with the JSON null value. By default, fields with
1581 // empty values are omitted from API requests. See
1582 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1583 NullFields []string `json:"-"`
1584 }
1585
1586 func (s GoogleCloudVideointelligenceV1beta2ExplicitContentFrame) MarshalJSON() ([]byte, error) {
1587 type NoMethod GoogleCloudVideointelligenceV1beta2ExplicitContentFrame
1588 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1589 }
1590
1591 // GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus: Status of
1592 // exporting annotation response to user specified `output_uri`.
1593 type GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus struct {
1594 // State: Output only. State of the `output_uri` export.
1595 //
1596 // Possible values:
1597 // "STATE_UNSPECIFIED" - Default value.
1598 // "SUCCEEDED" - Export succeeded.
1599 // "FAILED" - Export failed.
1600 State string `json:"state,omitempty"`
1601 // Status: Output only. Only set if state is FAILED.
1602 Status *GoogleRpcStatus `json:"status,omitempty"`
1603 // ForceSendFields is a list of field names (e.g. "State") to unconditionally
1604 // include in API requests. By default, fields with empty or default values are
1605 // omitted from API requests. See
1606 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1607 // details.
1608 ForceSendFields []string `json:"-"`
1609 // NullFields is a list of field names (e.g. "State") to include in API
1610 // requests with the JSON null value. By default, fields with empty values are
1611 // omitted from API requests. See
1612 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1613 NullFields []string `json:"-"`
1614 }
1615
1616 func (s GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus) MarshalJSON() ([]byte, error) {
1617 type NoMethod GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus
1618 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1619 }
1620
1621 // GoogleCloudVideointelligenceV1beta2FaceAnnotation: Deprecated. No effect.
1622 type GoogleCloudVideointelligenceV1beta2FaceAnnotation struct {
1623 // Frames: All video frames where a face was detected.
1624 Frames []*GoogleCloudVideointelligenceV1beta2FaceFrame `json:"frames,omitempty"`
1625 // Segments: All video segments where a face was detected.
1626 Segments []*GoogleCloudVideointelligenceV1beta2FaceSegment `json:"segments,omitempty"`
1627 // Thumbnail: Thumbnail of a representative face view (in JPEG format).
1628 Thumbnail string `json:"thumbnail,omitempty"`
1629 // ForceSendFields is a list of field names (e.g. "Frames") to unconditionally
1630 // include in API requests. By default, fields with empty or default values are
1631 // omitted from API requests. See
1632 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1633 // details.
1634 ForceSendFields []string `json:"-"`
1635 // NullFields is a list of field names (e.g. "Frames") to include in API
1636 // requests with the JSON null value. By default, fields with empty values are
1637 // omitted from API requests. See
1638 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1639 NullFields []string `json:"-"`
1640 }
1641
1642 func (s GoogleCloudVideointelligenceV1beta2FaceAnnotation) MarshalJSON() ([]byte, error) {
1643 type NoMethod GoogleCloudVideointelligenceV1beta2FaceAnnotation
1644 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1645 }
1646
1647 // GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation: Face detection
1648 // annotation.
1649 type GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation struct {
1650 // Thumbnail: The thumbnail of a person's face.
1651 Thumbnail string `json:"thumbnail,omitempty"`
1652 // Tracks: The face tracks with attributes.
1653 Tracks []*GoogleCloudVideointelligenceV1beta2Track `json:"tracks,omitempty"`
1654 // Version: Feature version.
1655 Version string `json:"version,omitempty"`
1656 // ForceSendFields is a list of field names (e.g. "Thumbnail") to
1657 // unconditionally include in API requests. By default, fields with empty or
1658 // default values are omitted from API requests. See
1659 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1660 // details.
1661 ForceSendFields []string `json:"-"`
1662 // NullFields is a list of field names (e.g. "Thumbnail") to include in API
1663 // requests with the JSON null value. By default, fields with empty values are
1664 // omitted from API requests. See
1665 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1666 NullFields []string `json:"-"`
1667 }
1668
1669 func (s GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation) MarshalJSON() ([]byte, error) {
1670 type NoMethod GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation
1671 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1672 }
1673
1674 // GoogleCloudVideointelligenceV1beta2FaceFrame: Deprecated. No effect.
1675 type GoogleCloudVideointelligenceV1beta2FaceFrame struct {
1676 // NormalizedBoundingBoxes: Normalized Bounding boxes in a frame. There can be
1677 // more than one boxes if the same face is detected in multiple locations
1678 // within the current frame.
1679 NormalizedBoundingBoxes []*GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox `json:"normalizedBoundingBoxes,omitempty"`
1680 // TimeOffset: Time-offset, relative to the beginning of the video,
1681 // corresponding to the video frame for this location.
1682 TimeOffset string `json:"timeOffset,omitempty"`
1683 // ForceSendFields is a list of field names (e.g. "NormalizedBoundingBoxes") to
1684 // unconditionally include in API requests. By default, fields with empty or
1685 // default values are omitted from API requests. See
1686 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1687 // details.
1688 ForceSendFields []string `json:"-"`
1689 // NullFields is a list of field names (e.g. "NormalizedBoundingBoxes") to
1690 // include in API requests with the JSON null value. By default, fields with
1691 // empty values are omitted from API requests. See
1692 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1693 NullFields []string `json:"-"`
1694 }
1695
1696 func (s GoogleCloudVideointelligenceV1beta2FaceFrame) MarshalJSON() ([]byte, error) {
1697 type NoMethod GoogleCloudVideointelligenceV1beta2FaceFrame
1698 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1699 }
1700
1701 // GoogleCloudVideointelligenceV1beta2FaceSegment: Video segment level
1702 // annotation results for face detection.
1703 type GoogleCloudVideointelligenceV1beta2FaceSegment struct {
1704 // Segment: Video segment where a face was detected.
1705 Segment *GoogleCloudVideointelligenceV1beta2VideoSegment `json:"segment,omitempty"`
1706 // ForceSendFields is a list of field names (e.g. "Segment") to unconditionally
1707 // include in API requests. By default, fields with empty or default values are
1708 // omitted from API requests. See
1709 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1710 // details.
1711 ForceSendFields []string `json:"-"`
1712 // NullFields is a list of field names (e.g. "Segment") to include in API
1713 // requests with the JSON null value. By default, fields with empty values are
1714 // omitted from API requests. See
1715 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1716 NullFields []string `json:"-"`
1717 }
1718
1719 func (s GoogleCloudVideointelligenceV1beta2FaceSegment) MarshalJSON() ([]byte, error) {
1720 type NoMethod GoogleCloudVideointelligenceV1beta2FaceSegment
1721 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1722 }
1723
1724 // GoogleCloudVideointelligenceV1beta2LabelAnnotation: Label annotation.
1725 type GoogleCloudVideointelligenceV1beta2LabelAnnotation struct {
1726 // CategoryEntities: Common categories for the detected entity. For example,
1727 // when the label is `Terrier`, the category is likely `dog`. And in some cases
1728 // there might be more than one categories e.g., `Terrier` could also be a
1729 // `pet`.
1730 CategoryEntities []*GoogleCloudVideointelligenceV1beta2Entity `json:"categoryEntities,omitempty"`
1731 // Entity: Detected entity.
1732 Entity *GoogleCloudVideointelligenceV1beta2Entity `json:"entity,omitempty"`
1733 // Frames: All video frames where a label was detected.
1734 Frames []*GoogleCloudVideointelligenceV1beta2LabelFrame `json:"frames,omitempty"`
1735 // Segments: All video segments where a label was detected.
1736 Segments []*GoogleCloudVideointelligenceV1beta2LabelSegment `json:"segments,omitempty"`
1737 // Version: Feature version.
1738 Version string `json:"version,omitempty"`
1739 // ForceSendFields is a list of field names (e.g. "CategoryEntities") to
1740 // unconditionally include in API requests. By default, fields with empty or
1741 // default values are omitted from API requests. See
1742 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1743 // details.
1744 ForceSendFields []string `json:"-"`
1745 // NullFields is a list of field names (e.g. "CategoryEntities") to include in
1746 // API requests with the JSON null value. By default, fields with empty values
1747 // are omitted from API requests. See
1748 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1749 NullFields []string `json:"-"`
1750 }
1751
1752 func (s GoogleCloudVideointelligenceV1beta2LabelAnnotation) MarshalJSON() ([]byte, error) {
1753 type NoMethod GoogleCloudVideointelligenceV1beta2LabelAnnotation
1754 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1755 }
1756
1757 // GoogleCloudVideointelligenceV1beta2LabelFrame: Video frame level annotation
1758 // results for label detection.
1759 type GoogleCloudVideointelligenceV1beta2LabelFrame struct {
1760 // Confidence: Confidence that the label is accurate. Range: [0, 1].
1761 Confidence float64 `json:"confidence,omitempty"`
1762 // TimeOffset: Time-offset, relative to the beginning of the video,
1763 // corresponding to the video frame for this location.
1764 TimeOffset string `json:"timeOffset,omitempty"`
1765 // ForceSendFields is a list of field names (e.g. "Confidence") to
1766 // unconditionally include in API requests. By default, fields with empty or
1767 // default values are omitted from API requests. See
1768 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1769 // details.
1770 ForceSendFields []string `json:"-"`
1771 // NullFields is a list of field names (e.g. "Confidence") to include in API
1772 // requests with the JSON null value. By default, fields with empty values are
1773 // omitted from API requests. See
1774 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1775 NullFields []string `json:"-"`
1776 }
1777
1778 func (s GoogleCloudVideointelligenceV1beta2LabelFrame) MarshalJSON() ([]byte, error) {
1779 type NoMethod GoogleCloudVideointelligenceV1beta2LabelFrame
1780 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1781 }
1782
1783 func (s *GoogleCloudVideointelligenceV1beta2LabelFrame) UnmarshalJSON(data []byte) error {
1784 type NoMethod GoogleCloudVideointelligenceV1beta2LabelFrame
1785 var s1 struct {
1786 Confidence gensupport.JSONFloat64 `json:"confidence"`
1787 *NoMethod
1788 }
1789 s1.NoMethod = (*NoMethod)(s)
1790 if err := json.Unmarshal(data, &s1); err != nil {
1791 return err
1792 }
1793 s.Confidence = float64(s1.Confidence)
1794 return nil
1795 }
1796
1797 // GoogleCloudVideointelligenceV1beta2LabelSegment: Video segment level
1798 // annotation results for label detection.
1799 type GoogleCloudVideointelligenceV1beta2LabelSegment struct {
1800 // Confidence: Confidence that the label is accurate. Range: [0, 1].
1801 Confidence float64 `json:"confidence,omitempty"`
1802 // Segment: Video segment where a label was detected.
1803 Segment *GoogleCloudVideointelligenceV1beta2VideoSegment `json:"segment,omitempty"`
1804 // ForceSendFields is a list of field names (e.g. "Confidence") to
1805 // unconditionally include in API requests. By default, fields with empty or
1806 // default values are omitted from API requests. See
1807 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1808 // details.
1809 ForceSendFields []string `json:"-"`
1810 // NullFields is a list of field names (e.g. "Confidence") to include in API
1811 // requests with the JSON null value. By default, fields with empty values are
1812 // omitted from API requests. See
1813 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1814 NullFields []string `json:"-"`
1815 }
1816
1817 func (s GoogleCloudVideointelligenceV1beta2LabelSegment) MarshalJSON() ([]byte, error) {
1818 type NoMethod GoogleCloudVideointelligenceV1beta2LabelSegment
1819 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1820 }
1821
1822 func (s *GoogleCloudVideointelligenceV1beta2LabelSegment) UnmarshalJSON(data []byte) error {
1823 type NoMethod GoogleCloudVideointelligenceV1beta2LabelSegment
1824 var s1 struct {
1825 Confidence gensupport.JSONFloat64 `json:"confidence"`
1826 *NoMethod
1827 }
1828 s1.NoMethod = (*NoMethod)(s)
1829 if err := json.Unmarshal(data, &s1); err != nil {
1830 return err
1831 }
1832 s.Confidence = float64(s1.Confidence)
1833 return nil
1834 }
1835
1836 // GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation: Annotation
1837 // corresponding to one detected, tracked and recognized logo class.
1838 type GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation struct {
1839 // Entity: Entity category information to specify the logo class that all the
1840 // logo tracks within this LogoRecognitionAnnotation are recognized as.
1841 Entity *GoogleCloudVideointelligenceV1beta2Entity `json:"entity,omitempty"`
1842 // Segments: All video segments where the recognized logo appears. There might
1843 // be multiple instances of the same logo class appearing in one VideoSegment.
1844 Segments []*GoogleCloudVideointelligenceV1beta2VideoSegment `json:"segments,omitempty"`
1845 // Tracks: All logo tracks where the recognized logo appears. Each track
1846 // corresponds to one logo instance appearing in consecutive frames.
1847 Tracks []*GoogleCloudVideointelligenceV1beta2Track `json:"tracks,omitempty"`
1848 // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
1849 // include in API requests. By default, fields with empty or default values are
1850 // omitted from API requests. See
1851 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1852 // details.
1853 ForceSendFields []string `json:"-"`
1854 // NullFields is a list of field names (e.g. "Entity") to include in API
1855 // requests with the JSON null value. By default, fields with empty values are
1856 // omitted from API requests. See
1857 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1858 NullFields []string `json:"-"`
1859 }
1860
1861 func (s GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation) MarshalJSON() ([]byte, error) {
1862 type NoMethod GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation
1863 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1864 }
1865
1866 // GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox: Normalized
1867 // bounding box. The normalized vertex coordinates are relative to the original
1868 // image. Range: [0, 1].
1869 type GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox struct {
1870 // Bottom: Bottom Y coordinate.
1871 Bottom float64 `json:"bottom,omitempty"`
1872 // Left: Left X coordinate.
1873 Left float64 `json:"left,omitempty"`
1874 // Right: Right X coordinate.
1875 Right float64 `json:"right,omitempty"`
1876 // Top: Top Y coordinate.
1877 Top float64 `json:"top,omitempty"`
1878 // ForceSendFields is a list of field names (e.g. "Bottom") to unconditionally
1879 // include in API requests. By default, fields with empty or default values are
1880 // omitted from API requests. See
1881 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1882 // details.
1883 ForceSendFields []string `json:"-"`
1884 // NullFields is a list of field names (e.g. "Bottom") to include in API
1885 // requests with the JSON null value. By default, fields with empty values are
1886 // omitted from API requests. See
1887 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1888 NullFields []string `json:"-"`
1889 }
1890
1891 func (s GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox) MarshalJSON() ([]byte, error) {
1892 type NoMethod GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox
1893 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1894 }
1895
1896 func (s *GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox) UnmarshalJSON(data []byte) error {
1897 type NoMethod GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox
1898 var s1 struct {
1899 Bottom gensupport.JSONFloat64 `json:"bottom"`
1900 Left gensupport.JSONFloat64 `json:"left"`
1901 Right gensupport.JSONFloat64 `json:"right"`
1902 Top gensupport.JSONFloat64 `json:"top"`
1903 *NoMethod
1904 }
1905 s1.NoMethod = (*NoMethod)(s)
1906 if err := json.Unmarshal(data, &s1); err != nil {
1907 return err
1908 }
1909 s.Bottom = float64(s1.Bottom)
1910 s.Left = float64(s1.Left)
1911 s.Right = float64(s1.Right)
1912 s.Top = float64(s1.Top)
1913 return nil
1914 }
1915
1916 // GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly: Normalized
1917 // bounding polygon for text (that might not be aligned with axis). Contains
1918 // list of the corner points in clockwise order starting from top-left corner.
1919 // For example, for a rectangular bounding box: When the text is horizontal it
1920 // might look like: 0----1 | | 3----2 When it's clockwise rotated 180 degrees
1921 // around the top-left corner it becomes: 2----3 | | 1----0 and the vertex
1922 // order will still be (0, 1, 2, 3). Note that values can be less than 0, or
1923 // greater than 1 due to trigonometric calculations for location of the box.
1924 type GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly struct {
1925 // Vertices: Normalized vertices of the bounding polygon.
1926 Vertices []*GoogleCloudVideointelligenceV1beta2NormalizedVertex `json:"vertices,omitempty"`
1927 // ForceSendFields is a list of field names (e.g. "Vertices") to
1928 // unconditionally include in API requests. By default, fields with empty or
1929 // default values are omitted from API requests. See
1930 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1931 // details.
1932 ForceSendFields []string `json:"-"`
1933 // NullFields is a list of field names (e.g. "Vertices") to include in API
1934 // requests with the JSON null value. By default, fields with empty values are
1935 // omitted from API requests. See
1936 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1937 NullFields []string `json:"-"`
1938 }
1939
1940 func (s GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly) MarshalJSON() ([]byte, error) {
1941 type NoMethod GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly
1942 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1943 }
1944
1945 // GoogleCloudVideointelligenceV1beta2NormalizedVertex: A vertex represents a
1946 // 2D point in the image. NOTE: the normalized vertex coordinates are relative
1947 // to the original image and range from 0 to 1.
1948 type GoogleCloudVideointelligenceV1beta2NormalizedVertex struct {
1949 // X: X coordinate.
1950 X float64 `json:"x,omitempty"`
1951 // Y: Y coordinate.
1952 Y float64 `json:"y,omitempty"`
1953 // ForceSendFields is a list of field names (e.g. "X") to unconditionally
1954 // include in API requests. By default, fields with empty or default values are
1955 // omitted from API requests. See
1956 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1957 // details.
1958 ForceSendFields []string `json:"-"`
1959 // NullFields is a list of field names (e.g. "X") to include in API requests
1960 // with the JSON null value. By default, fields with empty values are omitted
1961 // from API requests. See
1962 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1963 NullFields []string `json:"-"`
1964 }
1965
1966 func (s GoogleCloudVideointelligenceV1beta2NormalizedVertex) MarshalJSON() ([]byte, error) {
1967 type NoMethod GoogleCloudVideointelligenceV1beta2NormalizedVertex
1968 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1969 }
1970
1971 func (s *GoogleCloudVideointelligenceV1beta2NormalizedVertex) UnmarshalJSON(data []byte) error {
1972 type NoMethod GoogleCloudVideointelligenceV1beta2NormalizedVertex
1973 var s1 struct {
1974 X gensupport.JSONFloat64 `json:"x"`
1975 Y gensupport.JSONFloat64 `json:"y"`
1976 *NoMethod
1977 }
1978 s1.NoMethod = (*NoMethod)(s)
1979 if err := json.Unmarshal(data, &s1); err != nil {
1980 return err
1981 }
1982 s.X = float64(s1.X)
1983 s.Y = float64(s1.Y)
1984 return nil
1985 }
1986
1987 // GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation: Annotations
1988 // corresponding to one tracked object.
1989 type GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation struct {
1990 // Confidence: Object category's labeling confidence of this track.
1991 Confidence float64 `json:"confidence,omitempty"`
1992 // Entity: Entity to specify the object category that this track is labeled as.
1993 Entity *GoogleCloudVideointelligenceV1beta2Entity `json:"entity,omitempty"`
1994 // Frames: Information corresponding to all frames where this object track
1995 // appears. Non-streaming batch mode: it may be one or multiple
1996 // ObjectTrackingFrame messages in frames. Streaming mode: it can only be one
1997 // ObjectTrackingFrame message in frames.
1998 Frames []*GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame `json:"frames,omitempty"`
1999 // Segment: Non-streaming batch mode ONLY. Each object track corresponds to one
2000 // video segment where it appears.
2001 Segment *GoogleCloudVideointelligenceV1beta2VideoSegment `json:"segment,omitempty"`
2002 // TrackId: Streaming mode ONLY. In streaming mode, we do not know the end time
2003 // of a tracked object before it is completed. Hence, there is no VideoSegment
2004 // info returned. Instead, we provide a unique identifiable integer track_id so
2005 // that the customers can correlate the results of the ongoing
2006 // ObjectTrackAnnotation of the same track_id over time.
2007 TrackId int64 `json:"trackId,omitempty,string"`
2008 // Version: Feature version.
2009 Version string `json:"version,omitempty"`
2010 // ForceSendFields is a list of field names (e.g. "Confidence") to
2011 // unconditionally include in API requests. By default, fields with empty or
2012 // default values are omitted from API requests. See
2013 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2014 // details.
2015 ForceSendFields []string `json:"-"`
2016 // NullFields is a list of field names (e.g. "Confidence") to include in API
2017 // requests with the JSON null value. By default, fields with empty values are
2018 // omitted from API requests. See
2019 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2020 NullFields []string `json:"-"`
2021 }
2022
2023 func (s GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation) MarshalJSON() ([]byte, error) {
2024 type NoMethod GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation
2025 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2026 }
2027
2028 func (s *GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation) UnmarshalJSON(data []byte) error {
2029 type NoMethod GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation
2030 var s1 struct {
2031 Confidence gensupport.JSONFloat64 `json:"confidence"`
2032 *NoMethod
2033 }
2034 s1.NoMethod = (*NoMethod)(s)
2035 if err := json.Unmarshal(data, &s1); err != nil {
2036 return err
2037 }
2038 s.Confidence = float64(s1.Confidence)
2039 return nil
2040 }
2041
2042 // GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame: Video frame level
2043 // annotations for object detection and tracking. This field stores per frame
2044 // location, time offset, and confidence.
2045 type GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame struct {
2046 // NormalizedBoundingBox: The normalized bounding box location of this object
2047 // track for the frame.
2048 NormalizedBoundingBox *GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
2049 // TimeOffset: The timestamp of the frame in microseconds.
2050 TimeOffset string `json:"timeOffset,omitempty"`
2051 // ForceSendFields is a list of field names (e.g. "NormalizedBoundingBox") to
2052 // unconditionally include in API requests. By default, fields with empty or
2053 // default values are omitted from API requests. See
2054 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2055 // details.
2056 ForceSendFields []string `json:"-"`
2057 // NullFields is a list of field names (e.g. "NormalizedBoundingBox") to
2058 // include in API requests with the JSON null value. By default, fields with
2059 // empty values are omitted from API requests. See
2060 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2061 NullFields []string `json:"-"`
2062 }
2063
2064 func (s GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame) MarshalJSON() ([]byte, error) {
2065 type NoMethod GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame
2066 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2067 }
2068
2069 // GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation: Person
2070 // detection annotation per video.
2071 type GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation struct {
2072 // Tracks: The detected tracks of a person.
2073 Tracks []*GoogleCloudVideointelligenceV1beta2Track `json:"tracks,omitempty"`
2074 // Version: Feature version.
2075 Version string `json:"version,omitempty"`
2076 // ForceSendFields is a list of field names (e.g. "Tracks") to unconditionally
2077 // include in API requests. By default, fields with empty or default values are
2078 // omitted from API requests. See
2079 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2080 // details.
2081 ForceSendFields []string `json:"-"`
2082 // NullFields is a list of field names (e.g. "Tracks") to include in API
2083 // requests with the JSON null value. By default, fields with empty values are
2084 // omitted from API requests. See
2085 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2086 NullFields []string `json:"-"`
2087 }
2088
2089 func (s GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation) MarshalJSON() ([]byte, error) {
2090 type NoMethod GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation
2091 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2092 }
2093
2094 // GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative: Alternative
2095 // hypotheses (a.k.a. n-best list).
2096 type GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative struct {
2097 // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A
2098 // higher number indicates an estimated greater likelihood that the recognized
2099 // words are correct. This field is set only for the top alternative. This
2100 // field is not guaranteed to be accurate and users should not rely on it to be
2101 // always provided. The default of 0.0 is a sentinel value indicating
2102 // `confidence` was not set.
2103 Confidence float64 `json:"confidence,omitempty"`
2104 // Transcript: Transcript text representing the words that the user spoke.
2105 Transcript string `json:"transcript,omitempty"`
2106 // Words: Output only. A list of word-specific information for each recognized
2107 // word. Note: When `enable_speaker_diarization` is set to true, you will see
2108 // all the words from the beginning of the audio.
2109 Words []*GoogleCloudVideointelligenceV1beta2WordInfo `json:"words,omitempty"`
2110 // ForceSendFields is a list of field names (e.g. "Confidence") to
2111 // unconditionally include in API requests. By default, fields with empty or
2112 // default values are omitted from API requests. See
2113 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2114 // details.
2115 ForceSendFields []string `json:"-"`
2116 // NullFields is a list of field names (e.g. "Confidence") to include in API
2117 // requests with the JSON null value. By default, fields with empty values are
2118 // omitted from API requests. See
2119 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2120 NullFields []string `json:"-"`
2121 }
2122
2123 func (s GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) {
2124 type NoMethod GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative
2125 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2126 }
2127
2128 func (s *GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error {
2129 type NoMethod GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative
2130 var s1 struct {
2131 Confidence gensupport.JSONFloat64 `json:"confidence"`
2132 *NoMethod
2133 }
2134 s1.NoMethod = (*NoMethod)(s)
2135 if err := json.Unmarshal(data, &s1); err != nil {
2136 return err
2137 }
2138 s.Confidence = float64(s1.Confidence)
2139 return nil
2140 }
2141
2142 // GoogleCloudVideointelligenceV1beta2SpeechTranscription: A speech recognition
2143 // result corresponding to a portion of the audio.
2144 type GoogleCloudVideointelligenceV1beta2SpeechTranscription struct {
2145 // Alternatives: May contain one or more recognition hypotheses (up to the
2146 // maximum specified in `max_alternatives`). These alternatives are ordered in
2147 // terms of accuracy, with the top (first) alternative being the most probable,
2148 // as ranked by the recognizer.
2149 Alternatives []*GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative `json:"alternatives,omitempty"`
2150 // LanguageCode: Output only. The BCP-47
2151 // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language
2152 // in this result. This language code was detected to have the most likelihood
2153 // of being spoken in the audio.
2154 LanguageCode string `json:"languageCode,omitempty"`
2155 // ForceSendFields is a list of field names (e.g. "Alternatives") to
2156 // unconditionally include in API requests. By default, fields with empty or
2157 // default values are omitted from API requests. See
2158 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2159 // details.
2160 ForceSendFields []string `json:"-"`
2161 // NullFields is a list of field names (e.g. "Alternatives") to include in API
2162 // requests with the JSON null value. By default, fields with empty values are
2163 // omitted from API requests. See
2164 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2165 NullFields []string `json:"-"`
2166 }
2167
2168 func (s GoogleCloudVideointelligenceV1beta2SpeechTranscription) MarshalJSON() ([]byte, error) {
2169 type NoMethod GoogleCloudVideointelligenceV1beta2SpeechTranscription
2170 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2171 }
2172
2173 // GoogleCloudVideointelligenceV1beta2TextAnnotation: Annotations related to
2174 // one detected OCR text snippet. This will contain the corresponding text,
2175 // confidence value, and frame level information for each detection.
2176 type GoogleCloudVideointelligenceV1beta2TextAnnotation struct {
2177 // Segments: All video segments where OCR detected text appears.
2178 Segments []*GoogleCloudVideointelligenceV1beta2TextSegment `json:"segments,omitempty"`
2179 // Text: The detected text.
2180 Text string `json:"text,omitempty"`
2181 // Version: Feature version.
2182 Version string `json:"version,omitempty"`
2183 // ForceSendFields is a list of field names (e.g. "Segments") to
2184 // unconditionally include in API requests. By default, fields with empty or
2185 // default values are omitted from API requests. See
2186 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2187 // details.
2188 ForceSendFields []string `json:"-"`
2189 // NullFields is a list of field names (e.g. "Segments") to include in API
2190 // requests with the JSON null value. By default, fields with empty values are
2191 // omitted from API requests. See
2192 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2193 NullFields []string `json:"-"`
2194 }
2195
2196 func (s GoogleCloudVideointelligenceV1beta2TextAnnotation) MarshalJSON() ([]byte, error) {
2197 type NoMethod GoogleCloudVideointelligenceV1beta2TextAnnotation
2198 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2199 }
2200
2201 // GoogleCloudVideointelligenceV1beta2TextFrame: Video frame level annotation
2202 // results for text annotation (OCR). Contains information regarding timestamp
2203 // and bounding box locations for the frames containing detected OCR text
2204 // snippets.
2205 type GoogleCloudVideointelligenceV1beta2TextFrame struct {
2206 // RotatedBoundingBox: Bounding polygon of the detected text for this frame.
2207 RotatedBoundingBox *GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly `json:"rotatedBoundingBox,omitempty"`
2208 // TimeOffset: Timestamp of this frame.
2209 TimeOffset string `json:"timeOffset,omitempty"`
2210 // ForceSendFields is a list of field names (e.g. "RotatedBoundingBox") to
2211 // unconditionally include in API requests. By default, fields with empty or
2212 // default values are omitted from API requests. See
2213 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2214 // details.
2215 ForceSendFields []string `json:"-"`
2216 // NullFields is a list of field names (e.g. "RotatedBoundingBox") to include
2217 // in API requests with the JSON null value. By default, fields with empty
2218 // values are omitted from API requests. See
2219 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2220 NullFields []string `json:"-"`
2221 }
2222
2223 func (s GoogleCloudVideointelligenceV1beta2TextFrame) MarshalJSON() ([]byte, error) {
2224 type NoMethod GoogleCloudVideointelligenceV1beta2TextFrame
2225 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2226 }
2227
2228 // GoogleCloudVideointelligenceV1beta2TextSegment: Video segment level
2229 // annotation results for text detection.
2230 type GoogleCloudVideointelligenceV1beta2TextSegment struct {
2231 // Confidence: Confidence for the track of detected text. It is calculated as
2232 // the highest over all frames where OCR detected text appears.
2233 Confidence float64 `json:"confidence,omitempty"`
2234 // Frames: Information related to the frames where OCR detected text appears.
2235 Frames []*GoogleCloudVideointelligenceV1beta2TextFrame `json:"frames,omitempty"`
2236 // Segment: Video segment where a text snippet was detected.
2237 Segment *GoogleCloudVideointelligenceV1beta2VideoSegment `json:"segment,omitempty"`
2238 // ForceSendFields is a list of field names (e.g. "Confidence") to
2239 // unconditionally include in API requests. By default, fields with empty or
2240 // default values are omitted from API requests. See
2241 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2242 // details.
2243 ForceSendFields []string `json:"-"`
2244 // NullFields is a list of field names (e.g. "Confidence") to include in API
2245 // requests with the JSON null value. By default, fields with empty values are
2246 // omitted from API requests. See
2247 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2248 NullFields []string `json:"-"`
2249 }
2250
2251 func (s GoogleCloudVideointelligenceV1beta2TextSegment) MarshalJSON() ([]byte, error) {
2252 type NoMethod GoogleCloudVideointelligenceV1beta2TextSegment
2253 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2254 }
2255
2256 func (s *GoogleCloudVideointelligenceV1beta2TextSegment) UnmarshalJSON(data []byte) error {
2257 type NoMethod GoogleCloudVideointelligenceV1beta2TextSegment
2258 var s1 struct {
2259 Confidence gensupport.JSONFloat64 `json:"confidence"`
2260 *NoMethod
2261 }
2262 s1.NoMethod = (*NoMethod)(s)
2263 if err := json.Unmarshal(data, &s1); err != nil {
2264 return err
2265 }
2266 s.Confidence = float64(s1.Confidence)
2267 return nil
2268 }
2269
2270 // GoogleCloudVideointelligenceV1beta2TimestampedObject: For tracking related
2271 // features. An object at time_offset with attributes, and located with
2272 // normalized_bounding_box.
2273 type GoogleCloudVideointelligenceV1beta2TimestampedObject struct {
2274 // Attributes: Optional. The attributes of the object in the bounding box.
2275 Attributes []*GoogleCloudVideointelligenceV1beta2DetectedAttribute `json:"attributes,omitempty"`
2276 // Landmarks: Optional. The detected landmarks.
2277 Landmarks []*GoogleCloudVideointelligenceV1beta2DetectedLandmark `json:"landmarks,omitempty"`
2278 // NormalizedBoundingBox: Normalized Bounding box in a frame, where the object
2279 // is located.
2280 NormalizedBoundingBox *GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
2281 // TimeOffset: Time-offset, relative to the beginning of the video,
2282 // corresponding to the video frame for this object.
2283 TimeOffset string `json:"timeOffset,omitempty"`
2284 // ForceSendFields is a list of field names (e.g. "Attributes") to
2285 // unconditionally include in API requests. By default, fields with empty or
2286 // default values are omitted from API requests. See
2287 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2288 // details.
2289 ForceSendFields []string `json:"-"`
2290 // NullFields is a list of field names (e.g. "Attributes") to include in API
2291 // requests with the JSON null value. By default, fields with empty values are
2292 // omitted from API requests. See
2293 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2294 NullFields []string `json:"-"`
2295 }
2296
2297 func (s GoogleCloudVideointelligenceV1beta2TimestampedObject) MarshalJSON() ([]byte, error) {
2298 type NoMethod GoogleCloudVideointelligenceV1beta2TimestampedObject
2299 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2300 }
2301
2302 // GoogleCloudVideointelligenceV1beta2Track: A track of an object instance.
2303 type GoogleCloudVideointelligenceV1beta2Track struct {
2304 // Attributes: Optional. Attributes in the track level.
2305 Attributes []*GoogleCloudVideointelligenceV1beta2DetectedAttribute `json:"attributes,omitempty"`
2306 // Confidence: Optional. The confidence score of the tracked object.
2307 Confidence float64 `json:"confidence,omitempty"`
2308 // Segment: Video segment of a track.
2309 Segment *GoogleCloudVideointelligenceV1beta2VideoSegment `json:"segment,omitempty"`
2310 // TimestampedObjects: The object with timestamp and attributes per frame in
2311 // the track.
2312 TimestampedObjects []*GoogleCloudVideointelligenceV1beta2TimestampedObject `json:"timestampedObjects,omitempty"`
2313 // ForceSendFields is a list of field names (e.g. "Attributes") to
2314 // unconditionally include in API requests. By default, fields with empty or
2315 // default values are omitted from API requests. See
2316 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2317 // details.
2318 ForceSendFields []string `json:"-"`
2319 // NullFields is a list of field names (e.g. "Attributes") to include in API
2320 // requests with the JSON null value. By default, fields with empty values are
2321 // omitted from API requests. See
2322 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2323 NullFields []string `json:"-"`
2324 }
2325
2326 func (s GoogleCloudVideointelligenceV1beta2Track) MarshalJSON() ([]byte, error) {
2327 type NoMethod GoogleCloudVideointelligenceV1beta2Track
2328 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2329 }
2330
2331 func (s *GoogleCloudVideointelligenceV1beta2Track) UnmarshalJSON(data []byte) error {
2332 type NoMethod GoogleCloudVideointelligenceV1beta2Track
2333 var s1 struct {
2334 Confidence gensupport.JSONFloat64 `json:"confidence"`
2335 *NoMethod
2336 }
2337 s1.NoMethod = (*NoMethod)(s)
2338 if err := json.Unmarshal(data, &s1); err != nil {
2339 return err
2340 }
2341 s.Confidence = float64(s1.Confidence)
2342 return nil
2343 }
2344
2345 // GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress: Annotation
2346 // progress for a single video.
2347 type GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress struct {
2348 // ExportStatus: Status of exporting annotation response to user specified
2349 // `output_uri`. Only set if `output_uri` is set in the request.
2350 ExportStatus *GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus `json:"exportStatus,omitempty"`
2351 // Feature: Specifies which feature is being tracked if the request contains
2352 // more than one feature.
2353 //
2354 // Possible values:
2355 // "FEATURE_UNSPECIFIED" - Unspecified.
2356 // "LABEL_DETECTION" - Label detection. Detect objects, such as dog or
2357 // flower.
2358 // "SHOT_CHANGE_DETECTION" - Shot change detection.
2359 // "EXPLICIT_CONTENT_DETECTION" - Explicit content detection.
2360 // "FACE_DETECTION" - Human face detection.
2361 // "SPEECH_TRANSCRIPTION" - Speech transcription.
2362 // "TEXT_DETECTION" - OCR text detection and tracking.
2363 // "OBJECT_TRACKING" - Object detection and tracking.
2364 // "LOGO_RECOGNITION" - Logo detection, tracking, and recognition.
2365 // "PERSON_DETECTION" - Person detection.
2366 Feature string `json:"feature,omitempty"`
2367 // InputUri: Video file location in Cloud Storage
2368 // (https://cloud.google.com/storage/).
2369 InputUri string `json:"inputUri,omitempty"`
2370 // ProgressPercent: Approximate percentage processed thus far. Guaranteed to be
2371 // 100 when fully processed.
2372 ProgressPercent int64 `json:"progressPercent,omitempty"`
2373 // Segment: Specifies which segment is being tracked if the request contains
2374 // more than one segment.
2375 Segment *GoogleCloudVideointelligenceV1beta2VideoSegment `json:"segment,omitempty"`
2376 // StartTime: Time when the request was received.
2377 StartTime string `json:"startTime,omitempty"`
2378 // UpdateTime: Time of the most recent update.
2379 UpdateTime string `json:"updateTime,omitempty"`
2380 // ForceSendFields is a list of field names (e.g. "ExportStatus") to
2381 // unconditionally include in API requests. By default, fields with empty or
2382 // default values are omitted from API requests. See
2383 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2384 // details.
2385 ForceSendFields []string `json:"-"`
2386 // NullFields is a list of field names (e.g. "ExportStatus") to include in API
2387 // requests with the JSON null value. By default, fields with empty values are
2388 // omitted from API requests. See
2389 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2390 NullFields []string `json:"-"`
2391 }
2392
2393 func (s GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress) MarshalJSON() ([]byte, error) {
2394 type NoMethod GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress
2395 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2396 }
2397
2398 // GoogleCloudVideointelligenceV1beta2VideoAnnotationResults: Annotation
2399 // results for a single video.
2400 type GoogleCloudVideointelligenceV1beta2VideoAnnotationResults struct {
2401 // Error: If set, indicates an error. Note that for a single
2402 // `AnnotateVideoRequest` some videos may succeed and some may fail.
2403 Error *GoogleRpcStatus `json:"error,omitempty"`
2404 // ExplicitAnnotation: Explicit content annotation.
2405 ExplicitAnnotation *GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation `json:"explicitAnnotation,omitempty"`
2406 // FaceAnnotations: Deprecated. Please use `face_detection_annotations`
2407 // instead.
2408 FaceAnnotations []*GoogleCloudVideointelligenceV1beta2FaceAnnotation `json:"faceAnnotations,omitempty"`
2409 // FaceDetectionAnnotations: Face detection annotations.
2410 FaceDetectionAnnotations []*GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation `json:"faceDetectionAnnotations,omitempty"`
2411 // FrameLabelAnnotations: Label annotations on frame level. There is exactly
2412 // one element for each unique label.
2413 FrameLabelAnnotations []*GoogleCloudVideointelligenceV1beta2LabelAnnotation `json:"frameLabelAnnotations,omitempty"`
2414 // InputUri: Video file location in Cloud Storage
2415 // (https://cloud.google.com/storage/).
2416 InputUri string `json:"inputUri,omitempty"`
2417 // LogoRecognitionAnnotations: Annotations for list of logos detected, tracked
2418 // and recognized in video.
2419 LogoRecognitionAnnotations []*GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation `json:"logoRecognitionAnnotations,omitempty"`
2420 // ObjectAnnotations: Annotations for list of objects detected and tracked in
2421 // video.
2422 ObjectAnnotations []*GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation `json:"objectAnnotations,omitempty"`
2423 // PersonDetectionAnnotations: Person detection annotations.
2424 PersonDetectionAnnotations []*GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation `json:"personDetectionAnnotations,omitempty"`
2425 // Segment: Video segment on which the annotation is run.
2426 Segment *GoogleCloudVideointelligenceV1beta2VideoSegment `json:"segment,omitempty"`
2427 // SegmentLabelAnnotations: Topical label annotations on video level or
2428 // user-specified segment level. There is exactly one element for each unique
2429 // label.
2430 SegmentLabelAnnotations []*GoogleCloudVideointelligenceV1beta2LabelAnnotation `json:"segmentLabelAnnotations,omitempty"`
2431 // SegmentPresenceLabelAnnotations: Presence label annotations on video level
2432 // or user-specified segment level. There is exactly one element for each
2433 // unique label. Compared to the existing topical `segment_label_annotations`,
2434 // this field presents more fine-grained, segment-level labels detected in
2435 // video content and is made available only when the client sets
2436 // `LabelDetectionConfig.model` to "builtin/latest" in the request.
2437 SegmentPresenceLabelAnnotations []*GoogleCloudVideointelligenceV1beta2LabelAnnotation `json:"segmentPresenceLabelAnnotations,omitempty"`
2438 // ShotAnnotations: Shot annotations. Each shot is represented as a video
2439 // segment.
2440 ShotAnnotations []*GoogleCloudVideointelligenceV1beta2VideoSegment `json:"shotAnnotations,omitempty"`
2441 // ShotLabelAnnotations: Topical label annotations on shot level. There is
2442 // exactly one element for each unique label.
2443 ShotLabelAnnotations []*GoogleCloudVideointelligenceV1beta2LabelAnnotation `json:"shotLabelAnnotations,omitempty"`
2444 // ShotPresenceLabelAnnotations: Presence label annotations on shot level.
2445 // There is exactly one element for each unique label. Compared to the existing
2446 // topical `shot_label_annotations`, this field presents more fine-grained,
2447 // shot-level labels detected in video content and is made available only when
2448 // the client sets `LabelDetectionConfig.model` to "builtin/latest" in the
2449 // request.
2450 ShotPresenceLabelAnnotations []*GoogleCloudVideointelligenceV1beta2LabelAnnotation `json:"shotPresenceLabelAnnotations,omitempty"`
2451 // SpeechTranscriptions: Speech transcription.
2452 SpeechTranscriptions []*GoogleCloudVideointelligenceV1beta2SpeechTranscription `json:"speechTranscriptions,omitempty"`
2453 // TextAnnotations: OCR text detection and tracking. Annotations for list of
2454 // detected text snippets. Each will have list of frame information associated
2455 // with it.
2456 TextAnnotations []*GoogleCloudVideointelligenceV1beta2TextAnnotation `json:"textAnnotations,omitempty"`
2457 // ForceSendFields is a list of field names (e.g. "Error") to unconditionally
2458 // include in API requests. By default, fields with empty or default values are
2459 // omitted from API requests. See
2460 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2461 // details.
2462 ForceSendFields []string `json:"-"`
2463 // NullFields is a list of field names (e.g. "Error") to include in API
2464 // requests with the JSON null value. By default, fields with empty values are
2465 // omitted from API requests. See
2466 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2467 NullFields []string `json:"-"`
2468 }
2469
2470 func (s GoogleCloudVideointelligenceV1beta2VideoAnnotationResults) MarshalJSON() ([]byte, error) {
2471 type NoMethod GoogleCloudVideointelligenceV1beta2VideoAnnotationResults
2472 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2473 }
2474
2475 // GoogleCloudVideointelligenceV1beta2VideoSegment: Video segment.
2476 type GoogleCloudVideointelligenceV1beta2VideoSegment struct {
2477 // EndTimeOffset: Time-offset, relative to the beginning of the video,
2478 // corresponding to the end of the segment (inclusive).
2479 EndTimeOffset string `json:"endTimeOffset,omitempty"`
2480 // StartTimeOffset: Time-offset, relative to the beginning of the video,
2481 // corresponding to the start of the segment (inclusive).
2482 StartTimeOffset string `json:"startTimeOffset,omitempty"`
2483 // ForceSendFields is a list of field names (e.g. "EndTimeOffset") to
2484 // unconditionally include in API requests. By default, fields with empty or
2485 // default values are omitted from API requests. See
2486 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2487 // details.
2488 ForceSendFields []string `json:"-"`
2489 // NullFields is a list of field names (e.g. "EndTimeOffset") to include in API
2490 // requests with the JSON null value. By default, fields with empty values are
2491 // omitted from API requests. See
2492 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2493 NullFields []string `json:"-"`
2494 }
2495
2496 func (s GoogleCloudVideointelligenceV1beta2VideoSegment) MarshalJSON() ([]byte, error) {
2497 type NoMethod GoogleCloudVideointelligenceV1beta2VideoSegment
2498 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2499 }
2500
2501 // GoogleCloudVideointelligenceV1beta2WordInfo: Word-specific information for
2502 // recognized words. Word information is only included in the response when
2503 // certain request parameters are set, such as `enable_word_time_offsets`.
2504 type GoogleCloudVideointelligenceV1beta2WordInfo struct {
2505 // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A
2506 // higher number indicates an estimated greater likelihood that the recognized
2507 // words are correct. This field is set only for the top alternative. This
2508 // field is not guaranteed to be accurate and users should not rely on it to be
2509 // always provided. The default of 0.0 is a sentinel value indicating
2510 // `confidence` was not set.
2511 Confidence float64 `json:"confidence,omitempty"`
2512 // EndTime: Time offset relative to the beginning of the audio, and
2513 // corresponding to the end of the spoken word. This field is only set if
2514 // `enable_word_time_offsets=true` and only in the top hypothesis. This is an
2515 // experimental feature and the accuracy of the time offset can vary.
2516 EndTime string `json:"endTime,omitempty"`
2517 // SpeakerLabel: Output only. A distinct string value is assigned for every
2518 // speaker within the audio. This field specifies which one of those speakers
2519 // was detected to have spoken this word.
2520 SpeakerLabel string `json:"speakerLabel,omitempty"`
2521 // SpeakerTag: Output only. A distinct integer value is assigned for every
2522 // speaker within the audio. This field specifies which one of those speakers
2523 // was detected to have spoken this word. Value ranges from 1 up to
2524 // diarization_speaker_count, and is only set if speaker diarization is
2525 // enabled.
2526 SpeakerTag int64 `json:"speakerTag,omitempty"`
2527 // StartTime: Time offset relative to the beginning of the audio, and
2528 // corresponding to the start of the spoken word. This field is only set if
2529 // `enable_word_time_offsets=true` and only in the top hypothesis. This is an
2530 // experimental feature and the accuracy of the time offset can vary.
2531 StartTime string `json:"startTime,omitempty"`
2532 // Word: The word corresponding to this set of information.
2533 Word string `json:"word,omitempty"`
2534 // ForceSendFields is a list of field names (e.g. "Confidence") to
2535 // unconditionally include in API requests. By default, fields with empty or
2536 // default values are omitted from API requests. See
2537 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2538 // details.
2539 ForceSendFields []string `json:"-"`
2540 // NullFields is a list of field names (e.g. "Confidence") to include in API
2541 // requests with the JSON null value. By default, fields with empty values are
2542 // omitted from API requests. See
2543 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2544 NullFields []string `json:"-"`
2545 }
2546
2547 func (s GoogleCloudVideointelligenceV1beta2WordInfo) MarshalJSON() ([]byte, error) {
2548 type NoMethod GoogleCloudVideointelligenceV1beta2WordInfo
2549 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2550 }
2551
2552 func (s *GoogleCloudVideointelligenceV1beta2WordInfo) UnmarshalJSON(data []byte) error {
2553 type NoMethod GoogleCloudVideointelligenceV1beta2WordInfo
2554 var s1 struct {
2555 Confidence gensupport.JSONFloat64 `json:"confidence"`
2556 *NoMethod
2557 }
2558 s1.NoMethod = (*NoMethod)(s)
2559 if err := json.Unmarshal(data, &s1); err != nil {
2560 return err
2561 }
2562 s.Confidence = float64(s1.Confidence)
2563 return nil
2564 }
2565
2566 // GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress: Video annotation
2567 // progress. Included in the `metadata` field of the `Operation` returned by
2568 // the `GetOperation` call of the `google::longrunning::Operations` service.
2569 type GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress struct {
2570 // AnnotationProgress: Progress metadata for all videos specified in
2571 // `AnnotateVideoRequest`.
2572 AnnotationProgress []*GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress `json:"annotationProgress,omitempty"`
2573 // ForceSendFields is a list of field names (e.g. "AnnotationProgress") to
2574 // unconditionally include in API requests. By default, fields with empty or
2575 // default values are omitted from API requests. See
2576 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2577 // details.
2578 ForceSendFields []string `json:"-"`
2579 // NullFields is a list of field names (e.g. "AnnotationProgress") to include
2580 // in API requests with the JSON null value. By default, fields with empty
2581 // values are omitted from API requests. See
2582 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2583 NullFields []string `json:"-"`
2584 }
2585
2586 func (s GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress) MarshalJSON() ([]byte, error) {
2587 type NoMethod GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress
2588 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2589 }
2590
2591 // GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse: Video annotation
2592 // response. Included in the `response` field of the `Operation` returned by
2593 // the `GetOperation` call of the `google::longrunning::Operations` service.
2594 type GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse struct {
2595 // AnnotationResults: Annotation results for all videos specified in
2596 // `AnnotateVideoRequest`.
2597 AnnotationResults []*GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults `json:"annotationResults,omitempty"`
2598 // ForceSendFields is a list of field names (e.g. "AnnotationResults") to
2599 // unconditionally include in API requests. By default, fields with empty or
2600 // default values are omitted from API requests. See
2601 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2602 // details.
2603 ForceSendFields []string `json:"-"`
2604 // NullFields is a list of field names (e.g. "AnnotationResults") to include in
2605 // API requests with the JSON null value. By default, fields with empty values
2606 // are omitted from API requests. See
2607 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2608 NullFields []string `json:"-"`
2609 }
2610
2611 func (s GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse) MarshalJSON() ([]byte, error) {
2612 type NoMethod GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse
2613 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2614 }
2615
2616 // GoogleCloudVideointelligenceV1p1beta1DetectedAttribute: A generic detected
2617 // attribute represented by name in string format.
2618 type GoogleCloudVideointelligenceV1p1beta1DetectedAttribute struct {
2619 // Confidence: Detected attribute confidence. Range [0, 1].
2620 Confidence float64 `json:"confidence,omitempty"`
2621 // Name: The name of the attribute, for example, glasses, dark_glasses,
2622 // mouth_open. A full list of supported type names will be provided in the
2623 // document.
2624 Name string `json:"name,omitempty"`
2625 // Value: Text value of the detection result. For example, the value for
2626 // "HairColor" can be "black", "blonde", etc.
2627 Value string `json:"value,omitempty"`
2628 // ForceSendFields is a list of field names (e.g. "Confidence") to
2629 // unconditionally include in API requests. By default, fields with empty or
2630 // default values are omitted from API requests. See
2631 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2632 // details.
2633 ForceSendFields []string `json:"-"`
2634 // NullFields is a list of field names (e.g. "Confidence") to include in API
2635 // requests with the JSON null value. By default, fields with empty values are
2636 // omitted from API requests. See
2637 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2638 NullFields []string `json:"-"`
2639 }
2640
2641 func (s GoogleCloudVideointelligenceV1p1beta1DetectedAttribute) MarshalJSON() ([]byte, error) {
2642 type NoMethod GoogleCloudVideointelligenceV1p1beta1DetectedAttribute
2643 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2644 }
2645
2646 func (s *GoogleCloudVideointelligenceV1p1beta1DetectedAttribute) UnmarshalJSON(data []byte) error {
2647 type NoMethod GoogleCloudVideointelligenceV1p1beta1DetectedAttribute
2648 var s1 struct {
2649 Confidence gensupport.JSONFloat64 `json:"confidence"`
2650 *NoMethod
2651 }
2652 s1.NoMethod = (*NoMethod)(s)
2653 if err := json.Unmarshal(data, &s1); err != nil {
2654 return err
2655 }
2656 s.Confidence = float64(s1.Confidence)
2657 return nil
2658 }
2659
2660 // GoogleCloudVideointelligenceV1p1beta1DetectedLandmark: A generic detected
2661 // landmark represented by name in string format and a 2D location.
2662 type GoogleCloudVideointelligenceV1p1beta1DetectedLandmark struct {
2663 // Confidence: The confidence score of the detected landmark. Range [0, 1].
2664 Confidence float64 `json:"confidence,omitempty"`
2665 // Name: The name of this landmark, for example, left_hand, right_shoulder.
2666 Name string `json:"name,omitempty"`
2667 // Point: The 2D point of the detected landmark using the normalized image
2668 // coordinate system. The normalized coordinates have the range from 0 to 1.
2669 Point *GoogleCloudVideointelligenceV1p1beta1NormalizedVertex `json:"point,omitempty"`
2670 // ForceSendFields is a list of field names (e.g. "Confidence") to
2671 // unconditionally include in API requests. By default, fields with empty or
2672 // default values are omitted from API requests. See
2673 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2674 // details.
2675 ForceSendFields []string `json:"-"`
2676 // NullFields is a list of field names (e.g. "Confidence") to include in API
2677 // requests with the JSON null value. By default, fields with empty values are
2678 // omitted from API requests. See
2679 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2680 NullFields []string `json:"-"`
2681 }
2682
2683 func (s GoogleCloudVideointelligenceV1p1beta1DetectedLandmark) MarshalJSON() ([]byte, error) {
2684 type NoMethod GoogleCloudVideointelligenceV1p1beta1DetectedLandmark
2685 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2686 }
2687
2688 func (s *GoogleCloudVideointelligenceV1p1beta1DetectedLandmark) UnmarshalJSON(data []byte) error {
2689 type NoMethod GoogleCloudVideointelligenceV1p1beta1DetectedLandmark
2690 var s1 struct {
2691 Confidence gensupport.JSONFloat64 `json:"confidence"`
2692 *NoMethod
2693 }
2694 s1.NoMethod = (*NoMethod)(s)
2695 if err := json.Unmarshal(data, &s1); err != nil {
2696 return err
2697 }
2698 s.Confidence = float64(s1.Confidence)
2699 return nil
2700 }
2701
2702 // GoogleCloudVideointelligenceV1p1beta1Entity: Detected entity from video
2703 // analysis.
2704 type GoogleCloudVideointelligenceV1p1beta1Entity struct {
2705 // Description: Textual description, e.g., `Fixed-gear bicycle`.
2706 Description string `json:"description,omitempty"`
2707 // EntityId: Opaque entity ID. Some IDs may be available in Google Knowledge
2708 // Graph Search API (https://developers.google.com/knowledge-graph/).
2709 EntityId string `json:"entityId,omitempty"`
2710 // LanguageCode: Language code for `description` in BCP-47 format.
2711 LanguageCode string `json:"languageCode,omitempty"`
2712 // ForceSendFields is a list of field names (e.g. "Description") to
2713 // unconditionally include in API requests. By default, fields with empty or
2714 // default values are omitted from API requests. See
2715 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2716 // details.
2717 ForceSendFields []string `json:"-"`
2718 // NullFields is a list of field names (e.g. "Description") to include in API
2719 // requests with the JSON null value. By default, fields with empty values are
2720 // omitted from API requests. See
2721 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2722 NullFields []string `json:"-"`
2723 }
2724
2725 func (s GoogleCloudVideointelligenceV1p1beta1Entity) MarshalJSON() ([]byte, error) {
2726 type NoMethod GoogleCloudVideointelligenceV1p1beta1Entity
2727 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2728 }
2729
2730 // GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation: Explicit
2731 // content annotation (based on per-frame visual signals only). If no explicit
2732 // content has been detected in a frame, no annotations are present for that
2733 // frame.
2734 type GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation struct {
2735 // Frames: All video frames where explicit content was detected.
2736 Frames []*GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame `json:"frames,omitempty"`
2737 // Version: Feature version.
2738 Version string `json:"version,omitempty"`
2739 // ForceSendFields is a list of field names (e.g. "Frames") to unconditionally
2740 // include in API requests. By default, fields with empty or default values are
2741 // omitted from API requests. See
2742 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2743 // details.
2744 ForceSendFields []string `json:"-"`
2745 // NullFields is a list of field names (e.g. "Frames") to include in API
2746 // requests with the JSON null value. By default, fields with empty values are
2747 // omitted from API requests. See
2748 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2749 NullFields []string `json:"-"`
2750 }
2751
2752 func (s GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation) MarshalJSON() ([]byte, error) {
2753 type NoMethod GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation
2754 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2755 }
2756
2757 // GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame: Video frame level
2758 // annotation results for explicit content.
2759 type GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame struct {
2760 // PornographyLikelihood: Likelihood of the pornography content..
2761 //
2762 // Possible values:
2763 // "LIKELIHOOD_UNSPECIFIED" - Unspecified likelihood.
2764 // "VERY_UNLIKELY" - Very unlikely.
2765 // "UNLIKELY" - Unlikely.
2766 // "POSSIBLE" - Possible.
2767 // "LIKELY" - Likely.
2768 // "VERY_LIKELY" - Very likely.
2769 PornographyLikelihood string `json:"pornographyLikelihood,omitempty"`
2770 // TimeOffset: Time-offset, relative to the beginning of the video,
2771 // corresponding to the video frame for this location.
2772 TimeOffset string `json:"timeOffset,omitempty"`
2773 // ForceSendFields is a list of field names (e.g. "PornographyLikelihood") to
2774 // unconditionally include in API requests. By default, fields with empty or
2775 // default values are omitted from API requests. See
2776 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2777 // details.
2778 ForceSendFields []string `json:"-"`
2779 // NullFields is a list of field names (e.g. "PornographyLikelihood") to
2780 // include in API requests with the JSON null value. By default, fields with
2781 // empty values are omitted from API requests. See
2782 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2783 NullFields []string `json:"-"`
2784 }
2785
2786 func (s GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame) MarshalJSON() ([]byte, error) {
2787 type NoMethod GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame
2788 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2789 }
2790
2791 // GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus: Status of
2792 // exporting annotation response to user specified `output_uri`.
2793 type GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus struct {
2794 // State: Output only. State of the `output_uri` export.
2795 //
2796 // Possible values:
2797 // "STATE_UNSPECIFIED" - Default value.
2798 // "SUCCEEDED" - Export succeeded.
2799 // "FAILED" - Export failed.
2800 State string `json:"state,omitempty"`
2801 // Status: Output only. Only set if state is FAILED.
2802 Status *GoogleRpcStatus `json:"status,omitempty"`
2803 // ForceSendFields is a list of field names (e.g. "State") to unconditionally
2804 // include in API requests. By default, fields with empty or default values are
2805 // omitted from API requests. See
2806 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2807 // details.
2808 ForceSendFields []string `json:"-"`
2809 // NullFields is a list of field names (e.g. "State") to include in API
2810 // requests with the JSON null value. By default, fields with empty values are
2811 // omitted from API requests. See
2812 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2813 NullFields []string `json:"-"`
2814 }
2815
2816 func (s GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus) MarshalJSON() ([]byte, error) {
2817 type NoMethod GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus
2818 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2819 }
2820
2821 // GoogleCloudVideointelligenceV1p1beta1FaceAnnotation: Deprecated. No effect.
2822 type GoogleCloudVideointelligenceV1p1beta1FaceAnnotation struct {
2823 // Frames: All video frames where a face was detected.
2824 Frames []*GoogleCloudVideointelligenceV1p1beta1FaceFrame `json:"frames,omitempty"`
2825 // Segments: All video segments where a face was detected.
2826 Segments []*GoogleCloudVideointelligenceV1p1beta1FaceSegment `json:"segments,omitempty"`
2827 // Thumbnail: Thumbnail of a representative face view (in JPEG format).
2828 Thumbnail string `json:"thumbnail,omitempty"`
2829 // ForceSendFields is a list of field names (e.g. "Frames") to unconditionally
2830 // include in API requests. By default, fields with empty or default values are
2831 // omitted from API requests. See
2832 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2833 // details.
2834 ForceSendFields []string `json:"-"`
2835 // NullFields is a list of field names (e.g. "Frames") to include in API
2836 // requests with the JSON null value. By default, fields with empty values are
2837 // omitted from API requests. See
2838 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2839 NullFields []string `json:"-"`
2840 }
2841
2842 func (s GoogleCloudVideointelligenceV1p1beta1FaceAnnotation) MarshalJSON() ([]byte, error) {
2843 type NoMethod GoogleCloudVideointelligenceV1p1beta1FaceAnnotation
2844 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2845 }
2846
2847 // GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation: Face detection
2848 // annotation.
2849 type GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation struct {
2850 // Thumbnail: The thumbnail of a person's face.
2851 Thumbnail string `json:"thumbnail,omitempty"`
2852 // Tracks: The face tracks with attributes.
2853 Tracks []*GoogleCloudVideointelligenceV1p1beta1Track `json:"tracks,omitempty"`
2854 // Version: Feature version.
2855 Version string `json:"version,omitempty"`
2856 // ForceSendFields is a list of field names (e.g. "Thumbnail") to
2857 // unconditionally include in API requests. By default, fields with empty or
2858 // default values are omitted from API requests. See
2859 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2860 // details.
2861 ForceSendFields []string `json:"-"`
2862 // NullFields is a list of field names (e.g. "Thumbnail") to include in API
2863 // requests with the JSON null value. By default, fields with empty values are
2864 // omitted from API requests. See
2865 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2866 NullFields []string `json:"-"`
2867 }
2868
2869 func (s GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation) MarshalJSON() ([]byte, error) {
2870 type NoMethod GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
2871 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2872 }
2873
2874 // GoogleCloudVideointelligenceV1p1beta1FaceFrame: Deprecated. No effect.
2875 type GoogleCloudVideointelligenceV1p1beta1FaceFrame struct {
2876 // NormalizedBoundingBoxes: Normalized Bounding boxes in a frame. There can be
2877 // more than one boxes if the same face is detected in multiple locations
2878 // within the current frame.
2879 NormalizedBoundingBoxes []*GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox `json:"normalizedBoundingBoxes,omitempty"`
2880 // TimeOffset: Time-offset, relative to the beginning of the video,
2881 // corresponding to the video frame for this location.
2882 TimeOffset string `json:"timeOffset,omitempty"`
2883 // ForceSendFields is a list of field names (e.g. "NormalizedBoundingBoxes") to
2884 // unconditionally include in API requests. By default, fields with empty or
2885 // default values are omitted from API requests. See
2886 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2887 // details.
2888 ForceSendFields []string `json:"-"`
2889 // NullFields is a list of field names (e.g. "NormalizedBoundingBoxes") to
2890 // include in API requests with the JSON null value. By default, fields with
2891 // empty values are omitted from API requests. See
2892 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2893 NullFields []string `json:"-"`
2894 }
2895
2896 func (s GoogleCloudVideointelligenceV1p1beta1FaceFrame) MarshalJSON() ([]byte, error) {
2897 type NoMethod GoogleCloudVideointelligenceV1p1beta1FaceFrame
2898 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2899 }
2900
2901 // GoogleCloudVideointelligenceV1p1beta1FaceSegment: Video segment level
2902 // annotation results for face detection.
2903 type GoogleCloudVideointelligenceV1p1beta1FaceSegment struct {
2904 // Segment: Video segment where a face was detected.
2905 Segment *GoogleCloudVideointelligenceV1p1beta1VideoSegment `json:"segment,omitempty"`
2906 // ForceSendFields is a list of field names (e.g. "Segment") to unconditionally
2907 // include in API requests. By default, fields with empty or default values are
2908 // omitted from API requests. See
2909 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2910 // details.
2911 ForceSendFields []string `json:"-"`
2912 // NullFields is a list of field names (e.g. "Segment") to include in API
2913 // requests with the JSON null value. By default, fields with empty values are
2914 // omitted from API requests. See
2915 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2916 NullFields []string `json:"-"`
2917 }
2918
2919 func (s GoogleCloudVideointelligenceV1p1beta1FaceSegment) MarshalJSON() ([]byte, error) {
2920 type NoMethod GoogleCloudVideointelligenceV1p1beta1FaceSegment
2921 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2922 }
2923
2924 // GoogleCloudVideointelligenceV1p1beta1LabelAnnotation: Label annotation.
2925 type GoogleCloudVideointelligenceV1p1beta1LabelAnnotation struct {
2926 // CategoryEntities: Common categories for the detected entity. For example,
2927 // when the label is `Terrier`, the category is likely `dog`. And in some cases
2928 // there might be more than one categories e.g., `Terrier` could also be a
2929 // `pet`.
2930 CategoryEntities []*GoogleCloudVideointelligenceV1p1beta1Entity `json:"categoryEntities,omitempty"`
2931 // Entity: Detected entity.
2932 Entity *GoogleCloudVideointelligenceV1p1beta1Entity `json:"entity,omitempty"`
2933 // Frames: All video frames where a label was detected.
2934 Frames []*GoogleCloudVideointelligenceV1p1beta1LabelFrame `json:"frames,omitempty"`
2935 // Segments: All video segments where a label was detected.
2936 Segments []*GoogleCloudVideointelligenceV1p1beta1LabelSegment `json:"segments,omitempty"`
2937 // Version: Feature version.
2938 Version string `json:"version,omitempty"`
2939 // ForceSendFields is a list of field names (e.g. "CategoryEntities") to
2940 // unconditionally include in API requests. By default, fields with empty or
2941 // default values are omitted from API requests. See
2942 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2943 // details.
2944 ForceSendFields []string `json:"-"`
2945 // NullFields is a list of field names (e.g. "CategoryEntities") to include in
2946 // API requests with the JSON null value. By default, fields with empty values
2947 // are omitted from API requests. See
2948 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2949 NullFields []string `json:"-"`
2950 }
2951
2952 func (s GoogleCloudVideointelligenceV1p1beta1LabelAnnotation) MarshalJSON() ([]byte, error) {
2953 type NoMethod GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
2954 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2955 }
2956
2957 // GoogleCloudVideointelligenceV1p1beta1LabelFrame: Video frame level
2958 // annotation results for label detection.
2959 type GoogleCloudVideointelligenceV1p1beta1LabelFrame struct {
2960 // Confidence: Confidence that the label is accurate. Range: [0, 1].
2961 Confidence float64 `json:"confidence,omitempty"`
2962 // TimeOffset: Time-offset, relative to the beginning of the video,
2963 // corresponding to the video frame for this location.
2964 TimeOffset string `json:"timeOffset,omitempty"`
2965 // ForceSendFields is a list of field names (e.g. "Confidence") to
2966 // unconditionally include in API requests. By default, fields with empty or
2967 // default values are omitted from API requests. See
2968 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2969 // details.
2970 ForceSendFields []string `json:"-"`
2971 // NullFields is a list of field names (e.g. "Confidence") to include in API
2972 // requests with the JSON null value. By default, fields with empty values are
2973 // omitted from API requests. See
2974 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2975 NullFields []string `json:"-"`
2976 }
2977
2978 func (s GoogleCloudVideointelligenceV1p1beta1LabelFrame) MarshalJSON() ([]byte, error) {
2979 type NoMethod GoogleCloudVideointelligenceV1p1beta1LabelFrame
2980 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2981 }
2982
2983 func (s *GoogleCloudVideointelligenceV1p1beta1LabelFrame) UnmarshalJSON(data []byte) error {
2984 type NoMethod GoogleCloudVideointelligenceV1p1beta1LabelFrame
2985 var s1 struct {
2986 Confidence gensupport.JSONFloat64 `json:"confidence"`
2987 *NoMethod
2988 }
2989 s1.NoMethod = (*NoMethod)(s)
2990 if err := json.Unmarshal(data, &s1); err != nil {
2991 return err
2992 }
2993 s.Confidence = float64(s1.Confidence)
2994 return nil
2995 }
2996
2997 // GoogleCloudVideointelligenceV1p1beta1LabelSegment: Video segment level
2998 // annotation results for label detection.
2999 type GoogleCloudVideointelligenceV1p1beta1LabelSegment struct {
3000 // Confidence: Confidence that the label is accurate. Range: [0, 1].
3001 Confidence float64 `json:"confidence,omitempty"`
3002 // Segment: Video segment where a label was detected.
3003 Segment *GoogleCloudVideointelligenceV1p1beta1VideoSegment `json:"segment,omitempty"`
3004 // ForceSendFields is a list of field names (e.g. "Confidence") to
3005 // unconditionally include in API requests. By default, fields with empty or
3006 // default values are omitted from API requests. See
3007 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3008 // details.
3009 ForceSendFields []string `json:"-"`
3010 // NullFields is a list of field names (e.g. "Confidence") to include in API
3011 // requests with the JSON null value. By default, fields with empty values are
3012 // omitted from API requests. See
3013 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3014 NullFields []string `json:"-"`
3015 }
3016
3017 func (s GoogleCloudVideointelligenceV1p1beta1LabelSegment) MarshalJSON() ([]byte, error) {
3018 type NoMethod GoogleCloudVideointelligenceV1p1beta1LabelSegment
3019 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3020 }
3021
3022 func (s *GoogleCloudVideointelligenceV1p1beta1LabelSegment) UnmarshalJSON(data []byte) error {
3023 type NoMethod GoogleCloudVideointelligenceV1p1beta1LabelSegment
3024 var s1 struct {
3025 Confidence gensupport.JSONFloat64 `json:"confidence"`
3026 *NoMethod
3027 }
3028 s1.NoMethod = (*NoMethod)(s)
3029 if err := json.Unmarshal(data, &s1); err != nil {
3030 return err
3031 }
3032 s.Confidence = float64(s1.Confidence)
3033 return nil
3034 }
3035
3036 // GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation: Annotation
3037 // corresponding to one detected, tracked and recognized logo class.
3038 type GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation struct {
3039 // Entity: Entity category information to specify the logo class that all the
3040 // logo tracks within this LogoRecognitionAnnotation are recognized as.
3041 Entity *GoogleCloudVideointelligenceV1p1beta1Entity `json:"entity,omitempty"`
3042 // Segments: All video segments where the recognized logo appears. There might
3043 // be multiple instances of the same logo class appearing in one VideoSegment.
3044 Segments []*GoogleCloudVideointelligenceV1p1beta1VideoSegment `json:"segments,omitempty"`
3045 // Tracks: All logo tracks where the recognized logo appears. Each track
3046 // corresponds to one logo instance appearing in consecutive frames.
3047 Tracks []*GoogleCloudVideointelligenceV1p1beta1Track `json:"tracks,omitempty"`
3048 // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
3049 // include in API requests. By default, fields with empty or default values are
3050 // omitted from API requests. See
3051 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3052 // details.
3053 ForceSendFields []string `json:"-"`
3054 // NullFields is a list of field names (e.g. "Entity") to include in API
3055 // requests with the JSON null value. By default, fields with empty values are
3056 // omitted from API requests. See
3057 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3058 NullFields []string `json:"-"`
3059 }
3060
3061 func (s GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation) MarshalJSON() ([]byte, error) {
3062 type NoMethod GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation
3063 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3064 }
3065
3066 // GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox: Normalized
3067 // bounding box. The normalized vertex coordinates are relative to the original
3068 // image. Range: [0, 1].
3069 type GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox struct {
3070 // Bottom: Bottom Y coordinate.
3071 Bottom float64 `json:"bottom,omitempty"`
3072 // Left: Left X coordinate.
3073 Left float64 `json:"left,omitempty"`
3074 // Right: Right X coordinate.
3075 Right float64 `json:"right,omitempty"`
3076 // Top: Top Y coordinate.
3077 Top float64 `json:"top,omitempty"`
3078 // ForceSendFields is a list of field names (e.g. "Bottom") to unconditionally
3079 // include in API requests. By default, fields with empty or default values are
3080 // omitted from API requests. See
3081 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3082 // details.
3083 ForceSendFields []string `json:"-"`
3084 // NullFields is a list of field names (e.g. "Bottom") to include in API
3085 // requests with the JSON null value. By default, fields with empty values are
3086 // omitted from API requests. See
3087 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3088 NullFields []string `json:"-"`
3089 }
3090
3091 func (s GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox) MarshalJSON() ([]byte, error) {
3092 type NoMethod GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
3093 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3094 }
3095
3096 func (s *GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox) UnmarshalJSON(data []byte) error {
3097 type NoMethod GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
3098 var s1 struct {
3099 Bottom gensupport.JSONFloat64 `json:"bottom"`
3100 Left gensupport.JSONFloat64 `json:"left"`
3101 Right gensupport.JSONFloat64 `json:"right"`
3102 Top gensupport.JSONFloat64 `json:"top"`
3103 *NoMethod
3104 }
3105 s1.NoMethod = (*NoMethod)(s)
3106 if err := json.Unmarshal(data, &s1); err != nil {
3107 return err
3108 }
3109 s.Bottom = float64(s1.Bottom)
3110 s.Left = float64(s1.Left)
3111 s.Right = float64(s1.Right)
3112 s.Top = float64(s1.Top)
3113 return nil
3114 }
3115
3116 // GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly: Normalized
3117 // bounding polygon for text (that might not be aligned with axis). Contains
3118 // list of the corner points in clockwise order starting from top-left corner.
3119 // For example, for a rectangular bounding box: When the text is horizontal it
3120 // might look like: 0----1 | | 3----2 When it's clockwise rotated 180 degrees
3121 // around the top-left corner it becomes: 2----3 | | 1----0 and the vertex
3122 // order will still be (0, 1, 2, 3). Note that values can be less than 0, or
3123 // greater than 1 due to trigonometric calculations for location of the box.
3124 type GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly struct {
3125 // Vertices: Normalized vertices of the bounding polygon.
3126 Vertices []*GoogleCloudVideointelligenceV1p1beta1NormalizedVertex `json:"vertices,omitempty"`
3127 // ForceSendFields is a list of field names (e.g. "Vertices") to
3128 // unconditionally include in API requests. By default, fields with empty or
3129 // default values are omitted from API requests. See
3130 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3131 // details.
3132 ForceSendFields []string `json:"-"`
3133 // NullFields is a list of field names (e.g. "Vertices") to include in API
3134 // requests with the JSON null value. By default, fields with empty values are
3135 // omitted from API requests. See
3136 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3137 NullFields []string `json:"-"`
3138 }
3139
3140 func (s GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly) MarshalJSON() ([]byte, error) {
3141 type NoMethod GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly
3142 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3143 }
3144
3145 // GoogleCloudVideointelligenceV1p1beta1NormalizedVertex: A vertex represents a
3146 // 2D point in the image. NOTE: the normalized vertex coordinates are relative
3147 // to the original image and range from 0 to 1.
3148 type GoogleCloudVideointelligenceV1p1beta1NormalizedVertex struct {
3149 // X: X coordinate.
3150 X float64 `json:"x,omitempty"`
3151 // Y: Y coordinate.
3152 Y float64 `json:"y,omitempty"`
3153 // ForceSendFields is a list of field names (e.g. "X") to unconditionally
3154 // include in API requests. By default, fields with empty or default values are
3155 // omitted from API requests. See
3156 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3157 // details.
3158 ForceSendFields []string `json:"-"`
3159 // NullFields is a list of field names (e.g. "X") to include in API requests
3160 // with the JSON null value. By default, fields with empty values are omitted
3161 // from API requests. See
3162 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3163 NullFields []string `json:"-"`
3164 }
3165
3166 func (s GoogleCloudVideointelligenceV1p1beta1NormalizedVertex) MarshalJSON() ([]byte, error) {
3167 type NoMethod GoogleCloudVideointelligenceV1p1beta1NormalizedVertex
3168 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3169 }
3170
3171 func (s *GoogleCloudVideointelligenceV1p1beta1NormalizedVertex) UnmarshalJSON(data []byte) error {
3172 type NoMethod GoogleCloudVideointelligenceV1p1beta1NormalizedVertex
3173 var s1 struct {
3174 X gensupport.JSONFloat64 `json:"x"`
3175 Y gensupport.JSONFloat64 `json:"y"`
3176 *NoMethod
3177 }
3178 s1.NoMethod = (*NoMethod)(s)
3179 if err := json.Unmarshal(data, &s1); err != nil {
3180 return err
3181 }
3182 s.X = float64(s1.X)
3183 s.Y = float64(s1.Y)
3184 return nil
3185 }
3186
3187 // GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation: Annotations
3188 // corresponding to one tracked object.
3189 type GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation struct {
3190 // Confidence: Object category's labeling confidence of this track.
3191 Confidence float64 `json:"confidence,omitempty"`
3192 // Entity: Entity to specify the object category that this track is labeled as.
3193 Entity *GoogleCloudVideointelligenceV1p1beta1Entity `json:"entity,omitempty"`
3194 // Frames: Information corresponding to all frames where this object track
3195 // appears. Non-streaming batch mode: it may be one or multiple
3196 // ObjectTrackingFrame messages in frames. Streaming mode: it can only be one
3197 // ObjectTrackingFrame message in frames.
3198 Frames []*GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame `json:"frames,omitempty"`
3199 // Segment: Non-streaming batch mode ONLY. Each object track corresponds to one
3200 // video segment where it appears.
3201 Segment *GoogleCloudVideointelligenceV1p1beta1VideoSegment `json:"segment,omitempty"`
3202 // TrackId: Streaming mode ONLY. In streaming mode, we do not know the end time
3203 // of a tracked object before it is completed. Hence, there is no VideoSegment
3204 // info returned. Instead, we provide a unique identifiable integer track_id so
3205 // that the customers can correlate the results of the ongoing
3206 // ObjectTrackAnnotation of the same track_id over time.
3207 TrackId int64 `json:"trackId,omitempty,string"`
3208 // Version: Feature version.
3209 Version string `json:"version,omitempty"`
3210 // ForceSendFields is a list of field names (e.g. "Confidence") to
3211 // unconditionally include in API requests. By default, fields with empty or
3212 // default values are omitted from API requests. See
3213 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3214 // details.
3215 ForceSendFields []string `json:"-"`
3216 // NullFields is a list of field names (e.g. "Confidence") to include in API
3217 // requests with the JSON null value. By default, fields with empty values are
3218 // omitted from API requests. See
3219 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3220 NullFields []string `json:"-"`
3221 }
3222
3223 func (s GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation) MarshalJSON() ([]byte, error) {
3224 type NoMethod GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation
3225 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3226 }
3227
3228 func (s *GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation) UnmarshalJSON(data []byte) error {
3229 type NoMethod GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation
3230 var s1 struct {
3231 Confidence gensupport.JSONFloat64 `json:"confidence"`
3232 *NoMethod
3233 }
3234 s1.NoMethod = (*NoMethod)(s)
3235 if err := json.Unmarshal(data, &s1); err != nil {
3236 return err
3237 }
3238 s.Confidence = float64(s1.Confidence)
3239 return nil
3240 }
3241
3242 // GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame: Video frame level
3243 // annotations for object detection and tracking. This field stores per frame
3244 // location, time offset, and confidence.
3245 type GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame struct {
3246 // NormalizedBoundingBox: The normalized bounding box location of this object
3247 // track for the frame.
3248 NormalizedBoundingBox *GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
3249 // TimeOffset: The timestamp of the frame in microseconds.
3250 TimeOffset string `json:"timeOffset,omitempty"`
3251 // ForceSendFields is a list of field names (e.g. "NormalizedBoundingBox") to
3252 // unconditionally include in API requests. By default, fields with empty or
3253 // default values are omitted from API requests. See
3254 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3255 // details.
3256 ForceSendFields []string `json:"-"`
3257 // NullFields is a list of field names (e.g. "NormalizedBoundingBox") to
3258 // include in API requests with the JSON null value. By default, fields with
3259 // empty values are omitted from API requests. See
3260 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3261 NullFields []string `json:"-"`
3262 }
3263
3264 func (s GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame) MarshalJSON() ([]byte, error) {
3265 type NoMethod GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame
3266 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3267 }
3268
3269 // GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation: Person
3270 // detection annotation per video.
3271 type GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation struct {
3272 // Tracks: The detected tracks of a person.
3273 Tracks []*GoogleCloudVideointelligenceV1p1beta1Track `json:"tracks,omitempty"`
3274 // Version: Feature version.
3275 Version string `json:"version,omitempty"`
3276 // ForceSendFields is a list of field names (e.g. "Tracks") to unconditionally
3277 // include in API requests. By default, fields with empty or default values are
3278 // omitted from API requests. See
3279 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3280 // details.
3281 ForceSendFields []string `json:"-"`
3282 // NullFields is a list of field names (e.g. "Tracks") to include in API
3283 // requests with the JSON null value. By default, fields with empty values are
3284 // omitted from API requests. See
3285 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3286 NullFields []string `json:"-"`
3287 }
3288
3289 func (s GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation) MarshalJSON() ([]byte, error) {
3290 type NoMethod GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation
3291 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3292 }
3293
3294 // GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative:
3295 // Alternative hypotheses (a.k.a. n-best list).
3296 type GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative struct {
3297 // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A
3298 // higher number indicates an estimated greater likelihood that the recognized
3299 // words are correct. This field is set only for the top alternative. This
3300 // field is not guaranteed to be accurate and users should not rely on it to be
3301 // always provided. The default of 0.0 is a sentinel value indicating
3302 // `confidence` was not set.
3303 Confidence float64 `json:"confidence,omitempty"`
3304 // Transcript: Transcript text representing the words that the user spoke.
3305 Transcript string `json:"transcript,omitempty"`
3306 // Words: Output only. A list of word-specific information for each recognized
3307 // word. Note: When `enable_speaker_diarization` is set to true, you will see
3308 // all the words from the beginning of the audio.
3309 Words []*GoogleCloudVideointelligenceV1p1beta1WordInfo `json:"words,omitempty"`
3310 // ForceSendFields is a list of field names (e.g. "Confidence") to
3311 // unconditionally include in API requests. By default, fields with empty or
3312 // default values are omitted from API requests. See
3313 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3314 // details.
3315 ForceSendFields []string `json:"-"`
3316 // NullFields is a list of field names (e.g. "Confidence") to include in API
3317 // requests with the JSON null value. By default, fields with empty values are
3318 // omitted from API requests. See
3319 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3320 NullFields []string `json:"-"`
3321 }
3322
3323 func (s GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) {
3324 type NoMethod GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
3325 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3326 }
3327
3328 func (s *GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error {
3329 type NoMethod GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
3330 var s1 struct {
3331 Confidence gensupport.JSONFloat64 `json:"confidence"`
3332 *NoMethod
3333 }
3334 s1.NoMethod = (*NoMethod)(s)
3335 if err := json.Unmarshal(data, &s1); err != nil {
3336 return err
3337 }
3338 s.Confidence = float64(s1.Confidence)
3339 return nil
3340 }
3341
3342 // GoogleCloudVideointelligenceV1p1beta1SpeechTranscription: A speech
3343 // recognition result corresponding to a portion of the audio.
3344 type GoogleCloudVideointelligenceV1p1beta1SpeechTranscription struct {
3345 // Alternatives: May contain one or more recognition hypotheses (up to the
3346 // maximum specified in `max_alternatives`). These alternatives are ordered in
3347 // terms of accuracy, with the top (first) alternative being the most probable,
3348 // as ranked by the recognizer.
3349 Alternatives []*GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative `json:"alternatives,omitempty"`
3350 // LanguageCode: Output only. The BCP-47
3351 // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language
3352 // in this result. This language code was detected to have the most likelihood
3353 // of being spoken in the audio.
3354 LanguageCode string `json:"languageCode,omitempty"`
3355 // ForceSendFields is a list of field names (e.g. "Alternatives") to
3356 // unconditionally include in API requests. By default, fields with empty or
3357 // default values are omitted from API requests. See
3358 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3359 // details.
3360 ForceSendFields []string `json:"-"`
3361 // NullFields is a list of field names (e.g. "Alternatives") to include in API
3362 // requests with the JSON null value. By default, fields with empty values are
3363 // omitted from API requests. See
3364 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3365 NullFields []string `json:"-"`
3366 }
3367
3368 func (s GoogleCloudVideointelligenceV1p1beta1SpeechTranscription) MarshalJSON() ([]byte, error) {
3369 type NoMethod GoogleCloudVideointelligenceV1p1beta1SpeechTranscription
3370 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3371 }
3372
3373 // GoogleCloudVideointelligenceV1p1beta1TextAnnotation: Annotations related to
3374 // one detected OCR text snippet. This will contain the corresponding text,
3375 // confidence value, and frame level information for each detection.
3376 type GoogleCloudVideointelligenceV1p1beta1TextAnnotation struct {
3377 // Segments: All video segments where OCR detected text appears.
3378 Segments []*GoogleCloudVideointelligenceV1p1beta1TextSegment `json:"segments,omitempty"`
3379 // Text: The detected text.
3380 Text string `json:"text,omitempty"`
3381 // Version: Feature version.
3382 Version string `json:"version,omitempty"`
3383 // ForceSendFields is a list of field names (e.g. "Segments") to
3384 // unconditionally include in API requests. By default, fields with empty or
3385 // default values are omitted from API requests. See
3386 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3387 // details.
3388 ForceSendFields []string `json:"-"`
3389 // NullFields is a list of field names (e.g. "Segments") to include in API
3390 // requests with the JSON null value. By default, fields with empty values are
3391 // omitted from API requests. See
3392 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3393 NullFields []string `json:"-"`
3394 }
3395
3396 func (s GoogleCloudVideointelligenceV1p1beta1TextAnnotation) MarshalJSON() ([]byte, error) {
3397 type NoMethod GoogleCloudVideointelligenceV1p1beta1TextAnnotation
3398 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3399 }
3400
3401 // GoogleCloudVideointelligenceV1p1beta1TextFrame: Video frame level annotation
3402 // results for text annotation (OCR). Contains information regarding timestamp
3403 // and bounding box locations for the frames containing detected OCR text
3404 // snippets.
3405 type GoogleCloudVideointelligenceV1p1beta1TextFrame struct {
3406 // RotatedBoundingBox: Bounding polygon of the detected text for this frame.
3407 RotatedBoundingBox *GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly `json:"rotatedBoundingBox,omitempty"`
3408 // TimeOffset: Timestamp of this frame.
3409 TimeOffset string `json:"timeOffset,omitempty"`
3410 // ForceSendFields is a list of field names (e.g. "RotatedBoundingBox") to
3411 // unconditionally include in API requests. By default, fields with empty or
3412 // default values are omitted from API requests. See
3413 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3414 // details.
3415 ForceSendFields []string `json:"-"`
3416 // NullFields is a list of field names (e.g. "RotatedBoundingBox") to include
3417 // in API requests with the JSON null value. By default, fields with empty
3418 // values are omitted from API requests. See
3419 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3420 NullFields []string `json:"-"`
3421 }
3422
3423 func (s GoogleCloudVideointelligenceV1p1beta1TextFrame) MarshalJSON() ([]byte, error) {
3424 type NoMethod GoogleCloudVideointelligenceV1p1beta1TextFrame
3425 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3426 }
3427
3428 // GoogleCloudVideointelligenceV1p1beta1TextSegment: Video segment level
3429 // annotation results for text detection.
3430 type GoogleCloudVideointelligenceV1p1beta1TextSegment struct {
3431 // Confidence: Confidence for the track of detected text. It is calculated as
3432 // the highest over all frames where OCR detected text appears.
3433 Confidence float64 `json:"confidence,omitempty"`
3434 // Frames: Information related to the frames where OCR detected text appears.
3435 Frames []*GoogleCloudVideointelligenceV1p1beta1TextFrame `json:"frames,omitempty"`
3436 // Segment: Video segment where a text snippet was detected.
3437 Segment *GoogleCloudVideointelligenceV1p1beta1VideoSegment `json:"segment,omitempty"`
3438 // ForceSendFields is a list of field names (e.g. "Confidence") to
3439 // unconditionally include in API requests. By default, fields with empty or
3440 // default values are omitted from API requests. See
3441 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3442 // details.
3443 ForceSendFields []string `json:"-"`
3444 // NullFields is a list of field names (e.g. "Confidence") to include in API
3445 // requests with the JSON null value. By default, fields with empty values are
3446 // omitted from API requests. See
3447 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3448 NullFields []string `json:"-"`
3449 }
3450
3451 func (s GoogleCloudVideointelligenceV1p1beta1TextSegment) MarshalJSON() ([]byte, error) {
3452 type NoMethod GoogleCloudVideointelligenceV1p1beta1TextSegment
3453 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3454 }
3455
3456 func (s *GoogleCloudVideointelligenceV1p1beta1TextSegment) UnmarshalJSON(data []byte) error {
3457 type NoMethod GoogleCloudVideointelligenceV1p1beta1TextSegment
3458 var s1 struct {
3459 Confidence gensupport.JSONFloat64 `json:"confidence"`
3460 *NoMethod
3461 }
3462 s1.NoMethod = (*NoMethod)(s)
3463 if err := json.Unmarshal(data, &s1); err != nil {
3464 return err
3465 }
3466 s.Confidence = float64(s1.Confidence)
3467 return nil
3468 }
3469
3470 // GoogleCloudVideointelligenceV1p1beta1TimestampedObject: For tracking related
3471 // features. An object at time_offset with attributes, and located with
3472 // normalized_bounding_box.
3473 type GoogleCloudVideointelligenceV1p1beta1TimestampedObject struct {
3474 // Attributes: Optional. The attributes of the object in the bounding box.
3475 Attributes []*GoogleCloudVideointelligenceV1p1beta1DetectedAttribute `json:"attributes,omitempty"`
3476 // Landmarks: Optional. The detected landmarks.
3477 Landmarks []*GoogleCloudVideointelligenceV1p1beta1DetectedLandmark `json:"landmarks,omitempty"`
3478 // NormalizedBoundingBox: Normalized Bounding box in a frame, where the object
3479 // is located.
3480 NormalizedBoundingBox *GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
3481 // TimeOffset: Time-offset, relative to the beginning of the video,
3482 // corresponding to the video frame for this object.
3483 TimeOffset string `json:"timeOffset,omitempty"`
3484 // ForceSendFields is a list of field names (e.g. "Attributes") to
3485 // unconditionally include in API requests. By default, fields with empty or
3486 // default values are omitted from API requests. See
3487 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3488 // details.
3489 ForceSendFields []string `json:"-"`
3490 // NullFields is a list of field names (e.g. "Attributes") to include in API
3491 // requests with the JSON null value. By default, fields with empty values are
3492 // omitted from API requests. See
3493 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3494 NullFields []string `json:"-"`
3495 }
3496
3497 func (s GoogleCloudVideointelligenceV1p1beta1TimestampedObject) MarshalJSON() ([]byte, error) {
3498 type NoMethod GoogleCloudVideointelligenceV1p1beta1TimestampedObject
3499 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3500 }
3501
3502 // GoogleCloudVideointelligenceV1p1beta1Track: A track of an object instance.
3503 type GoogleCloudVideointelligenceV1p1beta1Track struct {
3504 // Attributes: Optional. Attributes in the track level.
3505 Attributes []*GoogleCloudVideointelligenceV1p1beta1DetectedAttribute `json:"attributes,omitempty"`
3506 // Confidence: Optional. The confidence score of the tracked object.
3507 Confidence float64 `json:"confidence,omitempty"`
3508 // Segment: Video segment of a track.
3509 Segment *GoogleCloudVideointelligenceV1p1beta1VideoSegment `json:"segment,omitempty"`
3510 // TimestampedObjects: The object with timestamp and attributes per frame in
3511 // the track.
3512 TimestampedObjects []*GoogleCloudVideointelligenceV1p1beta1TimestampedObject `json:"timestampedObjects,omitempty"`
3513 // ForceSendFields is a list of field names (e.g. "Attributes") to
3514 // unconditionally include in API requests. By default, fields with empty or
3515 // default values are omitted from API requests. See
3516 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3517 // details.
3518 ForceSendFields []string `json:"-"`
3519 // NullFields is a list of field names (e.g. "Attributes") to include in API
3520 // requests with the JSON null value. By default, fields with empty values are
3521 // omitted from API requests. See
3522 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3523 NullFields []string `json:"-"`
3524 }
3525
3526 func (s GoogleCloudVideointelligenceV1p1beta1Track) MarshalJSON() ([]byte, error) {
3527 type NoMethod GoogleCloudVideointelligenceV1p1beta1Track
3528 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3529 }
3530
3531 func (s *GoogleCloudVideointelligenceV1p1beta1Track) UnmarshalJSON(data []byte) error {
3532 type NoMethod GoogleCloudVideointelligenceV1p1beta1Track
3533 var s1 struct {
3534 Confidence gensupport.JSONFloat64 `json:"confidence"`
3535 *NoMethod
3536 }
3537 s1.NoMethod = (*NoMethod)(s)
3538 if err := json.Unmarshal(data, &s1); err != nil {
3539 return err
3540 }
3541 s.Confidence = float64(s1.Confidence)
3542 return nil
3543 }
3544
3545 // GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress: Annotation
3546 // progress for a single video.
3547 type GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress struct {
3548 // ExportStatus: Status of exporting annotation response to user specified
3549 // `output_uri`. Only set if `output_uri` is set in the request.
3550 ExportStatus *GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus `json:"exportStatus,omitempty"`
3551 // Feature: Specifies which feature is being tracked if the request contains
3552 // more than one feature.
3553 //
3554 // Possible values:
3555 // "FEATURE_UNSPECIFIED" - Unspecified.
3556 // "LABEL_DETECTION" - Label detection. Detect objects, such as dog or
3557 // flower.
3558 // "SHOT_CHANGE_DETECTION" - Shot change detection.
3559 // "EXPLICIT_CONTENT_DETECTION" - Explicit content detection.
3560 // "FACE_DETECTION" - Human face detection.
3561 // "SPEECH_TRANSCRIPTION" - Speech transcription.
3562 // "TEXT_DETECTION" - OCR text detection and tracking.
3563 // "OBJECT_TRACKING" - Object detection and tracking.
3564 // "LOGO_RECOGNITION" - Logo detection, tracking, and recognition.
3565 // "PERSON_DETECTION" - Person detection.
3566 Feature string `json:"feature,omitempty"`
3567 // InputUri: Video file location in Cloud Storage
3568 // (https://cloud.google.com/storage/).
3569 InputUri string `json:"inputUri,omitempty"`
3570 // ProgressPercent: Approximate percentage processed thus far. Guaranteed to be
3571 // 100 when fully processed.
3572 ProgressPercent int64 `json:"progressPercent,omitempty"`
3573 // Segment: Specifies which segment is being tracked if the request contains
3574 // more than one segment.
3575 Segment *GoogleCloudVideointelligenceV1p1beta1VideoSegment `json:"segment,omitempty"`
3576 // StartTime: Time when the request was received.
3577 StartTime string `json:"startTime,omitempty"`
3578 // UpdateTime: Time of the most recent update.
3579 UpdateTime string `json:"updateTime,omitempty"`
3580 // ForceSendFields is a list of field names (e.g. "ExportStatus") to
3581 // unconditionally include in API requests. By default, fields with empty or
3582 // default values are omitted from API requests. See
3583 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3584 // details.
3585 ForceSendFields []string `json:"-"`
3586 // NullFields is a list of field names (e.g. "ExportStatus") to include in API
3587 // requests with the JSON null value. By default, fields with empty values are
3588 // omitted from API requests. See
3589 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3590 NullFields []string `json:"-"`
3591 }
3592
3593 func (s GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress) MarshalJSON() ([]byte, error) {
3594 type NoMethod GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress
3595 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3596 }
3597
3598 // GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults: Annotation
3599 // results for a single video.
3600 type GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults struct {
3601 // Error: If set, indicates an error. Note that for a single
3602 // `AnnotateVideoRequest` some videos may succeed and some may fail.
3603 Error *GoogleRpcStatus `json:"error,omitempty"`
3604 // ExplicitAnnotation: Explicit content annotation.
3605 ExplicitAnnotation *GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation `json:"explicitAnnotation,omitempty"`
3606 // FaceAnnotations: Deprecated. Please use `face_detection_annotations`
3607 // instead.
3608 FaceAnnotations []*GoogleCloudVideointelligenceV1p1beta1FaceAnnotation `json:"faceAnnotations,omitempty"`
3609 // FaceDetectionAnnotations: Face detection annotations.
3610 FaceDetectionAnnotations []*GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation `json:"faceDetectionAnnotations,omitempty"`
3611 // FrameLabelAnnotations: Label annotations on frame level. There is exactly
3612 // one element for each unique label.
3613 FrameLabelAnnotations []*GoogleCloudVideointelligenceV1p1beta1LabelAnnotation `json:"frameLabelAnnotations,omitempty"`
3614 // InputUri: Video file location in Cloud Storage
3615 // (https://cloud.google.com/storage/).
3616 InputUri string `json:"inputUri,omitempty"`
3617 // LogoRecognitionAnnotations: Annotations for list of logos detected, tracked
3618 // and recognized in video.
3619 LogoRecognitionAnnotations []*GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation `json:"logoRecognitionAnnotations,omitempty"`
3620 // ObjectAnnotations: Annotations for list of objects detected and tracked in
3621 // video.
3622 ObjectAnnotations []*GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation `json:"objectAnnotations,omitempty"`
3623 // PersonDetectionAnnotations: Person detection annotations.
3624 PersonDetectionAnnotations []*GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation `json:"personDetectionAnnotations,omitempty"`
3625 // Segment: Video segment on which the annotation is run.
3626 Segment *GoogleCloudVideointelligenceV1p1beta1VideoSegment `json:"segment,omitempty"`
3627 // SegmentLabelAnnotations: Topical label annotations on video level or
3628 // user-specified segment level. There is exactly one element for each unique
3629 // label.
3630 SegmentLabelAnnotations []*GoogleCloudVideointelligenceV1p1beta1LabelAnnotation `json:"segmentLabelAnnotations,omitempty"`
3631 // SegmentPresenceLabelAnnotations: Presence label annotations on video level
3632 // or user-specified segment level. There is exactly one element for each
3633 // unique label. Compared to the existing topical `segment_label_annotations`,
3634 // this field presents more fine-grained, segment-level labels detected in
3635 // video content and is made available only when the client sets
3636 // `LabelDetectionConfig.model` to "builtin/latest" in the request.
3637 SegmentPresenceLabelAnnotations []*GoogleCloudVideointelligenceV1p1beta1LabelAnnotation `json:"segmentPresenceLabelAnnotations,omitempty"`
3638 // ShotAnnotations: Shot annotations. Each shot is represented as a video
3639 // segment.
3640 ShotAnnotations []*GoogleCloudVideointelligenceV1p1beta1VideoSegment `json:"shotAnnotations,omitempty"`
3641 // ShotLabelAnnotations: Topical label annotations on shot level. There is
3642 // exactly one element for each unique label.
3643 ShotLabelAnnotations []*GoogleCloudVideointelligenceV1p1beta1LabelAnnotation `json:"shotLabelAnnotations,omitempty"`
3644 // ShotPresenceLabelAnnotations: Presence label annotations on shot level.
3645 // There is exactly one element for each unique label. Compared to the existing
3646 // topical `shot_label_annotations`, this field presents more fine-grained,
3647 // shot-level labels detected in video content and is made available only when
3648 // the client sets `LabelDetectionConfig.model` to "builtin/latest" in the
3649 // request.
3650 ShotPresenceLabelAnnotations []*GoogleCloudVideointelligenceV1p1beta1LabelAnnotation `json:"shotPresenceLabelAnnotations,omitempty"`
3651 // SpeechTranscriptions: Speech transcription.
3652 SpeechTranscriptions []*GoogleCloudVideointelligenceV1p1beta1SpeechTranscription `json:"speechTranscriptions,omitempty"`
3653 // TextAnnotations: OCR text detection and tracking. Annotations for list of
3654 // detected text snippets. Each will have list of frame information associated
3655 // with it.
3656 TextAnnotations []*GoogleCloudVideointelligenceV1p1beta1TextAnnotation `json:"textAnnotations,omitempty"`
3657 // ForceSendFields is a list of field names (e.g. "Error") to unconditionally
3658 // include in API requests. By default, fields with empty or default values are
3659 // omitted from API requests. See
3660 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3661 // details.
3662 ForceSendFields []string `json:"-"`
3663 // NullFields is a list of field names (e.g. "Error") to include in API
3664 // requests with the JSON null value. By default, fields with empty values are
3665 // omitted from API requests. See
3666 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3667 NullFields []string `json:"-"`
3668 }
3669
3670 func (s GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults) MarshalJSON() ([]byte, error) {
3671 type NoMethod GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults
3672 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3673 }
3674
3675 // GoogleCloudVideointelligenceV1p1beta1VideoSegment: Video segment.
3676 type GoogleCloudVideointelligenceV1p1beta1VideoSegment struct {
3677 // EndTimeOffset: Time-offset, relative to the beginning of the video,
3678 // corresponding to the end of the segment (inclusive).
3679 EndTimeOffset string `json:"endTimeOffset,omitempty"`
3680 // StartTimeOffset: Time-offset, relative to the beginning of the video,
3681 // corresponding to the start of the segment (inclusive).
3682 StartTimeOffset string `json:"startTimeOffset,omitempty"`
3683 // ForceSendFields is a list of field names (e.g. "EndTimeOffset") to
3684 // unconditionally include in API requests. By default, fields with empty or
3685 // default values are omitted from API requests. See
3686 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3687 // details.
3688 ForceSendFields []string `json:"-"`
3689 // NullFields is a list of field names (e.g. "EndTimeOffset") to include in API
3690 // requests with the JSON null value. By default, fields with empty values are
3691 // omitted from API requests. See
3692 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3693 NullFields []string `json:"-"`
3694 }
3695
3696 func (s GoogleCloudVideointelligenceV1p1beta1VideoSegment) MarshalJSON() ([]byte, error) {
3697 type NoMethod GoogleCloudVideointelligenceV1p1beta1VideoSegment
3698 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3699 }
3700
3701 // GoogleCloudVideointelligenceV1p1beta1WordInfo: Word-specific information for
3702 // recognized words. Word information is only included in the response when
3703 // certain request parameters are set, such as `enable_word_time_offsets`.
3704 type GoogleCloudVideointelligenceV1p1beta1WordInfo struct {
3705 // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A
3706 // higher number indicates an estimated greater likelihood that the recognized
3707 // words are correct. This field is set only for the top alternative. This
3708 // field is not guaranteed to be accurate and users should not rely on it to be
3709 // always provided. The default of 0.0 is a sentinel value indicating
3710 // `confidence` was not set.
3711 Confidence float64 `json:"confidence,omitempty"`
3712 // EndTime: Time offset relative to the beginning of the audio, and
3713 // corresponding to the end of the spoken word. This field is only set if
3714 // `enable_word_time_offsets=true` and only in the top hypothesis. This is an
3715 // experimental feature and the accuracy of the time offset can vary.
3716 EndTime string `json:"endTime,omitempty"`
3717 // SpeakerLabel: Output only. A distinct string value is assigned for every
3718 // speaker within the audio. This field specifies which one of those speakers
3719 // was detected to have spoken this word.
3720 SpeakerLabel string `json:"speakerLabel,omitempty"`
3721 // SpeakerTag: Output only. A distinct integer value is assigned for every
3722 // speaker within the audio. This field specifies which one of those speakers
3723 // was detected to have spoken this word. Value ranges from 1 up to
3724 // diarization_speaker_count, and is only set if speaker diarization is
3725 // enabled.
3726 SpeakerTag int64 `json:"speakerTag,omitempty"`
3727 // StartTime: Time offset relative to the beginning of the audio, and
3728 // corresponding to the start of the spoken word. This field is only set if
3729 // `enable_word_time_offsets=true` and only in the top hypothesis. This is an
3730 // experimental feature and the accuracy of the time offset can vary.
3731 StartTime string `json:"startTime,omitempty"`
3732 // Word: The word corresponding to this set of information.
3733 Word string `json:"word,omitempty"`
3734 // ForceSendFields is a list of field names (e.g. "Confidence") to
3735 // unconditionally include in API requests. By default, fields with empty or
3736 // default values are omitted from API requests. See
3737 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3738 // details.
3739 ForceSendFields []string `json:"-"`
3740 // NullFields is a list of field names (e.g. "Confidence") to include in API
3741 // requests with the JSON null value. By default, fields with empty values are
3742 // omitted from API requests. See
3743 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3744 NullFields []string `json:"-"`
3745 }
3746
3747 func (s GoogleCloudVideointelligenceV1p1beta1WordInfo) MarshalJSON() ([]byte, error) {
3748 type NoMethod GoogleCloudVideointelligenceV1p1beta1WordInfo
3749 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3750 }
3751
3752 func (s *GoogleCloudVideointelligenceV1p1beta1WordInfo) UnmarshalJSON(data []byte) error {
3753 type NoMethod GoogleCloudVideointelligenceV1p1beta1WordInfo
3754 var s1 struct {
3755 Confidence gensupport.JSONFloat64 `json:"confidence"`
3756 *NoMethod
3757 }
3758 s1.NoMethod = (*NoMethod)(s)
3759 if err := json.Unmarshal(data, &s1); err != nil {
3760 return err
3761 }
3762 s.Confidence = float64(s1.Confidence)
3763 return nil
3764 }
3765
3766 // GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress: Video annotation
3767 // progress. Included in the `metadata` field of the `Operation` returned by
3768 // the `GetOperation` call of the `google::longrunning::Operations` service.
3769 type GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress struct {
3770 // AnnotationProgress: Progress metadata for all videos specified in
3771 // `AnnotateVideoRequest`.
3772 AnnotationProgress []*GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress `json:"annotationProgress,omitempty"`
3773 // ForceSendFields is a list of field names (e.g. "AnnotationProgress") to
3774 // unconditionally include in API requests. By default, fields with empty or
3775 // default values are omitted from API requests. See
3776 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3777 // details.
3778 ForceSendFields []string `json:"-"`
3779 // NullFields is a list of field names (e.g. "AnnotationProgress") to include
3780 // in API requests with the JSON null value. By default, fields with empty
3781 // values are omitted from API requests. See
3782 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3783 NullFields []string `json:"-"`
3784 }
3785
3786 func (s GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress) MarshalJSON() ([]byte, error) {
3787 type NoMethod GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress
3788 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3789 }
3790
3791 // GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest: Video annotation
3792 // request.
3793 type GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest struct {
3794 // Features: Required. Requested video annotation features.
3795 //
3796 // Possible values:
3797 // "FEATURE_UNSPECIFIED" - Unspecified.
3798 // "LABEL_DETECTION" - Label detection. Detect objects, such as dog or
3799 // flower.
3800 // "SHOT_CHANGE_DETECTION" - Shot change detection.
3801 // "EXPLICIT_CONTENT_DETECTION" - Explicit content detection.
3802 // "FACE_DETECTION" - Human face detection.
3803 // "SPEECH_TRANSCRIPTION" - Speech transcription.
3804 // "TEXT_DETECTION" - OCR text detection and tracking.
3805 // "OBJECT_TRACKING" - Object detection and tracking.
3806 // "LOGO_RECOGNITION" - Logo detection, tracking, and recognition.
3807 // "PERSON_DETECTION" - Person detection.
3808 Features []string `json:"features,omitempty"`
3809 // InputContent: The video data bytes. If unset, the input video(s) should be
3810 // specified via the `input_uri`. If set, `input_uri` must be unset.
3811 InputContent string `json:"inputContent,omitempty"`
3812 // InputUri: Input video location. Currently, only Cloud Storage
3813 // (https://cloud.google.com/storage/) URIs are supported. URIs must be
3814 // specified in the following format: `gs://bucket-id/object-id` (other URI
3815 // formats return google.rpc.Code.INVALID_ARGUMENT). For more information, see
3816 // Request URIs (https://cloud.google.com/storage/docs/request-endpoints). To
3817 // identify multiple videos, a video URI may include wildcards in the
3818 // `object-id`. Supported wildcards: '*' to match 0 or more characters; '?' to
3819 // match 1 character. If unset, the input video should be embedded in the
3820 // request as `input_content`. If set, `input_content` must be unset.
3821 InputUri string `json:"inputUri,omitempty"`
3822 // LocationId: Optional. Cloud region where annotation should take place.
3823 // Supported cloud regions are: `us-east1`, `us-west1`, `europe-west1`,
3824 // `asia-east1`. If no region is specified, the region will be determined based
3825 // on video file location.
3826 LocationId string `json:"locationId,omitempty"`
3827 // OutputUri: Optional. Location where the output (in JSON format) should be
3828 // stored. Currently, only Cloud Storage (https://cloud.google.com/storage/)
3829 // URIs are supported. These must be specified in the following format:
3830 // `gs://bucket-id/object-id` (other URI formats return
3831 // google.rpc.Code.INVALID_ARGUMENT). For more information, see Request URIs
3832 // (https://cloud.google.com/storage/docs/request-endpoints).
3833 OutputUri string `json:"outputUri,omitempty"`
3834 // VideoContext: Additional video context and/or feature-specific parameters.
3835 VideoContext *GoogleCloudVideointelligenceV1p2beta1VideoContext `json:"videoContext,omitempty"`
3836 // ForceSendFields is a list of field names (e.g. "Features") to
3837 // unconditionally include in API requests. By default, fields with empty or
3838 // default values are omitted from API requests. See
3839 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3840 // details.
3841 ForceSendFields []string `json:"-"`
3842 // NullFields is a list of field names (e.g. "Features") to include in API
3843 // requests with the JSON null value. By default, fields with empty values are
3844 // omitted from API requests. See
3845 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3846 NullFields []string `json:"-"`
3847 }
3848
3849 func (s GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest) MarshalJSON() ([]byte, error) {
3850 type NoMethod GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest
3851 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3852 }
3853
3854 // GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse: Video annotation
3855 // response. Included in the `response` field of the `Operation` returned by
3856 // the `GetOperation` call of the `google::longrunning::Operations` service.
3857 type GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse struct {
3858 // AnnotationResults: Annotation results for all videos specified in
3859 // `AnnotateVideoRequest`.
3860 AnnotationResults []*GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults `json:"annotationResults,omitempty"`
3861 // ForceSendFields is a list of field names (e.g. "AnnotationResults") to
3862 // unconditionally include in API requests. By default, fields with empty or
3863 // default values are omitted from API requests. See
3864 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3865 // details.
3866 ForceSendFields []string `json:"-"`
3867 // NullFields is a list of field names (e.g. "AnnotationResults") to include in
3868 // API requests with the JSON null value. By default, fields with empty values
3869 // are omitted from API requests. See
3870 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3871 NullFields []string `json:"-"`
3872 }
3873
3874 func (s GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse) MarshalJSON() ([]byte, error) {
3875 type NoMethod GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse
3876 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3877 }
3878
3879 // GoogleCloudVideointelligenceV1p2beta1DetectedAttribute: A generic detected
3880 // attribute represented by name in string format.
3881 type GoogleCloudVideointelligenceV1p2beta1DetectedAttribute struct {
3882 // Confidence: Detected attribute confidence. Range [0, 1].
3883 Confidence float64 `json:"confidence,omitempty"`
3884 // Name: The name of the attribute, for example, glasses, dark_glasses,
3885 // mouth_open. A full list of supported type names will be provided in the
3886 // document.
3887 Name string `json:"name,omitempty"`
3888 // Value: Text value of the detection result. For example, the value for
3889 // "HairColor" can be "black", "blonde", etc.
3890 Value string `json:"value,omitempty"`
3891 // ForceSendFields is a list of field names (e.g. "Confidence") to
3892 // unconditionally include in API requests. By default, fields with empty or
3893 // default values are omitted from API requests. See
3894 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3895 // details.
3896 ForceSendFields []string `json:"-"`
3897 // NullFields is a list of field names (e.g. "Confidence") to include in API
3898 // requests with the JSON null value. By default, fields with empty values are
3899 // omitted from API requests. See
3900 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3901 NullFields []string `json:"-"`
3902 }
3903
3904 func (s GoogleCloudVideointelligenceV1p2beta1DetectedAttribute) MarshalJSON() ([]byte, error) {
3905 type NoMethod GoogleCloudVideointelligenceV1p2beta1DetectedAttribute
3906 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3907 }
3908
3909 func (s *GoogleCloudVideointelligenceV1p2beta1DetectedAttribute) UnmarshalJSON(data []byte) error {
3910 type NoMethod GoogleCloudVideointelligenceV1p2beta1DetectedAttribute
3911 var s1 struct {
3912 Confidence gensupport.JSONFloat64 `json:"confidence"`
3913 *NoMethod
3914 }
3915 s1.NoMethod = (*NoMethod)(s)
3916 if err := json.Unmarshal(data, &s1); err != nil {
3917 return err
3918 }
3919 s.Confidence = float64(s1.Confidence)
3920 return nil
3921 }
3922
3923 // GoogleCloudVideointelligenceV1p2beta1DetectedLandmark: A generic detected
3924 // landmark represented by name in string format and a 2D location.
3925 type GoogleCloudVideointelligenceV1p2beta1DetectedLandmark struct {
3926 // Confidence: The confidence score of the detected landmark. Range [0, 1].
3927 Confidence float64 `json:"confidence,omitempty"`
3928 // Name: The name of this landmark, for example, left_hand, right_shoulder.
3929 Name string `json:"name,omitempty"`
3930 // Point: The 2D point of the detected landmark using the normalized image
3931 // coordinate system. The normalized coordinates have the range from 0 to 1.
3932 Point *GoogleCloudVideointelligenceV1p2beta1NormalizedVertex `json:"point,omitempty"`
3933 // ForceSendFields is a list of field names (e.g. "Confidence") to
3934 // unconditionally include in API requests. By default, fields with empty or
3935 // default values are omitted from API requests. See
3936 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3937 // details.
3938 ForceSendFields []string `json:"-"`
3939 // NullFields is a list of field names (e.g. "Confidence") to include in API
3940 // requests with the JSON null value. By default, fields with empty values are
3941 // omitted from API requests. See
3942 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3943 NullFields []string `json:"-"`
3944 }
3945
3946 func (s GoogleCloudVideointelligenceV1p2beta1DetectedLandmark) MarshalJSON() ([]byte, error) {
3947 type NoMethod GoogleCloudVideointelligenceV1p2beta1DetectedLandmark
3948 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3949 }
3950
3951 func (s *GoogleCloudVideointelligenceV1p2beta1DetectedLandmark) UnmarshalJSON(data []byte) error {
3952 type NoMethod GoogleCloudVideointelligenceV1p2beta1DetectedLandmark
3953 var s1 struct {
3954 Confidence gensupport.JSONFloat64 `json:"confidence"`
3955 *NoMethod
3956 }
3957 s1.NoMethod = (*NoMethod)(s)
3958 if err := json.Unmarshal(data, &s1); err != nil {
3959 return err
3960 }
3961 s.Confidence = float64(s1.Confidence)
3962 return nil
3963 }
3964
3965 // GoogleCloudVideointelligenceV1p2beta1Entity: Detected entity from video
3966 // analysis.
3967 type GoogleCloudVideointelligenceV1p2beta1Entity struct {
3968 // Description: Textual description, e.g., `Fixed-gear bicycle`.
3969 Description string `json:"description,omitempty"`
3970 // EntityId: Opaque entity ID. Some IDs may be available in Google Knowledge
3971 // Graph Search API (https://developers.google.com/knowledge-graph/).
3972 EntityId string `json:"entityId,omitempty"`
3973 // LanguageCode: Language code for `description` in BCP-47 format.
3974 LanguageCode string `json:"languageCode,omitempty"`
3975 // ForceSendFields is a list of field names (e.g. "Description") to
3976 // unconditionally include in API requests. By default, fields with empty or
3977 // default values are omitted from API requests. See
3978 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3979 // details.
3980 ForceSendFields []string `json:"-"`
3981 // NullFields is a list of field names (e.g. "Description") to include in API
3982 // requests with the JSON null value. By default, fields with empty values are
3983 // omitted from API requests. See
3984 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3985 NullFields []string `json:"-"`
3986 }
3987
3988 func (s GoogleCloudVideointelligenceV1p2beta1Entity) MarshalJSON() ([]byte, error) {
3989 type NoMethod GoogleCloudVideointelligenceV1p2beta1Entity
3990 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3991 }
3992
3993 // GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation: Explicit
3994 // content annotation (based on per-frame visual signals only). If no explicit
3995 // content has been detected in a frame, no annotations are present for that
3996 // frame.
3997 type GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation struct {
3998 // Frames: All video frames where explicit content was detected.
3999 Frames []*GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame `json:"frames,omitempty"`
4000 // Version: Feature version.
4001 Version string `json:"version,omitempty"`
4002 // ForceSendFields is a list of field names (e.g. "Frames") to unconditionally
4003 // include in API requests. By default, fields with empty or default values are
4004 // omitted from API requests. See
4005 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4006 // details.
4007 ForceSendFields []string `json:"-"`
4008 // NullFields is a list of field names (e.g. "Frames") to include in API
4009 // requests with the JSON null value. By default, fields with empty values are
4010 // omitted from API requests. See
4011 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4012 NullFields []string `json:"-"`
4013 }
4014
4015 func (s GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation) MarshalJSON() ([]byte, error) {
4016 type NoMethod GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation
4017 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4018 }
4019
4020 // GoogleCloudVideointelligenceV1p2beta1ExplicitContentDetectionConfig: Config
4021 // for EXPLICIT_CONTENT_DETECTION.
4022 type GoogleCloudVideointelligenceV1p2beta1ExplicitContentDetectionConfig struct {
4023 // Model: Model to use for explicit content detection. Supported values:
4024 // "builtin/stable" (the default if unset) and "builtin/latest".
4025 Model string `json:"model,omitempty"`
4026 // ForceSendFields is a list of field names (e.g. "Model") to unconditionally
4027 // include in API requests. By default, fields with empty or default values are
4028 // omitted from API requests. See
4029 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4030 // details.
4031 ForceSendFields []string `json:"-"`
4032 // NullFields is a list of field names (e.g. "Model") to include in API
4033 // requests with the JSON null value. By default, fields with empty values are
4034 // omitted from API requests. See
4035 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4036 NullFields []string `json:"-"`
4037 }
4038
4039 func (s GoogleCloudVideointelligenceV1p2beta1ExplicitContentDetectionConfig) MarshalJSON() ([]byte, error) {
4040 type NoMethod GoogleCloudVideointelligenceV1p2beta1ExplicitContentDetectionConfig
4041 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4042 }
4043
4044 // GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame: Video frame level
4045 // annotation results for explicit content.
4046 type GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame struct {
4047 // PornographyLikelihood: Likelihood of the pornography content..
4048 //
4049 // Possible values:
4050 // "LIKELIHOOD_UNSPECIFIED" - Unspecified likelihood.
4051 // "VERY_UNLIKELY" - Very unlikely.
4052 // "UNLIKELY" - Unlikely.
4053 // "POSSIBLE" - Possible.
4054 // "LIKELY" - Likely.
4055 // "VERY_LIKELY" - Very likely.
4056 PornographyLikelihood string `json:"pornographyLikelihood,omitempty"`
4057 // TimeOffset: Time-offset, relative to the beginning of the video,
4058 // corresponding to the video frame for this location.
4059 TimeOffset string `json:"timeOffset,omitempty"`
4060 // ForceSendFields is a list of field names (e.g. "PornographyLikelihood") to
4061 // unconditionally include in API requests. By default, fields with empty or
4062 // default values are omitted from API requests. See
4063 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4064 // details.
4065 ForceSendFields []string `json:"-"`
4066 // NullFields is a list of field names (e.g. "PornographyLikelihood") to
4067 // include in API requests with the JSON null value. By default, fields with
4068 // empty values are omitted from API requests. See
4069 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4070 NullFields []string `json:"-"`
4071 }
4072
4073 func (s GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame) MarshalJSON() ([]byte, error) {
4074 type NoMethod GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame
4075 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4076 }
4077
4078 // GoogleCloudVideointelligenceV1p2beta1ExportToOutputUriStatus: Status of
4079 // exporting annotation response to user specified `output_uri`.
4080 type GoogleCloudVideointelligenceV1p2beta1ExportToOutputUriStatus struct {
4081 // State: Output only. State of the `output_uri` export.
4082 //
4083 // Possible values:
4084 // "STATE_UNSPECIFIED" - Default value.
4085 // "SUCCEEDED" - Export succeeded.
4086 // "FAILED" - Export failed.
4087 State string `json:"state,omitempty"`
4088 // Status: Output only. Only set if state is FAILED.
4089 Status *GoogleRpcStatus `json:"status,omitempty"`
4090 // ForceSendFields is a list of field names (e.g. "State") to unconditionally
4091 // include in API requests. By default, fields with empty or default values are
4092 // omitted from API requests. See
4093 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4094 // details.
4095 ForceSendFields []string `json:"-"`
4096 // NullFields is a list of field names (e.g. "State") to include in API
4097 // requests with the JSON null value. By default, fields with empty values are
4098 // omitted from API requests. See
4099 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4100 NullFields []string `json:"-"`
4101 }
4102
4103 func (s GoogleCloudVideointelligenceV1p2beta1ExportToOutputUriStatus) MarshalJSON() ([]byte, error) {
4104 type NoMethod GoogleCloudVideointelligenceV1p2beta1ExportToOutputUriStatus
4105 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4106 }
4107
4108 // GoogleCloudVideointelligenceV1p2beta1FaceAnnotation: Deprecated. No effect.
4109 type GoogleCloudVideointelligenceV1p2beta1FaceAnnotation struct {
4110 // Frames: All video frames where a face was detected.
4111 Frames []*GoogleCloudVideointelligenceV1p2beta1FaceFrame `json:"frames,omitempty"`
4112 // Segments: All video segments where a face was detected.
4113 Segments []*GoogleCloudVideointelligenceV1p2beta1FaceSegment `json:"segments,omitempty"`
4114 // Thumbnail: Thumbnail of a representative face view (in JPEG format).
4115 Thumbnail string `json:"thumbnail,omitempty"`
4116 // ForceSendFields is a list of field names (e.g. "Frames") to unconditionally
4117 // include in API requests. By default, fields with empty or default values are
4118 // omitted from API requests. See
4119 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4120 // details.
4121 ForceSendFields []string `json:"-"`
4122 // NullFields is a list of field names (e.g. "Frames") to include in API
4123 // requests with the JSON null value. By default, fields with empty values are
4124 // omitted from API requests. See
4125 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4126 NullFields []string `json:"-"`
4127 }
4128
4129 func (s GoogleCloudVideointelligenceV1p2beta1FaceAnnotation) MarshalJSON() ([]byte, error) {
4130 type NoMethod GoogleCloudVideointelligenceV1p2beta1FaceAnnotation
4131 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4132 }
4133
4134 // GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation: Face detection
4135 // annotation.
4136 type GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation struct {
4137 // Thumbnail: The thumbnail of a person's face.
4138 Thumbnail string `json:"thumbnail,omitempty"`
4139 // Tracks: The face tracks with attributes.
4140 Tracks []*GoogleCloudVideointelligenceV1p2beta1Track `json:"tracks,omitempty"`
4141 // Version: Feature version.
4142 Version string `json:"version,omitempty"`
4143 // ForceSendFields is a list of field names (e.g. "Thumbnail") to
4144 // unconditionally include in API requests. By default, fields with empty or
4145 // default values are omitted from API requests. See
4146 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4147 // details.
4148 ForceSendFields []string `json:"-"`
4149 // NullFields is a list of field names (e.g. "Thumbnail") to include in API
4150 // requests with the JSON null value. By default, fields with empty values are
4151 // omitted from API requests. See
4152 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4153 NullFields []string `json:"-"`
4154 }
4155
4156 func (s GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation) MarshalJSON() ([]byte, error) {
4157 type NoMethod GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation
4158 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4159 }
4160
4161 // GoogleCloudVideointelligenceV1p2beta1FaceDetectionConfig: Config for
4162 // FACE_DETECTION.
4163 type GoogleCloudVideointelligenceV1p2beta1FaceDetectionConfig struct {
4164 // IncludeAttributes: Whether to enable face attributes detection, such as
4165 // glasses, dark_glasses, mouth_open etc. Ignored if 'include_bounding_boxes'
4166 // is set to false.
4167 IncludeAttributes bool `json:"includeAttributes,omitempty"`
4168 // IncludeBoundingBoxes: Whether bounding boxes are included in the face
4169 // annotation output.
4170 IncludeBoundingBoxes bool `json:"includeBoundingBoxes,omitempty"`
4171 // Model: Model to use for face detection. Supported values: "builtin/stable"
4172 // (the default if unset) and "builtin/latest".
4173 Model string `json:"model,omitempty"`
4174 // ForceSendFields is a list of field names (e.g. "IncludeAttributes") to
4175 // unconditionally include in API requests. By default, fields with empty or
4176 // default values are omitted from API requests. See
4177 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4178 // details.
4179 ForceSendFields []string `json:"-"`
4180 // NullFields is a list of field names (e.g. "IncludeAttributes") to include in
4181 // API requests with the JSON null value. By default, fields with empty values
4182 // are omitted from API requests. See
4183 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4184 NullFields []string `json:"-"`
4185 }
4186
4187 func (s GoogleCloudVideointelligenceV1p2beta1FaceDetectionConfig) MarshalJSON() ([]byte, error) {
4188 type NoMethod GoogleCloudVideointelligenceV1p2beta1FaceDetectionConfig
4189 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4190 }
4191
4192 // GoogleCloudVideointelligenceV1p2beta1FaceFrame: Deprecated. No effect.
4193 type GoogleCloudVideointelligenceV1p2beta1FaceFrame struct {
4194 // NormalizedBoundingBoxes: Normalized Bounding boxes in a frame. There can be
4195 // more than one boxes if the same face is detected in multiple locations
4196 // within the current frame.
4197 NormalizedBoundingBoxes []*GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox `json:"normalizedBoundingBoxes,omitempty"`
4198 // TimeOffset: Time-offset, relative to the beginning of the video,
4199 // corresponding to the video frame for this location.
4200 TimeOffset string `json:"timeOffset,omitempty"`
4201 // ForceSendFields is a list of field names (e.g. "NormalizedBoundingBoxes") to
4202 // unconditionally include in API requests. By default, fields with empty or
4203 // default values are omitted from API requests. See
4204 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4205 // details.
4206 ForceSendFields []string `json:"-"`
4207 // NullFields is a list of field names (e.g. "NormalizedBoundingBoxes") to
4208 // include in API requests with the JSON null value. By default, fields with
4209 // empty values are omitted from API requests. See
4210 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4211 NullFields []string `json:"-"`
4212 }
4213
4214 func (s GoogleCloudVideointelligenceV1p2beta1FaceFrame) MarshalJSON() ([]byte, error) {
4215 type NoMethod GoogleCloudVideointelligenceV1p2beta1FaceFrame
4216 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4217 }
4218
4219 // GoogleCloudVideointelligenceV1p2beta1FaceSegment: Video segment level
4220 // annotation results for face detection.
4221 type GoogleCloudVideointelligenceV1p2beta1FaceSegment struct {
4222 // Segment: Video segment where a face was detected.
4223 Segment *GoogleCloudVideointelligenceV1p2beta1VideoSegment `json:"segment,omitempty"`
4224 // ForceSendFields is a list of field names (e.g. "Segment") to unconditionally
4225 // include in API requests. By default, fields with empty or default values are
4226 // omitted from API requests. See
4227 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4228 // details.
4229 ForceSendFields []string `json:"-"`
4230 // NullFields is a list of field names (e.g. "Segment") to include in API
4231 // requests with the JSON null value. By default, fields with empty values are
4232 // omitted from API requests. See
4233 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4234 NullFields []string `json:"-"`
4235 }
4236
4237 func (s GoogleCloudVideointelligenceV1p2beta1FaceSegment) MarshalJSON() ([]byte, error) {
4238 type NoMethod GoogleCloudVideointelligenceV1p2beta1FaceSegment
4239 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4240 }
4241
4242 // GoogleCloudVideointelligenceV1p2beta1LabelAnnotation: Label annotation.
4243 type GoogleCloudVideointelligenceV1p2beta1LabelAnnotation struct {
4244 // CategoryEntities: Common categories for the detected entity. For example,
4245 // when the label is `Terrier`, the category is likely `dog`. And in some cases
4246 // there might be more than one categories e.g., `Terrier` could also be a
4247 // `pet`.
4248 CategoryEntities []*GoogleCloudVideointelligenceV1p2beta1Entity `json:"categoryEntities,omitempty"`
4249 // Entity: Detected entity.
4250 Entity *GoogleCloudVideointelligenceV1p2beta1Entity `json:"entity,omitempty"`
4251 // Frames: All video frames where a label was detected.
4252 Frames []*GoogleCloudVideointelligenceV1p2beta1LabelFrame `json:"frames,omitempty"`
4253 // Segments: All video segments where a label was detected.
4254 Segments []*GoogleCloudVideointelligenceV1p2beta1LabelSegment `json:"segments,omitempty"`
4255 // Version: Feature version.
4256 Version string `json:"version,omitempty"`
4257 // ForceSendFields is a list of field names (e.g. "CategoryEntities") to
4258 // unconditionally include in API requests. By default, fields with empty or
4259 // default values are omitted from API requests. See
4260 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4261 // details.
4262 ForceSendFields []string `json:"-"`
4263 // NullFields is a list of field names (e.g. "CategoryEntities") to include in
4264 // API requests with the JSON null value. By default, fields with empty values
4265 // are omitted from API requests. See
4266 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4267 NullFields []string `json:"-"`
4268 }
4269
4270 func (s GoogleCloudVideointelligenceV1p2beta1LabelAnnotation) MarshalJSON() ([]byte, error) {
4271 type NoMethod GoogleCloudVideointelligenceV1p2beta1LabelAnnotation
4272 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4273 }
4274
4275 // GoogleCloudVideointelligenceV1p2beta1LabelDetectionConfig: Config for
4276 // LABEL_DETECTION.
4277 type GoogleCloudVideointelligenceV1p2beta1LabelDetectionConfig struct {
4278 // FrameConfidenceThreshold: The confidence threshold we perform filtering on
4279 // the labels from frame-level detection. If not set, it is set to 0.4 by
4280 // default. The valid range for this threshold is [0.1, 0.9]. Any value set
4281 // outside of this range will be clipped. Note: For best results, follow the
4282 // default threshold. We will update the default threshold everytime when we
4283 // release a new model.
4284 FrameConfidenceThreshold float64 `json:"frameConfidenceThreshold,omitempty"`
4285 // LabelDetectionMode: What labels should be detected with LABEL_DETECTION, in
4286 // addition to video-level labels or segment-level labels. If unspecified,
4287 // defaults to `SHOT_MODE`.
4288 //
4289 // Possible values:
4290 // "LABEL_DETECTION_MODE_UNSPECIFIED" - Unspecified.
4291 // "SHOT_MODE" - Detect shot-level labels.
4292 // "FRAME_MODE" - Detect frame-level labels.
4293 // "SHOT_AND_FRAME_MODE" - Detect both shot-level and frame-level labels.
4294 LabelDetectionMode string `json:"labelDetectionMode,omitempty"`
4295 // Model: Model to use for label detection. Supported values: "builtin/stable"
4296 // (the default if unset) and "builtin/latest".
4297 Model string `json:"model,omitempty"`
4298 // StationaryCamera: Whether the video has been shot from a stationary (i.e.,
4299 // non-moving) camera. When set to true, might improve detection accuracy for
4300 // moving objects. Should be used with `SHOT_AND_FRAME_MODE` enabled.
4301 StationaryCamera bool `json:"stationaryCamera,omitempty"`
4302 // VideoConfidenceThreshold: The confidence threshold we perform filtering on
4303 // the labels from video-level and shot-level detections. If not set, it's set
4304 // to 0.3 by default. The valid range for this threshold is [0.1, 0.9]. Any
4305 // value set outside of this range will be clipped. Note: For best results,
4306 // follow the default threshold. We will update the default threshold everytime
4307 // when we release a new model.
4308 VideoConfidenceThreshold float64 `json:"videoConfidenceThreshold,omitempty"`
4309 // ForceSendFields is a list of field names (e.g. "FrameConfidenceThreshold")
4310 // to unconditionally include in API requests. By default, fields with empty or
4311 // default values are omitted from API requests. See
4312 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4313 // details.
4314 ForceSendFields []string `json:"-"`
4315 // NullFields is a list of field names (e.g. "FrameConfidenceThreshold") to
4316 // include in API requests with the JSON null value. By default, fields with
4317 // empty values are omitted from API requests. See
4318 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4319 NullFields []string `json:"-"`
4320 }
4321
4322 func (s GoogleCloudVideointelligenceV1p2beta1LabelDetectionConfig) MarshalJSON() ([]byte, error) {
4323 type NoMethod GoogleCloudVideointelligenceV1p2beta1LabelDetectionConfig
4324 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4325 }
4326
4327 func (s *GoogleCloudVideointelligenceV1p2beta1LabelDetectionConfig) UnmarshalJSON(data []byte) error {
4328 type NoMethod GoogleCloudVideointelligenceV1p2beta1LabelDetectionConfig
4329 var s1 struct {
4330 FrameConfidenceThreshold gensupport.JSONFloat64 `json:"frameConfidenceThreshold"`
4331 VideoConfidenceThreshold gensupport.JSONFloat64 `json:"videoConfidenceThreshold"`
4332 *NoMethod
4333 }
4334 s1.NoMethod = (*NoMethod)(s)
4335 if err := json.Unmarshal(data, &s1); err != nil {
4336 return err
4337 }
4338 s.FrameConfidenceThreshold = float64(s1.FrameConfidenceThreshold)
4339 s.VideoConfidenceThreshold = float64(s1.VideoConfidenceThreshold)
4340 return nil
4341 }
4342
4343 // GoogleCloudVideointelligenceV1p2beta1LabelFrame: Video frame level
4344 // annotation results for label detection.
4345 type GoogleCloudVideointelligenceV1p2beta1LabelFrame struct {
4346 // Confidence: Confidence that the label is accurate. Range: [0, 1].
4347 Confidence float64 `json:"confidence,omitempty"`
4348 // TimeOffset: Time-offset, relative to the beginning of the video,
4349 // corresponding to the video frame for this location.
4350 TimeOffset string `json:"timeOffset,omitempty"`
4351 // ForceSendFields is a list of field names (e.g. "Confidence") to
4352 // unconditionally include in API requests. By default, fields with empty or
4353 // default values are omitted from API requests. See
4354 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4355 // details.
4356 ForceSendFields []string `json:"-"`
4357 // NullFields is a list of field names (e.g. "Confidence") to include in API
4358 // requests with the JSON null value. By default, fields with empty values are
4359 // omitted from API requests. See
4360 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4361 NullFields []string `json:"-"`
4362 }
4363
4364 func (s GoogleCloudVideointelligenceV1p2beta1LabelFrame) MarshalJSON() ([]byte, error) {
4365 type NoMethod GoogleCloudVideointelligenceV1p2beta1LabelFrame
4366 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4367 }
4368
4369 func (s *GoogleCloudVideointelligenceV1p2beta1LabelFrame) UnmarshalJSON(data []byte) error {
4370 type NoMethod GoogleCloudVideointelligenceV1p2beta1LabelFrame
4371 var s1 struct {
4372 Confidence gensupport.JSONFloat64 `json:"confidence"`
4373 *NoMethod
4374 }
4375 s1.NoMethod = (*NoMethod)(s)
4376 if err := json.Unmarshal(data, &s1); err != nil {
4377 return err
4378 }
4379 s.Confidence = float64(s1.Confidence)
4380 return nil
4381 }
4382
4383 // GoogleCloudVideointelligenceV1p2beta1LabelSegment: Video segment level
4384 // annotation results for label detection.
4385 type GoogleCloudVideointelligenceV1p2beta1LabelSegment struct {
4386 // Confidence: Confidence that the label is accurate. Range: [0, 1].
4387 Confidence float64 `json:"confidence,omitempty"`
4388 // Segment: Video segment where a label was detected.
4389 Segment *GoogleCloudVideointelligenceV1p2beta1VideoSegment `json:"segment,omitempty"`
4390 // ForceSendFields is a list of field names (e.g. "Confidence") to
4391 // unconditionally include in API requests. By default, fields with empty or
4392 // default values are omitted from API requests. See
4393 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4394 // details.
4395 ForceSendFields []string `json:"-"`
4396 // NullFields is a list of field names (e.g. "Confidence") to include in API
4397 // requests with the JSON null value. By default, fields with empty values are
4398 // omitted from API requests. See
4399 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4400 NullFields []string `json:"-"`
4401 }
4402
4403 func (s GoogleCloudVideointelligenceV1p2beta1LabelSegment) MarshalJSON() ([]byte, error) {
4404 type NoMethod GoogleCloudVideointelligenceV1p2beta1LabelSegment
4405 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4406 }
4407
4408 func (s *GoogleCloudVideointelligenceV1p2beta1LabelSegment) UnmarshalJSON(data []byte) error {
4409 type NoMethod GoogleCloudVideointelligenceV1p2beta1LabelSegment
4410 var s1 struct {
4411 Confidence gensupport.JSONFloat64 `json:"confidence"`
4412 *NoMethod
4413 }
4414 s1.NoMethod = (*NoMethod)(s)
4415 if err := json.Unmarshal(data, &s1); err != nil {
4416 return err
4417 }
4418 s.Confidence = float64(s1.Confidence)
4419 return nil
4420 }
4421
4422 // GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation: Annotation
4423 // corresponding to one detected, tracked and recognized logo class.
4424 type GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation struct {
4425 // Entity: Entity category information to specify the logo class that all the
4426 // logo tracks within this LogoRecognitionAnnotation are recognized as.
4427 Entity *GoogleCloudVideointelligenceV1p2beta1Entity `json:"entity,omitempty"`
4428 // Segments: All video segments where the recognized logo appears. There might
4429 // be multiple instances of the same logo class appearing in one VideoSegment.
4430 Segments []*GoogleCloudVideointelligenceV1p2beta1VideoSegment `json:"segments,omitempty"`
4431 // Tracks: All logo tracks where the recognized logo appears. Each track
4432 // corresponds to one logo instance appearing in consecutive frames.
4433 Tracks []*GoogleCloudVideointelligenceV1p2beta1Track `json:"tracks,omitempty"`
4434 // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
4435 // include in API requests. By default, fields with empty or default values are
4436 // omitted from API requests. See
4437 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4438 // details.
4439 ForceSendFields []string `json:"-"`
4440 // NullFields is a list of field names (e.g. "Entity") to include in API
4441 // requests with the JSON null value. By default, fields with empty values are
4442 // omitted from API requests. See
4443 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4444 NullFields []string `json:"-"`
4445 }
4446
4447 func (s GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation) MarshalJSON() ([]byte, error) {
4448 type NoMethod GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation
4449 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4450 }
4451
4452 // GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox: Normalized
4453 // bounding box. The normalized vertex coordinates are relative to the original
4454 // image. Range: [0, 1].
4455 type GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox struct {
4456 // Bottom: Bottom Y coordinate.
4457 Bottom float64 `json:"bottom,omitempty"`
4458 // Left: Left X coordinate.
4459 Left float64 `json:"left,omitempty"`
4460 // Right: Right X coordinate.
4461 Right float64 `json:"right,omitempty"`
4462 // Top: Top Y coordinate.
4463 Top float64 `json:"top,omitempty"`
4464 // ForceSendFields is a list of field names (e.g. "Bottom") to unconditionally
4465 // include in API requests. By default, fields with empty or default values are
4466 // omitted from API requests. See
4467 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4468 // details.
4469 ForceSendFields []string `json:"-"`
4470 // NullFields is a list of field names (e.g. "Bottom") to include in API
4471 // requests with the JSON null value. By default, fields with empty values are
4472 // omitted from API requests. See
4473 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4474 NullFields []string `json:"-"`
4475 }
4476
4477 func (s GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox) MarshalJSON() ([]byte, error) {
4478 type NoMethod GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox
4479 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4480 }
4481
4482 func (s *GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox) UnmarshalJSON(data []byte) error {
4483 type NoMethod GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox
4484 var s1 struct {
4485 Bottom gensupport.JSONFloat64 `json:"bottom"`
4486 Left gensupport.JSONFloat64 `json:"left"`
4487 Right gensupport.JSONFloat64 `json:"right"`
4488 Top gensupport.JSONFloat64 `json:"top"`
4489 *NoMethod
4490 }
4491 s1.NoMethod = (*NoMethod)(s)
4492 if err := json.Unmarshal(data, &s1); err != nil {
4493 return err
4494 }
4495 s.Bottom = float64(s1.Bottom)
4496 s.Left = float64(s1.Left)
4497 s.Right = float64(s1.Right)
4498 s.Top = float64(s1.Top)
4499 return nil
4500 }
4501
4502 // GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly: Normalized
4503 // bounding polygon for text (that might not be aligned with axis). Contains
4504 // list of the corner points in clockwise order starting from top-left corner.
4505 // For example, for a rectangular bounding box: When the text is horizontal it
4506 // might look like: 0----1 | | 3----2 When it's clockwise rotated 180 degrees
4507 // around the top-left corner it becomes: 2----3 | | 1----0 and the vertex
4508 // order will still be (0, 1, 2, 3). Note that values can be less than 0, or
4509 // greater than 1 due to trigonometric calculations for location of the box.
4510 type GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly struct {
4511 // Vertices: Normalized vertices of the bounding polygon.
4512 Vertices []*GoogleCloudVideointelligenceV1p2beta1NormalizedVertex `json:"vertices,omitempty"`
4513 // ForceSendFields is a list of field names (e.g. "Vertices") to
4514 // unconditionally include in API requests. By default, fields with empty or
4515 // default values are omitted from API requests. See
4516 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4517 // details.
4518 ForceSendFields []string `json:"-"`
4519 // NullFields is a list of field names (e.g. "Vertices") to include in API
4520 // requests with the JSON null value. By default, fields with empty values are
4521 // omitted from API requests. See
4522 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4523 NullFields []string `json:"-"`
4524 }
4525
4526 func (s GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly) MarshalJSON() ([]byte, error) {
4527 type NoMethod GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly
4528 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4529 }
4530
4531 // GoogleCloudVideointelligenceV1p2beta1NormalizedVertex: A vertex represents a
4532 // 2D point in the image. NOTE: the normalized vertex coordinates are relative
4533 // to the original image and range from 0 to 1.
4534 type GoogleCloudVideointelligenceV1p2beta1NormalizedVertex struct {
4535 // X: X coordinate.
4536 X float64 `json:"x,omitempty"`
4537 // Y: Y coordinate.
4538 Y float64 `json:"y,omitempty"`
4539 // ForceSendFields is a list of field names (e.g. "X") to unconditionally
4540 // include in API requests. By default, fields with empty or default values are
4541 // omitted from API requests. See
4542 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4543 // details.
4544 ForceSendFields []string `json:"-"`
4545 // NullFields is a list of field names (e.g. "X") to include in API requests
4546 // with the JSON null value. By default, fields with empty values are omitted
4547 // from API requests. See
4548 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4549 NullFields []string `json:"-"`
4550 }
4551
4552 func (s GoogleCloudVideointelligenceV1p2beta1NormalizedVertex) MarshalJSON() ([]byte, error) {
4553 type NoMethod GoogleCloudVideointelligenceV1p2beta1NormalizedVertex
4554 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4555 }
4556
4557 func (s *GoogleCloudVideointelligenceV1p2beta1NormalizedVertex) UnmarshalJSON(data []byte) error {
4558 type NoMethod GoogleCloudVideointelligenceV1p2beta1NormalizedVertex
4559 var s1 struct {
4560 X gensupport.JSONFloat64 `json:"x"`
4561 Y gensupport.JSONFloat64 `json:"y"`
4562 *NoMethod
4563 }
4564 s1.NoMethod = (*NoMethod)(s)
4565 if err := json.Unmarshal(data, &s1); err != nil {
4566 return err
4567 }
4568 s.X = float64(s1.X)
4569 s.Y = float64(s1.Y)
4570 return nil
4571 }
4572
4573 // GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation: Annotations
4574 // corresponding to one tracked object.
4575 type GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation struct {
4576 // Confidence: Object category's labeling confidence of this track.
4577 Confidence float64 `json:"confidence,omitempty"`
4578 // Entity: Entity to specify the object category that this track is labeled as.
4579 Entity *GoogleCloudVideointelligenceV1p2beta1Entity `json:"entity,omitempty"`
4580 // Frames: Information corresponding to all frames where this object track
4581 // appears. Non-streaming batch mode: it may be one or multiple
4582 // ObjectTrackingFrame messages in frames. Streaming mode: it can only be one
4583 // ObjectTrackingFrame message in frames.
4584 Frames []*GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame `json:"frames,omitempty"`
4585 // Segment: Non-streaming batch mode ONLY. Each object track corresponds to one
4586 // video segment where it appears.
4587 Segment *GoogleCloudVideointelligenceV1p2beta1VideoSegment `json:"segment,omitempty"`
4588 // TrackId: Streaming mode ONLY. In streaming mode, we do not know the end time
4589 // of a tracked object before it is completed. Hence, there is no VideoSegment
4590 // info returned. Instead, we provide a unique identifiable integer track_id so
4591 // that the customers can correlate the results of the ongoing
4592 // ObjectTrackAnnotation of the same track_id over time.
4593 TrackId int64 `json:"trackId,omitempty,string"`
4594 // Version: Feature version.
4595 Version string `json:"version,omitempty"`
4596 // ForceSendFields is a list of field names (e.g. "Confidence") to
4597 // unconditionally include in API requests. By default, fields with empty or
4598 // default values are omitted from API requests. See
4599 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4600 // details.
4601 ForceSendFields []string `json:"-"`
4602 // NullFields is a list of field names (e.g. "Confidence") to include in API
4603 // requests with the JSON null value. By default, fields with empty values are
4604 // omitted from API requests. See
4605 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4606 NullFields []string `json:"-"`
4607 }
4608
4609 func (s GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation) MarshalJSON() ([]byte, error) {
4610 type NoMethod GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
4611 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4612 }
4613
4614 func (s *GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation) UnmarshalJSON(data []byte) error {
4615 type NoMethod GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
4616 var s1 struct {
4617 Confidence gensupport.JSONFloat64 `json:"confidence"`
4618 *NoMethod
4619 }
4620 s1.NoMethod = (*NoMethod)(s)
4621 if err := json.Unmarshal(data, &s1); err != nil {
4622 return err
4623 }
4624 s.Confidence = float64(s1.Confidence)
4625 return nil
4626 }
4627
4628 // GoogleCloudVideointelligenceV1p2beta1ObjectTrackingConfig: Config for
4629 // OBJECT_TRACKING.
4630 type GoogleCloudVideointelligenceV1p2beta1ObjectTrackingConfig struct {
4631 // Model: Model to use for object tracking. Supported values: "builtin/stable"
4632 // (the default if unset) and "builtin/latest".
4633 Model string `json:"model,omitempty"`
4634 // ForceSendFields is a list of field names (e.g. "Model") to unconditionally
4635 // include in API requests. By default, fields with empty or default values are
4636 // omitted from API requests. See
4637 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4638 // details.
4639 ForceSendFields []string `json:"-"`
4640 // NullFields is a list of field names (e.g. "Model") to include in API
4641 // requests with the JSON null value. By default, fields with empty values are
4642 // omitted from API requests. See
4643 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4644 NullFields []string `json:"-"`
4645 }
4646
4647 func (s GoogleCloudVideointelligenceV1p2beta1ObjectTrackingConfig) MarshalJSON() ([]byte, error) {
4648 type NoMethod GoogleCloudVideointelligenceV1p2beta1ObjectTrackingConfig
4649 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4650 }
4651
4652 // GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame: Video frame level
4653 // annotations for object detection and tracking. This field stores per frame
4654 // location, time offset, and confidence.
4655 type GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame struct {
4656 // NormalizedBoundingBox: The normalized bounding box location of this object
4657 // track for the frame.
4658 NormalizedBoundingBox *GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
4659 // TimeOffset: The timestamp of the frame in microseconds.
4660 TimeOffset string `json:"timeOffset,omitempty"`
4661 // ForceSendFields is a list of field names (e.g. "NormalizedBoundingBox") to
4662 // unconditionally include in API requests. By default, fields with empty or
4663 // default values are omitted from API requests. See
4664 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4665 // details.
4666 ForceSendFields []string `json:"-"`
4667 // NullFields is a list of field names (e.g. "NormalizedBoundingBox") to
4668 // include in API requests with the JSON null value. By default, fields with
4669 // empty values are omitted from API requests. See
4670 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4671 NullFields []string `json:"-"`
4672 }
4673
4674 func (s GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame) MarshalJSON() ([]byte, error) {
4675 type NoMethod GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame
4676 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4677 }
4678
4679 // GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation: Person
4680 // detection annotation per video.
4681 type GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation struct {
4682 // Tracks: The detected tracks of a person.
4683 Tracks []*GoogleCloudVideointelligenceV1p2beta1Track `json:"tracks,omitempty"`
4684 // Version: Feature version.
4685 Version string `json:"version,omitempty"`
4686 // ForceSendFields is a list of field names (e.g. "Tracks") to unconditionally
4687 // include in API requests. By default, fields with empty or default values are
4688 // omitted from API requests. See
4689 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4690 // details.
4691 ForceSendFields []string `json:"-"`
4692 // NullFields is a list of field names (e.g. "Tracks") to include in API
4693 // requests with the JSON null value. By default, fields with empty values are
4694 // omitted from API requests. See
4695 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4696 NullFields []string `json:"-"`
4697 }
4698
4699 func (s GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation) MarshalJSON() ([]byte, error) {
4700 type NoMethod GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation
4701 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4702 }
4703
4704 // GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig: Config for
4705 // PERSON_DETECTION.
4706 type GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig struct {
4707 // IncludeAttributes: Whether to enable person attributes detection, such as
4708 // cloth color (black, blue, etc), type (coat, dress, etc), pattern (plain,
4709 // floral, etc), hair, etc. Ignored if 'include_bounding_boxes' is set to
4710 // false.
4711 IncludeAttributes bool `json:"includeAttributes,omitempty"`
4712 // IncludeBoundingBoxes: Whether bounding boxes are included in the person
4713 // detection annotation output.
4714 IncludeBoundingBoxes bool `json:"includeBoundingBoxes,omitempty"`
4715 // IncludePoseLandmarks: Whether to enable pose landmarks detection. Ignored if
4716 // 'include_bounding_boxes' is set to false.
4717 IncludePoseLandmarks bool `json:"includePoseLandmarks,omitempty"`
4718 // ForceSendFields is a list of field names (e.g. "IncludeAttributes") to
4719 // unconditionally include in API requests. By default, fields with empty or
4720 // default values are omitted from API requests. See
4721 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4722 // details.
4723 ForceSendFields []string `json:"-"`
4724 // NullFields is a list of field names (e.g. "IncludeAttributes") to include in
4725 // API requests with the JSON null value. By default, fields with empty values
4726 // are omitted from API requests. See
4727 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4728 NullFields []string `json:"-"`
4729 }
4730
4731 func (s GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig) MarshalJSON() ([]byte, error) {
4732 type NoMethod GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig
4733 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4734 }
4735
4736 // GoogleCloudVideointelligenceV1p2beta1ShotChangeDetectionConfig: Config for
4737 // SHOT_CHANGE_DETECTION.
4738 type GoogleCloudVideointelligenceV1p2beta1ShotChangeDetectionConfig struct {
4739 // Model: Model to use for shot change detection. Supported values:
4740 // "builtin/stable" (the default if unset), "builtin/latest", and
4741 // "builtin/legacy".
4742 Model string `json:"model,omitempty"`
4743 // ForceSendFields is a list of field names (e.g. "Model") to unconditionally
4744 // include in API requests. By default, fields with empty or default values are
4745 // omitted from API requests. See
4746 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4747 // details.
4748 ForceSendFields []string `json:"-"`
4749 // NullFields is a list of field names (e.g. "Model") to include in API
4750 // requests with the JSON null value. By default, fields with empty values are
4751 // omitted from API requests. See
4752 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4753 NullFields []string `json:"-"`
4754 }
4755
4756 func (s GoogleCloudVideointelligenceV1p2beta1ShotChangeDetectionConfig) MarshalJSON() ([]byte, error) {
4757 type NoMethod GoogleCloudVideointelligenceV1p2beta1ShotChangeDetectionConfig
4758 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4759 }
4760
4761 // GoogleCloudVideointelligenceV1p2beta1SpeechContext: Provides "hints" to the
4762 // speech recognizer to favor specific words and phrases in the results.
4763 type GoogleCloudVideointelligenceV1p2beta1SpeechContext struct {
4764 // Phrases: Optional. A list of strings containing words and phrases "hints" so
4765 // that the speech recognition is more likely to recognize them. This can be
4766 // used to improve the accuracy for specific words and phrases, for example, if
4767 // specific commands are typically spoken by the user. This can also be used to
4768 // add additional words to the vocabulary of the recognizer. See usage limits
4769 // (https://cloud.google.com/speech/limits#content).
4770 Phrases []string `json:"phrases,omitempty"`
4771 // ForceSendFields is a list of field names (e.g. "Phrases") to unconditionally
4772 // include in API requests. By default, fields with empty or default values are
4773 // omitted from API requests. See
4774 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4775 // details.
4776 ForceSendFields []string `json:"-"`
4777 // NullFields is a list of field names (e.g. "Phrases") to include in API
4778 // requests with the JSON null value. By default, fields with empty values are
4779 // omitted from API requests. See
4780 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4781 NullFields []string `json:"-"`
4782 }
4783
4784 func (s GoogleCloudVideointelligenceV1p2beta1SpeechContext) MarshalJSON() ([]byte, error) {
4785 type NoMethod GoogleCloudVideointelligenceV1p2beta1SpeechContext
4786 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4787 }
4788
4789 // GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative:
4790 // Alternative hypotheses (a.k.a. n-best list).
4791 type GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative struct {
4792 // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A
4793 // higher number indicates an estimated greater likelihood that the recognized
4794 // words are correct. This field is set only for the top alternative. This
4795 // field is not guaranteed to be accurate and users should not rely on it to be
4796 // always provided. The default of 0.0 is a sentinel value indicating
4797 // `confidence` was not set.
4798 Confidence float64 `json:"confidence,omitempty"`
4799 // Transcript: Transcript text representing the words that the user spoke.
4800 Transcript string `json:"transcript,omitempty"`
4801 // Words: Output only. A list of word-specific information for each recognized
4802 // word. Note: When `enable_speaker_diarization` is set to true, you will see
4803 // all the words from the beginning of the audio.
4804 Words []*GoogleCloudVideointelligenceV1p2beta1WordInfo `json:"words,omitempty"`
4805 // ForceSendFields is a list of field names (e.g. "Confidence") to
4806 // unconditionally include in API requests. By default, fields with empty or
4807 // default values are omitted from API requests. See
4808 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4809 // details.
4810 ForceSendFields []string `json:"-"`
4811 // NullFields is a list of field names (e.g. "Confidence") to include in API
4812 // requests with the JSON null value. By default, fields with empty values are
4813 // omitted from API requests. See
4814 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4815 NullFields []string `json:"-"`
4816 }
4817
4818 func (s GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) {
4819 type NoMethod GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative
4820 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4821 }
4822
4823 func (s *GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error {
4824 type NoMethod GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative
4825 var s1 struct {
4826 Confidence gensupport.JSONFloat64 `json:"confidence"`
4827 *NoMethod
4828 }
4829 s1.NoMethod = (*NoMethod)(s)
4830 if err := json.Unmarshal(data, &s1); err != nil {
4831 return err
4832 }
4833 s.Confidence = float64(s1.Confidence)
4834 return nil
4835 }
4836
4837 // GoogleCloudVideointelligenceV1p2beta1SpeechTranscription: A speech
4838 // recognition result corresponding to a portion of the audio.
4839 type GoogleCloudVideointelligenceV1p2beta1SpeechTranscription struct {
4840 // Alternatives: May contain one or more recognition hypotheses (up to the
4841 // maximum specified in `max_alternatives`). These alternatives are ordered in
4842 // terms of accuracy, with the top (first) alternative being the most probable,
4843 // as ranked by the recognizer.
4844 Alternatives []*GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative `json:"alternatives,omitempty"`
4845 // LanguageCode: Output only. The BCP-47
4846 // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language
4847 // in this result. This language code was detected to have the most likelihood
4848 // of being spoken in the audio.
4849 LanguageCode string `json:"languageCode,omitempty"`
4850 // ForceSendFields is a list of field names (e.g. "Alternatives") to
4851 // unconditionally include in API requests. By default, fields with empty or
4852 // default values are omitted from API requests. See
4853 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4854 // details.
4855 ForceSendFields []string `json:"-"`
4856 // NullFields is a list of field names (e.g. "Alternatives") to include in API
4857 // requests with the JSON null value. By default, fields with empty values are
4858 // omitted from API requests. See
4859 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4860 NullFields []string `json:"-"`
4861 }
4862
4863 func (s GoogleCloudVideointelligenceV1p2beta1SpeechTranscription) MarshalJSON() ([]byte, error) {
4864 type NoMethod GoogleCloudVideointelligenceV1p2beta1SpeechTranscription
4865 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4866 }
4867
4868 // GoogleCloudVideointelligenceV1p2beta1SpeechTranscriptionConfig: Config for
4869 // SPEECH_TRANSCRIPTION.
4870 type GoogleCloudVideointelligenceV1p2beta1SpeechTranscriptionConfig struct {
4871 // AudioOutputUriPrefix: Optional. Legacy field. This field must be a Cloud
4872 // Storage URI prefix. (e.g., `gs://bucket/path/`).
4873 AudioOutputUriPrefix string `json:"audioOutputUriPrefix,omitempty"`
4874 // AudioTracks: Optional. For file formats, such as MXF or MKV, supporting
4875 // multiple audio tracks, specify up to two tracks. Default: track 0.
4876 AudioTracks []int64 `json:"audioTracks,omitempty"`
4877 // DiarizationSpeakerCount: Optional. If set, specifies the estimated number of
4878 // speakers in the conversation. If not set, defaults to '2'. Ignored unless
4879 // enable_speaker_diarization is set to true.
4880 DiarizationSpeakerCount int64 `json:"diarizationSpeakerCount,omitempty"`
4881 // EnableAutomaticPunctuation: Optional. If 'true', adds punctuation to
4882 // recognition result hypotheses. This feature is only available in select
4883 // languages. Setting this for requests in other languages has no effect at
4884 // all. The default 'false' value does not add punctuation to result
4885 // hypotheses. NOTE: "This is currently offered as an experimental service,
4886 // complimentary to all users. In the future this may be exclusively available
4887 // as a premium feature."
4888 EnableAutomaticPunctuation bool `json:"enableAutomaticPunctuation,omitempty"`
4889 // EnableSpeakerDiarization: Optional. If 'true', enables speaker detection for
4890 // each recognized word in the top alternative of the recognition result using
4891 // a speaker_tag provided in the WordInfo. Note: When this is true, we send all
4892 // the words from the beginning of the audio for the top alternative in every
4893 // consecutive response. This is done in order to improve our speaker tags as
4894 // our models learn to identify the speakers in the conversation over time.
4895 EnableSpeakerDiarization bool `json:"enableSpeakerDiarization,omitempty"`
4896 // EnableWordConfidence: Optional. If `true`, the top result includes a list of
4897 // words and the confidence for those words. If `false`, no word-level
4898 // confidence information is returned. The default is `false`.
4899 EnableWordConfidence bool `json:"enableWordConfidence,omitempty"`
4900 // FilterProfanity: Optional. If set to `true`, the server will attempt to
4901 // filter out profanities, replacing all but the initial character in each
4902 // filtered word with asterisks, e.g. "f***". If set to `false` or omitted,
4903 // profanities won't be filtered out.
4904 FilterProfanity bool `json:"filterProfanity,omitempty"`
4905 // LanguageCode: Required. *Required* The language of the supplied audio as a
4906 // BCP-47 (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
4907 // "en-US". See Language Support
4908 // (https://cloud.google.com/speech/docs/languages) for a list of the currently
4909 // supported language codes.
4910 LanguageCode string `json:"languageCode,omitempty"`
4911 // MaxAlternatives: Optional. Maximum number of recognition hypotheses to be
4912 // returned. Specifically, the maximum number of `SpeechRecognitionAlternative`
4913 // messages within each `SpeechTranscription`. The server may return fewer than
4914 // `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
4915 // return a maximum of one. If omitted, will return a maximum of one.
4916 MaxAlternatives int64 `json:"maxAlternatives,omitempty"`
4917 // SpeechContexts: Optional. A means to provide context to assist the speech
4918 // recognition.
4919 SpeechContexts []*GoogleCloudVideointelligenceV1p2beta1SpeechContext `json:"speechContexts,omitempty"`
4920 // ForceSendFields is a list of field names (e.g. "AudioOutputUriPrefix") to
4921 // unconditionally include in API requests. By default, fields with empty or
4922 // default values are omitted from API requests. See
4923 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4924 // details.
4925 ForceSendFields []string `json:"-"`
4926 // NullFields is a list of field names (e.g. "AudioOutputUriPrefix") to include
4927 // in API requests with the JSON null value. By default, fields with empty
4928 // values are omitted from API requests. See
4929 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4930 NullFields []string `json:"-"`
4931 }
4932
4933 func (s GoogleCloudVideointelligenceV1p2beta1SpeechTranscriptionConfig) MarshalJSON() ([]byte, error) {
4934 type NoMethod GoogleCloudVideointelligenceV1p2beta1SpeechTranscriptionConfig
4935 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4936 }
4937
4938 // GoogleCloudVideointelligenceV1p2beta1TextAnnotation: Annotations related to
4939 // one detected OCR text snippet. This will contain the corresponding text,
4940 // confidence value, and frame level information for each detection.
4941 type GoogleCloudVideointelligenceV1p2beta1TextAnnotation struct {
4942 // Segments: All video segments where OCR detected text appears.
4943 Segments []*GoogleCloudVideointelligenceV1p2beta1TextSegment `json:"segments,omitempty"`
4944 // Text: The detected text.
4945 Text string `json:"text,omitempty"`
4946 // Version: Feature version.
4947 Version string `json:"version,omitempty"`
4948 // ForceSendFields is a list of field names (e.g. "Segments") to
4949 // unconditionally include in API requests. By default, fields with empty or
4950 // default values are omitted from API requests. See
4951 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4952 // details.
4953 ForceSendFields []string `json:"-"`
4954 // NullFields is a list of field names (e.g. "Segments") to include in API
4955 // requests with the JSON null value. By default, fields with empty values are
4956 // omitted from API requests. See
4957 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4958 NullFields []string `json:"-"`
4959 }
4960
4961 func (s GoogleCloudVideointelligenceV1p2beta1TextAnnotation) MarshalJSON() ([]byte, error) {
4962 type NoMethod GoogleCloudVideointelligenceV1p2beta1TextAnnotation
4963 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4964 }
4965
4966 // GoogleCloudVideointelligenceV1p2beta1TextDetectionConfig: Config for
4967 // TEXT_DETECTION.
4968 type GoogleCloudVideointelligenceV1p2beta1TextDetectionConfig struct {
4969 // LanguageHints: Language hint can be specified if the language to be detected
4970 // is known a priori. It can increase the accuracy of the detection. Language
4971 // hint must be language code in BCP-47 format. Automatic language detection is
4972 // performed if no hint is provided.
4973 LanguageHints []string `json:"languageHints,omitempty"`
4974 // Model: Model to use for text detection. Supported values: "builtin/stable"
4975 // (the default if unset) and "builtin/latest".
4976 Model string `json:"model,omitempty"`
4977 // ForceSendFields is a list of field names (e.g. "LanguageHints") to
4978 // unconditionally include in API requests. By default, fields with empty or
4979 // default values are omitted from API requests. See
4980 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4981 // details.
4982 ForceSendFields []string `json:"-"`
4983 // NullFields is a list of field names (e.g. "LanguageHints") to include in API
4984 // requests with the JSON null value. By default, fields with empty values are
4985 // omitted from API requests. See
4986 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4987 NullFields []string `json:"-"`
4988 }
4989
4990 func (s GoogleCloudVideointelligenceV1p2beta1TextDetectionConfig) MarshalJSON() ([]byte, error) {
4991 type NoMethod GoogleCloudVideointelligenceV1p2beta1TextDetectionConfig
4992 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4993 }
4994
4995 // GoogleCloudVideointelligenceV1p2beta1TextFrame: Video frame level annotation
4996 // results for text annotation (OCR). Contains information regarding timestamp
4997 // and bounding box locations for the frames containing detected OCR text
4998 // snippets.
4999 type GoogleCloudVideointelligenceV1p2beta1TextFrame struct {
5000 // RotatedBoundingBox: Bounding polygon of the detected text for this frame.
5001 RotatedBoundingBox *GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly `json:"rotatedBoundingBox,omitempty"`
5002 // TimeOffset: Timestamp of this frame.
5003 TimeOffset string `json:"timeOffset,omitempty"`
5004 // ForceSendFields is a list of field names (e.g. "RotatedBoundingBox") to
5005 // unconditionally include in API requests. By default, fields with empty or
5006 // default values are omitted from API requests. See
5007 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5008 // details.
5009 ForceSendFields []string `json:"-"`
5010 // NullFields is a list of field names (e.g. "RotatedBoundingBox") to include
5011 // in API requests with the JSON null value. By default, fields with empty
5012 // values are omitted from API requests. See
5013 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5014 NullFields []string `json:"-"`
5015 }
5016
5017 func (s GoogleCloudVideointelligenceV1p2beta1TextFrame) MarshalJSON() ([]byte, error) {
5018 type NoMethod GoogleCloudVideointelligenceV1p2beta1TextFrame
5019 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5020 }
5021
5022 // GoogleCloudVideointelligenceV1p2beta1TextSegment: Video segment level
5023 // annotation results for text detection.
5024 type GoogleCloudVideointelligenceV1p2beta1TextSegment struct {
5025 // Confidence: Confidence for the track of detected text. It is calculated as
5026 // the highest over all frames where OCR detected text appears.
5027 Confidence float64 `json:"confidence,omitempty"`
5028 // Frames: Information related to the frames where OCR detected text appears.
5029 Frames []*GoogleCloudVideointelligenceV1p2beta1TextFrame `json:"frames,omitempty"`
5030 // Segment: Video segment where a text snippet was detected.
5031 Segment *GoogleCloudVideointelligenceV1p2beta1VideoSegment `json:"segment,omitempty"`
5032 // ForceSendFields is a list of field names (e.g. "Confidence") to
5033 // unconditionally include in API requests. By default, fields with empty or
5034 // default values are omitted from API requests. See
5035 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5036 // details.
5037 ForceSendFields []string `json:"-"`
5038 // NullFields is a list of field names (e.g. "Confidence") to include in API
5039 // requests with the JSON null value. By default, fields with empty values are
5040 // omitted from API requests. See
5041 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5042 NullFields []string `json:"-"`
5043 }
5044
5045 func (s GoogleCloudVideointelligenceV1p2beta1TextSegment) MarshalJSON() ([]byte, error) {
5046 type NoMethod GoogleCloudVideointelligenceV1p2beta1TextSegment
5047 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5048 }
5049
5050 func (s *GoogleCloudVideointelligenceV1p2beta1TextSegment) UnmarshalJSON(data []byte) error {
5051 type NoMethod GoogleCloudVideointelligenceV1p2beta1TextSegment
5052 var s1 struct {
5053 Confidence gensupport.JSONFloat64 `json:"confidence"`
5054 *NoMethod
5055 }
5056 s1.NoMethod = (*NoMethod)(s)
5057 if err := json.Unmarshal(data, &s1); err != nil {
5058 return err
5059 }
5060 s.Confidence = float64(s1.Confidence)
5061 return nil
5062 }
5063
5064 // GoogleCloudVideointelligenceV1p2beta1TimestampedObject: For tracking related
5065 // features. An object at time_offset with attributes, and located with
5066 // normalized_bounding_box.
5067 type GoogleCloudVideointelligenceV1p2beta1TimestampedObject struct {
5068 // Attributes: Optional. The attributes of the object in the bounding box.
5069 Attributes []*GoogleCloudVideointelligenceV1p2beta1DetectedAttribute `json:"attributes,omitempty"`
5070 // Landmarks: Optional. The detected landmarks.
5071 Landmarks []*GoogleCloudVideointelligenceV1p2beta1DetectedLandmark `json:"landmarks,omitempty"`
5072 // NormalizedBoundingBox: Normalized Bounding box in a frame, where the object
5073 // is located.
5074 NormalizedBoundingBox *GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
5075 // TimeOffset: Time-offset, relative to the beginning of the video,
5076 // corresponding to the video frame for this object.
5077 TimeOffset string `json:"timeOffset,omitempty"`
5078 // ForceSendFields is a list of field names (e.g. "Attributes") to
5079 // unconditionally include in API requests. By default, fields with empty or
5080 // default values are omitted from API requests. See
5081 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5082 // details.
5083 ForceSendFields []string `json:"-"`
5084 // NullFields is a list of field names (e.g. "Attributes") to include in API
5085 // requests with the JSON null value. By default, fields with empty values are
5086 // omitted from API requests. See
5087 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5088 NullFields []string `json:"-"`
5089 }
5090
5091 func (s GoogleCloudVideointelligenceV1p2beta1TimestampedObject) MarshalJSON() ([]byte, error) {
5092 type NoMethod GoogleCloudVideointelligenceV1p2beta1TimestampedObject
5093 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5094 }
5095
5096 // GoogleCloudVideointelligenceV1p2beta1Track: A track of an object instance.
5097 type GoogleCloudVideointelligenceV1p2beta1Track struct {
5098 // Attributes: Optional. Attributes in the track level.
5099 Attributes []*GoogleCloudVideointelligenceV1p2beta1DetectedAttribute `json:"attributes,omitempty"`
5100 // Confidence: Optional. The confidence score of the tracked object.
5101 Confidence float64 `json:"confidence,omitempty"`
5102 // Segment: Video segment of a track.
5103 Segment *GoogleCloudVideointelligenceV1p2beta1VideoSegment `json:"segment,omitempty"`
5104 // TimestampedObjects: The object with timestamp and attributes per frame in
5105 // the track.
5106 TimestampedObjects []*GoogleCloudVideointelligenceV1p2beta1TimestampedObject `json:"timestampedObjects,omitempty"`
5107 // ForceSendFields is a list of field names (e.g. "Attributes") to
5108 // unconditionally include in API requests. By default, fields with empty or
5109 // default values are omitted from API requests. See
5110 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5111 // details.
5112 ForceSendFields []string `json:"-"`
5113 // NullFields is a list of field names (e.g. "Attributes") to include in API
5114 // requests with the JSON null value. By default, fields with empty values are
5115 // omitted from API requests. See
5116 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5117 NullFields []string `json:"-"`
5118 }
5119
5120 func (s GoogleCloudVideointelligenceV1p2beta1Track) MarshalJSON() ([]byte, error) {
5121 type NoMethod GoogleCloudVideointelligenceV1p2beta1Track
5122 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5123 }
5124
5125 func (s *GoogleCloudVideointelligenceV1p2beta1Track) UnmarshalJSON(data []byte) error {
5126 type NoMethod GoogleCloudVideointelligenceV1p2beta1Track
5127 var s1 struct {
5128 Confidence gensupport.JSONFloat64 `json:"confidence"`
5129 *NoMethod
5130 }
5131 s1.NoMethod = (*NoMethod)(s)
5132 if err := json.Unmarshal(data, &s1); err != nil {
5133 return err
5134 }
5135 s.Confidence = float64(s1.Confidence)
5136 return nil
5137 }
5138
5139 // GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress: Annotation
5140 // progress for a single video.
5141 type GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress struct {
5142 // ExportStatus: Status of exporting annotation response to user specified
5143 // `output_uri`. Only set if `output_uri` is set in the request.
5144 ExportStatus *GoogleCloudVideointelligenceV1p2beta1ExportToOutputUriStatus `json:"exportStatus,omitempty"`
5145 // Feature: Specifies which feature is being tracked if the request contains
5146 // more than one feature.
5147 //
5148 // Possible values:
5149 // "FEATURE_UNSPECIFIED" - Unspecified.
5150 // "LABEL_DETECTION" - Label detection. Detect objects, such as dog or
5151 // flower.
5152 // "SHOT_CHANGE_DETECTION" - Shot change detection.
5153 // "EXPLICIT_CONTENT_DETECTION" - Explicit content detection.
5154 // "FACE_DETECTION" - Human face detection.
5155 // "SPEECH_TRANSCRIPTION" - Speech transcription.
5156 // "TEXT_DETECTION" - OCR text detection and tracking.
5157 // "OBJECT_TRACKING" - Object detection and tracking.
5158 // "LOGO_RECOGNITION" - Logo detection, tracking, and recognition.
5159 // "PERSON_DETECTION" - Person detection.
5160 Feature string `json:"feature,omitempty"`
5161 // InputUri: Video file location in Cloud Storage
5162 // (https://cloud.google.com/storage/).
5163 InputUri string `json:"inputUri,omitempty"`
5164 // ProgressPercent: Approximate percentage processed thus far. Guaranteed to be
5165 // 100 when fully processed.
5166 ProgressPercent int64 `json:"progressPercent,omitempty"`
5167 // Segment: Specifies which segment is being tracked if the request contains
5168 // more than one segment.
5169 Segment *GoogleCloudVideointelligenceV1p2beta1VideoSegment `json:"segment,omitempty"`
5170 // StartTime: Time when the request was received.
5171 StartTime string `json:"startTime,omitempty"`
5172 // UpdateTime: Time of the most recent update.
5173 UpdateTime string `json:"updateTime,omitempty"`
5174 // ForceSendFields is a list of field names (e.g. "ExportStatus") to
5175 // unconditionally include in API requests. By default, fields with empty or
5176 // default values are omitted from API requests. See
5177 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5178 // details.
5179 ForceSendFields []string `json:"-"`
5180 // NullFields is a list of field names (e.g. "ExportStatus") to include in API
5181 // requests with the JSON null value. By default, fields with empty values are
5182 // omitted from API requests. See
5183 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5184 NullFields []string `json:"-"`
5185 }
5186
5187 func (s GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress) MarshalJSON() ([]byte, error) {
5188 type NoMethod GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress
5189 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5190 }
5191
5192 // GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults: Annotation
5193 // results for a single video.
5194 type GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults struct {
5195 // Error: If set, indicates an error. Note that for a single
5196 // `AnnotateVideoRequest` some videos may succeed and some may fail.
5197 Error *GoogleRpcStatus `json:"error,omitempty"`
5198 // ExplicitAnnotation: Explicit content annotation.
5199 ExplicitAnnotation *GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation `json:"explicitAnnotation,omitempty"`
5200 // FaceAnnotations: Deprecated. Please use `face_detection_annotations`
5201 // instead.
5202 FaceAnnotations []*GoogleCloudVideointelligenceV1p2beta1FaceAnnotation `json:"faceAnnotations,omitempty"`
5203 // FaceDetectionAnnotations: Face detection annotations.
5204 FaceDetectionAnnotations []*GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation `json:"faceDetectionAnnotations,omitempty"`
5205 // FrameLabelAnnotations: Label annotations on frame level. There is exactly
5206 // one element for each unique label.
5207 FrameLabelAnnotations []*GoogleCloudVideointelligenceV1p2beta1LabelAnnotation `json:"frameLabelAnnotations,omitempty"`
5208 // InputUri: Video file location in Cloud Storage
5209 // (https://cloud.google.com/storage/).
5210 InputUri string `json:"inputUri,omitempty"`
5211 // LogoRecognitionAnnotations: Annotations for list of logos detected, tracked
5212 // and recognized in video.
5213 LogoRecognitionAnnotations []*GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation `json:"logoRecognitionAnnotations,omitempty"`
5214 // ObjectAnnotations: Annotations for list of objects detected and tracked in
5215 // video.
5216 ObjectAnnotations []*GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation `json:"objectAnnotations,omitempty"`
5217 // PersonDetectionAnnotations: Person detection annotations.
5218 PersonDetectionAnnotations []*GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation `json:"personDetectionAnnotations,omitempty"`
5219 // Segment: Video segment on which the annotation is run.
5220 Segment *GoogleCloudVideointelligenceV1p2beta1VideoSegment `json:"segment,omitempty"`
5221 // SegmentLabelAnnotations: Topical label annotations on video level or
5222 // user-specified segment level. There is exactly one element for each unique
5223 // label.
5224 SegmentLabelAnnotations []*GoogleCloudVideointelligenceV1p2beta1LabelAnnotation `json:"segmentLabelAnnotations,omitempty"`
5225 // SegmentPresenceLabelAnnotations: Presence label annotations on video level
5226 // or user-specified segment level. There is exactly one element for each
5227 // unique label. Compared to the existing topical `segment_label_annotations`,
5228 // this field presents more fine-grained, segment-level labels detected in
5229 // video content and is made available only when the client sets
5230 // `LabelDetectionConfig.model` to "builtin/latest" in the request.
5231 SegmentPresenceLabelAnnotations []*GoogleCloudVideointelligenceV1p2beta1LabelAnnotation `json:"segmentPresenceLabelAnnotations,omitempty"`
5232 // ShotAnnotations: Shot annotations. Each shot is represented as a video
5233 // segment.
5234 ShotAnnotations []*GoogleCloudVideointelligenceV1p2beta1VideoSegment `json:"shotAnnotations,omitempty"`
5235 // ShotLabelAnnotations: Topical label annotations on shot level. There is
5236 // exactly one element for each unique label.
5237 ShotLabelAnnotations []*GoogleCloudVideointelligenceV1p2beta1LabelAnnotation `json:"shotLabelAnnotations,omitempty"`
5238 // ShotPresenceLabelAnnotations: Presence label annotations on shot level.
5239 // There is exactly one element for each unique label. Compared to the existing
5240 // topical `shot_label_annotations`, this field presents more fine-grained,
5241 // shot-level labels detected in video content and is made available only when
5242 // the client sets `LabelDetectionConfig.model` to "builtin/latest" in the
5243 // request.
5244 ShotPresenceLabelAnnotations []*GoogleCloudVideointelligenceV1p2beta1LabelAnnotation `json:"shotPresenceLabelAnnotations,omitempty"`
5245 // SpeechTranscriptions: Speech transcription.
5246 SpeechTranscriptions []*GoogleCloudVideointelligenceV1p2beta1SpeechTranscription `json:"speechTranscriptions,omitempty"`
5247 // TextAnnotations: OCR text detection and tracking. Annotations for list of
5248 // detected text snippets. Each will have list of frame information associated
5249 // with it.
5250 TextAnnotations []*GoogleCloudVideointelligenceV1p2beta1TextAnnotation `json:"textAnnotations,omitempty"`
5251 // ForceSendFields is a list of field names (e.g. "Error") to unconditionally
5252 // include in API requests. By default, fields with empty or default values are
5253 // omitted from API requests. See
5254 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5255 // details.
5256 ForceSendFields []string `json:"-"`
5257 // NullFields is a list of field names (e.g. "Error") to include in API
5258 // requests with the JSON null value. By default, fields with empty values are
5259 // omitted from API requests. See
5260 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5261 NullFields []string `json:"-"`
5262 }
5263
5264 func (s GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults) MarshalJSON() ([]byte, error) {
5265 type NoMethod GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults
5266 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5267 }
5268
5269 // GoogleCloudVideointelligenceV1p2beta1VideoContext: Video context and/or
5270 // feature-specific parameters.
5271 type GoogleCloudVideointelligenceV1p2beta1VideoContext struct {
5272 // ExplicitContentDetectionConfig: Config for EXPLICIT_CONTENT_DETECTION.
5273 ExplicitContentDetectionConfig *GoogleCloudVideointelligenceV1p2beta1ExplicitContentDetectionConfig `json:"explicitContentDetectionConfig,omitempty"`
5274 // FaceDetectionConfig: Config for FACE_DETECTION.
5275 FaceDetectionConfig *GoogleCloudVideointelligenceV1p2beta1FaceDetectionConfig `json:"faceDetectionConfig,omitempty"`
5276 // LabelDetectionConfig: Config for LABEL_DETECTION.
5277 LabelDetectionConfig *GoogleCloudVideointelligenceV1p2beta1LabelDetectionConfig `json:"labelDetectionConfig,omitempty"`
5278 // ObjectTrackingConfig: Config for OBJECT_TRACKING.
5279 ObjectTrackingConfig *GoogleCloudVideointelligenceV1p2beta1ObjectTrackingConfig `json:"objectTrackingConfig,omitempty"`
5280 // PersonDetectionConfig: Config for PERSON_DETECTION.
5281 PersonDetectionConfig *GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig `json:"personDetectionConfig,omitempty"`
5282 // Segments: Video segments to annotate. The segments may overlap and are not
5283 // required to be contiguous or span the whole video. If unspecified, each
5284 // video is treated as a single segment.
5285 Segments []*GoogleCloudVideointelligenceV1p2beta1VideoSegment `json:"segments,omitempty"`
5286 // ShotChangeDetectionConfig: Config for SHOT_CHANGE_DETECTION.
5287 ShotChangeDetectionConfig *GoogleCloudVideointelligenceV1p2beta1ShotChangeDetectionConfig `json:"shotChangeDetectionConfig,omitempty"`
5288 // SpeechTranscriptionConfig: Config for SPEECH_TRANSCRIPTION.
5289 SpeechTranscriptionConfig *GoogleCloudVideointelligenceV1p2beta1SpeechTranscriptionConfig `json:"speechTranscriptionConfig,omitempty"`
5290 // TextDetectionConfig: Config for TEXT_DETECTION.
5291 TextDetectionConfig *GoogleCloudVideointelligenceV1p2beta1TextDetectionConfig `json:"textDetectionConfig,omitempty"`
5292 // ForceSendFields is a list of field names (e.g.
5293 // "ExplicitContentDetectionConfig") to unconditionally include in API
5294 // requests. By default, fields with empty or default values are omitted from
5295 // API requests. See
5296 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5297 // details.
5298 ForceSendFields []string `json:"-"`
5299 // NullFields is a list of field names (e.g. "ExplicitContentDetectionConfig")
5300 // to include in API requests with the JSON null value. By default, fields with
5301 // empty values are omitted from API requests. See
5302 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5303 NullFields []string `json:"-"`
5304 }
5305
5306 func (s GoogleCloudVideointelligenceV1p2beta1VideoContext) MarshalJSON() ([]byte, error) {
5307 type NoMethod GoogleCloudVideointelligenceV1p2beta1VideoContext
5308 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5309 }
5310
5311 // GoogleCloudVideointelligenceV1p2beta1VideoSegment: Video segment.
5312 type GoogleCloudVideointelligenceV1p2beta1VideoSegment struct {
5313 // EndTimeOffset: Time-offset, relative to the beginning of the video,
5314 // corresponding to the end of the segment (inclusive).
5315 EndTimeOffset string `json:"endTimeOffset,omitempty"`
5316 // StartTimeOffset: Time-offset, relative to the beginning of the video,
5317 // corresponding to the start of the segment (inclusive).
5318 StartTimeOffset string `json:"startTimeOffset,omitempty"`
5319 // ForceSendFields is a list of field names (e.g. "EndTimeOffset") to
5320 // unconditionally include in API requests. By default, fields with empty or
5321 // default values are omitted from API requests. See
5322 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5323 // details.
5324 ForceSendFields []string `json:"-"`
5325 // NullFields is a list of field names (e.g. "EndTimeOffset") to include in API
5326 // requests with the JSON null value. By default, fields with empty values are
5327 // omitted from API requests. See
5328 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5329 NullFields []string `json:"-"`
5330 }
5331
5332 func (s GoogleCloudVideointelligenceV1p2beta1VideoSegment) MarshalJSON() ([]byte, error) {
5333 type NoMethod GoogleCloudVideointelligenceV1p2beta1VideoSegment
5334 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5335 }
5336
5337 // GoogleCloudVideointelligenceV1p2beta1WordInfo: Word-specific information for
5338 // recognized words. Word information is only included in the response when
5339 // certain request parameters are set, such as `enable_word_time_offsets`.
5340 type GoogleCloudVideointelligenceV1p2beta1WordInfo struct {
5341 // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A
5342 // higher number indicates an estimated greater likelihood that the recognized
5343 // words are correct. This field is set only for the top alternative. This
5344 // field is not guaranteed to be accurate and users should not rely on it to be
5345 // always provided. The default of 0.0 is a sentinel value indicating
5346 // `confidence` was not set.
5347 Confidence float64 `json:"confidence,omitempty"`
5348 // EndTime: Time offset relative to the beginning of the audio, and
5349 // corresponding to the end of the spoken word. This field is only set if
5350 // `enable_word_time_offsets=true` and only in the top hypothesis. This is an
5351 // experimental feature and the accuracy of the time offset can vary.
5352 EndTime string `json:"endTime,omitempty"`
5353 // SpeakerLabel: Output only. A distinct string value is assigned for every
5354 // speaker within the audio. This field specifies which one of those speakers
5355 // was detected to have spoken this word.
5356 SpeakerLabel string `json:"speakerLabel,omitempty"`
5357 // SpeakerTag: Output only. A distinct integer value is assigned for every
5358 // speaker within the audio. This field specifies which one of those speakers
5359 // was detected to have spoken this word. Value ranges from 1 up to
5360 // diarization_speaker_count, and is only set if speaker diarization is
5361 // enabled.
5362 SpeakerTag int64 `json:"speakerTag,omitempty"`
5363 // StartTime: Time offset relative to the beginning of the audio, and
5364 // corresponding to the start of the spoken word. This field is only set if
5365 // `enable_word_time_offsets=true` and only in the top hypothesis. This is an
5366 // experimental feature and the accuracy of the time offset can vary.
5367 StartTime string `json:"startTime,omitempty"`
5368 // Word: The word corresponding to this set of information.
5369 Word string `json:"word,omitempty"`
5370 // ForceSendFields is a list of field names (e.g. "Confidence") to
5371 // unconditionally include in API requests. By default, fields with empty or
5372 // default values are omitted from API requests. See
5373 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5374 // details.
5375 ForceSendFields []string `json:"-"`
5376 // NullFields is a list of field names (e.g. "Confidence") to include in API
5377 // requests with the JSON null value. By default, fields with empty values are
5378 // omitted from API requests. See
5379 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5380 NullFields []string `json:"-"`
5381 }
5382
5383 func (s GoogleCloudVideointelligenceV1p2beta1WordInfo) MarshalJSON() ([]byte, error) {
5384 type NoMethod GoogleCloudVideointelligenceV1p2beta1WordInfo
5385 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5386 }
5387
5388 func (s *GoogleCloudVideointelligenceV1p2beta1WordInfo) UnmarshalJSON(data []byte) error {
5389 type NoMethod GoogleCloudVideointelligenceV1p2beta1WordInfo
5390 var s1 struct {
5391 Confidence gensupport.JSONFloat64 `json:"confidence"`
5392 *NoMethod
5393 }
5394 s1.NoMethod = (*NoMethod)(s)
5395 if err := json.Unmarshal(data, &s1); err != nil {
5396 return err
5397 }
5398 s.Confidence = float64(s1.Confidence)
5399 return nil
5400 }
5401
5402 // GoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress: Video annotation
5403 // progress. Included in the `metadata` field of the `Operation` returned by
5404 // the `GetOperation` call of the `google::longrunning::Operations` service.
5405 type GoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress struct {
5406 // AnnotationProgress: Progress metadata for all videos specified in
5407 // `AnnotateVideoRequest`.
5408 AnnotationProgress []*GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress `json:"annotationProgress,omitempty"`
5409 // ForceSendFields is a list of field names (e.g. "AnnotationProgress") to
5410 // unconditionally include in API requests. By default, fields with empty or
5411 // default values are omitted from API requests. See
5412 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5413 // details.
5414 ForceSendFields []string `json:"-"`
5415 // NullFields is a list of field names (e.g. "AnnotationProgress") to include
5416 // in API requests with the JSON null value. By default, fields with empty
5417 // values are omitted from API requests. See
5418 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5419 NullFields []string `json:"-"`
5420 }
5421
5422 func (s GoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress) MarshalJSON() ([]byte, error) {
5423 type NoMethod GoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress
5424 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5425 }
5426
5427 // GoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse: Video annotation
5428 // response. Included in the `response` field of the `Operation` returned by
5429 // the `GetOperation` call of the `google::longrunning::Operations` service.
5430 type GoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse struct {
5431 // AnnotationResults: Annotation results for all videos specified in
5432 // `AnnotateVideoRequest`.
5433 AnnotationResults []*GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults `json:"annotationResults,omitempty"`
5434 // ForceSendFields is a list of field names (e.g. "AnnotationResults") to
5435 // unconditionally include in API requests. By default, fields with empty or
5436 // default values are omitted from API requests. See
5437 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5438 // details.
5439 ForceSendFields []string `json:"-"`
5440 // NullFields is a list of field names (e.g. "AnnotationResults") to include in
5441 // API requests with the JSON null value. By default, fields with empty values
5442 // are omitted from API requests. See
5443 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5444 NullFields []string `json:"-"`
5445 }
5446
5447 func (s GoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse) MarshalJSON() ([]byte, error) {
5448 type NoMethod GoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse
5449 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5450 }
5451
5452 // GoogleCloudVideointelligenceV1p3beta1Celebrity: Celebrity definition.
5453 type GoogleCloudVideointelligenceV1p3beta1Celebrity struct {
5454 // Description: Textual description of additional information about the
5455 // celebrity, if applicable.
5456 Description string `json:"description,omitempty"`
5457 // DisplayName: The celebrity name.
5458 DisplayName string `json:"displayName,omitempty"`
5459 // Name: The resource name of the celebrity. Have the format
5460 // `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery.
5461 // kg-mid is the id in Google knowledge graph, which is unique for the
5462 // celebrity.
5463 Name string `json:"name,omitempty"`
5464 // ForceSendFields is a list of field names (e.g. "Description") to
5465 // unconditionally include in API requests. By default, fields with empty or
5466 // default values are omitted from API requests. See
5467 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5468 // details.
5469 ForceSendFields []string `json:"-"`
5470 // NullFields is a list of field names (e.g. "Description") to include in API
5471 // requests with the JSON null value. By default, fields with empty values are
5472 // omitted from API requests. See
5473 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5474 NullFields []string `json:"-"`
5475 }
5476
5477 func (s GoogleCloudVideointelligenceV1p3beta1Celebrity) MarshalJSON() ([]byte, error) {
5478 type NoMethod GoogleCloudVideointelligenceV1p3beta1Celebrity
5479 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5480 }
5481
5482 // GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation:
5483 // Celebrity recognition annotation per video.
5484 type GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation struct {
5485 // CelebrityTracks: The tracks detected from the input video, including
5486 // recognized celebrities and other detected faces in the video.
5487 CelebrityTracks []*GoogleCloudVideointelligenceV1p3beta1CelebrityTrack `json:"celebrityTracks,omitempty"`
5488 // Version: Feature version.
5489 Version string `json:"version,omitempty"`
5490 // ForceSendFields is a list of field names (e.g. "CelebrityTracks") to
5491 // unconditionally include in API requests. By default, fields with empty or
5492 // default values are omitted from API requests. See
5493 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5494 // details.
5495 ForceSendFields []string `json:"-"`
5496 // NullFields is a list of field names (e.g. "CelebrityTracks") to include in
5497 // API requests with the JSON null value. By default, fields with empty values
5498 // are omitted from API requests. See
5499 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5500 NullFields []string `json:"-"`
5501 }
5502
5503 func (s GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation) MarshalJSON() ([]byte, error) {
5504 type NoMethod GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation
5505 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5506 }
5507
5508 // GoogleCloudVideointelligenceV1p3beta1CelebrityTrack: The annotation result
5509 // of a celebrity face track. RecognizedCelebrity field could be empty if the
5510 // face track does not have any matched celebrities.
5511 type GoogleCloudVideointelligenceV1p3beta1CelebrityTrack struct {
5512 // Celebrities: Top N match of the celebrities for the face in this track.
5513 Celebrities []*GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity `json:"celebrities,omitempty"`
5514 // FaceTrack: A track of a person's face.
5515 FaceTrack *GoogleCloudVideointelligenceV1p3beta1Track `json:"faceTrack,omitempty"`
5516 // ForceSendFields is a list of field names (e.g. "Celebrities") to
5517 // unconditionally include in API requests. By default, fields with empty or
5518 // default values are omitted from API requests. See
5519 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5520 // details.
5521 ForceSendFields []string `json:"-"`
5522 // NullFields is a list of field names (e.g. "Celebrities") to include in API
5523 // requests with the JSON null value. By default, fields with empty values are
5524 // omitted from API requests. See
5525 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5526 NullFields []string `json:"-"`
5527 }
5528
5529 func (s GoogleCloudVideointelligenceV1p3beta1CelebrityTrack) MarshalJSON() ([]byte, error) {
5530 type NoMethod GoogleCloudVideointelligenceV1p3beta1CelebrityTrack
5531 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5532 }
5533
5534 // GoogleCloudVideointelligenceV1p3beta1DetectedAttribute: A generic detected
5535 // attribute represented by name in string format.
5536 type GoogleCloudVideointelligenceV1p3beta1DetectedAttribute struct {
5537 // Confidence: Detected attribute confidence. Range [0, 1].
5538 Confidence float64 `json:"confidence,omitempty"`
5539 // Name: The name of the attribute, for example, glasses, dark_glasses,
5540 // mouth_open. A full list of supported type names will be provided in the
5541 // document.
5542 Name string `json:"name,omitempty"`
5543 // Value: Text value of the detection result. For example, the value for
5544 // "HairColor" can be "black", "blonde", etc.
5545 Value string `json:"value,omitempty"`
5546 // ForceSendFields is a list of field names (e.g. "Confidence") to
5547 // unconditionally include in API requests. By default, fields with empty or
5548 // default values are omitted from API requests. See
5549 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5550 // details.
5551 ForceSendFields []string `json:"-"`
5552 // NullFields is a list of field names (e.g. "Confidence") to include in API
5553 // requests with the JSON null value. By default, fields with empty values are
5554 // omitted from API requests. See
5555 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5556 NullFields []string `json:"-"`
5557 }
5558
5559 func (s GoogleCloudVideointelligenceV1p3beta1DetectedAttribute) MarshalJSON() ([]byte, error) {
5560 type NoMethod GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
5561 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5562 }
5563
5564 func (s *GoogleCloudVideointelligenceV1p3beta1DetectedAttribute) UnmarshalJSON(data []byte) error {
5565 type NoMethod GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
5566 var s1 struct {
5567 Confidence gensupport.JSONFloat64 `json:"confidence"`
5568 *NoMethod
5569 }
5570 s1.NoMethod = (*NoMethod)(s)
5571 if err := json.Unmarshal(data, &s1); err != nil {
5572 return err
5573 }
5574 s.Confidence = float64(s1.Confidence)
5575 return nil
5576 }
5577
5578 // GoogleCloudVideointelligenceV1p3beta1DetectedLandmark: A generic detected
5579 // landmark represented by name in string format and a 2D location.
5580 type GoogleCloudVideointelligenceV1p3beta1DetectedLandmark struct {
5581 // Confidence: The confidence score of the detected landmark. Range [0, 1].
5582 Confidence float64 `json:"confidence,omitempty"`
5583 // Name: The name of this landmark, for example, left_hand, right_shoulder.
5584 Name string `json:"name,omitempty"`
5585 // Point: The 2D point of the detected landmark using the normalized image
5586 // coordinate system. The normalized coordinates have the range from 0 to 1.
5587 Point *GoogleCloudVideointelligenceV1p3beta1NormalizedVertex `json:"point,omitempty"`
5588 // ForceSendFields is a list of field names (e.g. "Confidence") to
5589 // unconditionally include in API requests. By default, fields with empty or
5590 // default values are omitted from API requests. See
5591 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5592 // details.
5593 ForceSendFields []string `json:"-"`
5594 // NullFields is a list of field names (e.g. "Confidence") to include in API
5595 // requests with the JSON null value. By default, fields with empty values are
5596 // omitted from API requests. See
5597 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5598 NullFields []string `json:"-"`
5599 }
5600
5601 func (s GoogleCloudVideointelligenceV1p3beta1DetectedLandmark) MarshalJSON() ([]byte, error) {
5602 type NoMethod GoogleCloudVideointelligenceV1p3beta1DetectedLandmark
5603 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5604 }
5605
5606 func (s *GoogleCloudVideointelligenceV1p3beta1DetectedLandmark) UnmarshalJSON(data []byte) error {
5607 type NoMethod GoogleCloudVideointelligenceV1p3beta1DetectedLandmark
5608 var s1 struct {
5609 Confidence gensupport.JSONFloat64 `json:"confidence"`
5610 *NoMethod
5611 }
5612 s1.NoMethod = (*NoMethod)(s)
5613 if err := json.Unmarshal(data, &s1); err != nil {
5614 return err
5615 }
5616 s.Confidence = float64(s1.Confidence)
5617 return nil
5618 }
5619
5620 // GoogleCloudVideointelligenceV1p3beta1Entity: Detected entity from video
5621 // analysis.
5622 type GoogleCloudVideointelligenceV1p3beta1Entity struct {
5623 // Description: Textual description, e.g., `Fixed-gear bicycle`.
5624 Description string `json:"description,omitempty"`
5625 // EntityId: Opaque entity ID. Some IDs may be available in Google Knowledge
5626 // Graph Search API (https://developers.google.com/knowledge-graph/).
5627 EntityId string `json:"entityId,omitempty"`
5628 // LanguageCode: Language code for `description` in BCP-47 format.
5629 LanguageCode string `json:"languageCode,omitempty"`
5630 // ForceSendFields is a list of field names (e.g. "Description") to
5631 // unconditionally include in API requests. By default, fields with empty or
5632 // default values are omitted from API requests. See
5633 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5634 // details.
5635 ForceSendFields []string `json:"-"`
5636 // NullFields is a list of field names (e.g. "Description") to include in API
5637 // requests with the JSON null value. By default, fields with empty values are
5638 // omitted from API requests. See
5639 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5640 NullFields []string `json:"-"`
5641 }
5642
5643 func (s GoogleCloudVideointelligenceV1p3beta1Entity) MarshalJSON() ([]byte, error) {
5644 type NoMethod GoogleCloudVideointelligenceV1p3beta1Entity
5645 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5646 }
5647
5648 // GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation: Explicit
5649 // content annotation (based on per-frame visual signals only). If no explicit
5650 // content has been detected in a frame, no annotations are present for that
5651 // frame.
5652 type GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation struct {
5653 // Frames: All video frames where explicit content was detected.
5654 Frames []*GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame `json:"frames,omitempty"`
5655 // Version: Feature version.
5656 Version string `json:"version,omitempty"`
5657 // ForceSendFields is a list of field names (e.g. "Frames") to unconditionally
5658 // include in API requests. By default, fields with empty or default values are
5659 // omitted from API requests. See
5660 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5661 // details.
5662 ForceSendFields []string `json:"-"`
5663 // NullFields is a list of field names (e.g. "Frames") to include in API
5664 // requests with the JSON null value. By default, fields with empty values are
5665 // omitted from API requests. See
5666 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5667 NullFields []string `json:"-"`
5668 }
5669
5670 func (s GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation) MarshalJSON() ([]byte, error) {
5671 type NoMethod GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation
5672 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5673 }
5674
5675 // GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame: Video frame level
5676 // annotation results for explicit content.
5677 type GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame struct {
5678 // PornographyLikelihood: Likelihood of the pornography content..
5679 //
5680 // Possible values:
5681 // "LIKELIHOOD_UNSPECIFIED" - Unspecified likelihood.
5682 // "VERY_UNLIKELY" - Very unlikely.
5683 // "UNLIKELY" - Unlikely.
5684 // "POSSIBLE" - Possible.
5685 // "LIKELY" - Likely.
5686 // "VERY_LIKELY" - Very likely.
5687 PornographyLikelihood string `json:"pornographyLikelihood,omitempty"`
5688 // TimeOffset: Time-offset, relative to the beginning of the video,
5689 // corresponding to the video frame for this location.
5690 TimeOffset string `json:"timeOffset,omitempty"`
5691 // ForceSendFields is a list of field names (e.g. "PornographyLikelihood") to
5692 // unconditionally include in API requests. By default, fields with empty or
5693 // default values are omitted from API requests. See
5694 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5695 // details.
5696 ForceSendFields []string `json:"-"`
5697 // NullFields is a list of field names (e.g. "PornographyLikelihood") to
5698 // include in API requests with the JSON null value. By default, fields with
5699 // empty values are omitted from API requests. See
5700 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5701 NullFields []string `json:"-"`
5702 }
5703
5704 func (s GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame) MarshalJSON() ([]byte, error) {
5705 type NoMethod GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame
5706 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5707 }
5708
5709 // GoogleCloudVideointelligenceV1p3beta1ExportToOutputUriStatus: Status of
5710 // exporting annotation response to user specified `output_uri`.
5711 type GoogleCloudVideointelligenceV1p3beta1ExportToOutputUriStatus struct {
5712 // State: Output only. State of the `output_uri` export.
5713 //
5714 // Possible values:
5715 // "STATE_UNSPECIFIED" - Default value.
5716 // "SUCCEEDED" - Export succeeded.
5717 // "FAILED" - Export failed.
5718 State string `json:"state,omitempty"`
5719 // Status: Output only. Only set if state is FAILED.
5720 Status *GoogleRpcStatus `json:"status,omitempty"`
5721 // ForceSendFields is a list of field names (e.g. "State") to unconditionally
5722 // include in API requests. By default, fields with empty or default values are
5723 // omitted from API requests. See
5724 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5725 // details.
5726 ForceSendFields []string `json:"-"`
5727 // NullFields is a list of field names (e.g. "State") to include in API
5728 // requests with the JSON null value. By default, fields with empty values are
5729 // omitted from API requests. See
5730 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5731 NullFields []string `json:"-"`
5732 }
5733
5734 func (s GoogleCloudVideointelligenceV1p3beta1ExportToOutputUriStatus) MarshalJSON() ([]byte, error) {
5735 type NoMethod GoogleCloudVideointelligenceV1p3beta1ExportToOutputUriStatus
5736 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5737 }
5738
5739 // GoogleCloudVideointelligenceV1p3beta1FaceAnnotation: Deprecated. No effect.
5740 type GoogleCloudVideointelligenceV1p3beta1FaceAnnotation struct {
5741 // Frames: All video frames where a face was detected.
5742 Frames []*GoogleCloudVideointelligenceV1p3beta1FaceFrame `json:"frames,omitempty"`
5743 // Segments: All video segments where a face was detected.
5744 Segments []*GoogleCloudVideointelligenceV1p3beta1FaceSegment `json:"segments,omitempty"`
5745 // Thumbnail: Thumbnail of a representative face view (in JPEG format).
5746 Thumbnail string `json:"thumbnail,omitempty"`
5747 // ForceSendFields is a list of field names (e.g. "Frames") to unconditionally
5748 // include in API requests. By default, fields with empty or default values are
5749 // omitted from API requests. See
5750 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5751 // details.
5752 ForceSendFields []string `json:"-"`
5753 // NullFields is a list of field names (e.g. "Frames") to include in API
5754 // requests with the JSON null value. By default, fields with empty values are
5755 // omitted from API requests. See
5756 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5757 NullFields []string `json:"-"`
5758 }
5759
5760 func (s GoogleCloudVideointelligenceV1p3beta1FaceAnnotation) MarshalJSON() ([]byte, error) {
5761 type NoMethod GoogleCloudVideointelligenceV1p3beta1FaceAnnotation
5762 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5763 }
5764
5765 // GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation: Face detection
5766 // annotation.
5767 type GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation struct {
5768 // Thumbnail: The thumbnail of a person's face.
5769 Thumbnail string `json:"thumbnail,omitempty"`
5770 // Tracks: The face tracks with attributes.
5771 Tracks []*GoogleCloudVideointelligenceV1p3beta1Track `json:"tracks,omitempty"`
5772 // Version: Feature version.
5773 Version string `json:"version,omitempty"`
5774 // ForceSendFields is a list of field names (e.g. "Thumbnail") to
5775 // unconditionally include in API requests. By default, fields with empty or
5776 // default values are omitted from API requests. See
5777 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5778 // details.
5779 ForceSendFields []string `json:"-"`
5780 // NullFields is a list of field names (e.g. "Thumbnail") to include in API
5781 // requests with the JSON null value. By default, fields with empty values are
5782 // omitted from API requests. See
5783 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5784 NullFields []string `json:"-"`
5785 }
5786
5787 func (s GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation) MarshalJSON() ([]byte, error) {
5788 type NoMethod GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation
5789 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5790 }
5791
5792 // GoogleCloudVideointelligenceV1p3beta1FaceFrame: Deprecated. No effect.
5793 type GoogleCloudVideointelligenceV1p3beta1FaceFrame struct {
5794 // NormalizedBoundingBoxes: Normalized Bounding boxes in a frame. There can be
5795 // more than one boxes if the same face is detected in multiple locations
5796 // within the current frame.
5797 NormalizedBoundingBoxes []*GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox `json:"normalizedBoundingBoxes,omitempty"`
5798 // TimeOffset: Time-offset, relative to the beginning of the video,
5799 // corresponding to the video frame for this location.
5800 TimeOffset string `json:"timeOffset,omitempty"`
5801 // ForceSendFields is a list of field names (e.g. "NormalizedBoundingBoxes") to
5802 // unconditionally include in API requests. By default, fields with empty or
5803 // default values are omitted from API requests. See
5804 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5805 // details.
5806 ForceSendFields []string `json:"-"`
5807 // NullFields is a list of field names (e.g. "NormalizedBoundingBoxes") to
5808 // include in API requests with the JSON null value. By default, fields with
5809 // empty values are omitted from API requests. See
5810 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5811 NullFields []string `json:"-"`
5812 }
5813
5814 func (s GoogleCloudVideointelligenceV1p3beta1FaceFrame) MarshalJSON() ([]byte, error) {
5815 type NoMethod GoogleCloudVideointelligenceV1p3beta1FaceFrame
5816 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5817 }
5818
5819 // GoogleCloudVideointelligenceV1p3beta1FaceSegment: Video segment level
5820 // annotation results for face detection.
5821 type GoogleCloudVideointelligenceV1p3beta1FaceSegment struct {
5822 // Segment: Video segment where a face was detected.
5823 Segment *GoogleCloudVideointelligenceV1p3beta1VideoSegment `json:"segment,omitempty"`
5824 // ForceSendFields is a list of field names (e.g. "Segment") to unconditionally
5825 // include in API requests. By default, fields with empty or default values are
5826 // omitted from API requests. See
5827 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5828 // details.
5829 ForceSendFields []string `json:"-"`
5830 // NullFields is a list of field names (e.g. "Segment") to include in API
5831 // requests with the JSON null value. By default, fields with empty values are
5832 // omitted from API requests. See
5833 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5834 NullFields []string `json:"-"`
5835 }
5836
5837 func (s GoogleCloudVideointelligenceV1p3beta1FaceSegment) MarshalJSON() ([]byte, error) {
5838 type NoMethod GoogleCloudVideointelligenceV1p3beta1FaceSegment
5839 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5840 }
5841
5842 // GoogleCloudVideointelligenceV1p3beta1LabelAnnotation: Label annotation.
5843 type GoogleCloudVideointelligenceV1p3beta1LabelAnnotation struct {
5844 // CategoryEntities: Common categories for the detected entity. For example,
5845 // when the label is `Terrier`, the category is likely `dog`. And in some cases
5846 // there might be more than one categories e.g., `Terrier` could also be a
5847 // `pet`.
5848 CategoryEntities []*GoogleCloudVideointelligenceV1p3beta1Entity `json:"categoryEntities,omitempty"`
5849 // Entity: Detected entity.
5850 Entity *GoogleCloudVideointelligenceV1p3beta1Entity `json:"entity,omitempty"`
5851 // Frames: All video frames where a label was detected.
5852 Frames []*GoogleCloudVideointelligenceV1p3beta1LabelFrame `json:"frames,omitempty"`
5853 // Segments: All video segments where a label was detected.
5854 Segments []*GoogleCloudVideointelligenceV1p3beta1LabelSegment `json:"segments,omitempty"`
5855 // Version: Feature version.
5856 Version string `json:"version,omitempty"`
5857 // ForceSendFields is a list of field names (e.g. "CategoryEntities") to
5858 // unconditionally include in API requests. By default, fields with empty or
5859 // default values are omitted from API requests. See
5860 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5861 // details.
5862 ForceSendFields []string `json:"-"`
5863 // NullFields is a list of field names (e.g. "CategoryEntities") to include in
5864 // API requests with the JSON null value. By default, fields with empty values
5865 // are omitted from API requests. See
5866 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5867 NullFields []string `json:"-"`
5868 }
5869
5870 func (s GoogleCloudVideointelligenceV1p3beta1LabelAnnotation) MarshalJSON() ([]byte, error) {
5871 type NoMethod GoogleCloudVideointelligenceV1p3beta1LabelAnnotation
5872 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5873 }
5874
5875 // GoogleCloudVideointelligenceV1p3beta1LabelFrame: Video frame level
5876 // annotation results for label detection.
5877 type GoogleCloudVideointelligenceV1p3beta1LabelFrame struct {
5878 // Confidence: Confidence that the label is accurate. Range: [0, 1].
5879 Confidence float64 `json:"confidence,omitempty"`
5880 // TimeOffset: Time-offset, relative to the beginning of the video,
5881 // corresponding to the video frame for this location.
5882 TimeOffset string `json:"timeOffset,omitempty"`
5883 // ForceSendFields is a list of field names (e.g. "Confidence") to
5884 // unconditionally include in API requests. By default, fields with empty or
5885 // default values are omitted from API requests. See
5886 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5887 // details.
5888 ForceSendFields []string `json:"-"`
5889 // NullFields is a list of field names (e.g. "Confidence") to include in API
5890 // requests with the JSON null value. By default, fields with empty values are
5891 // omitted from API requests. See
5892 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5893 NullFields []string `json:"-"`
5894 }
5895
5896 func (s GoogleCloudVideointelligenceV1p3beta1LabelFrame) MarshalJSON() ([]byte, error) {
5897 type NoMethod GoogleCloudVideointelligenceV1p3beta1LabelFrame
5898 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5899 }
5900
5901 func (s *GoogleCloudVideointelligenceV1p3beta1LabelFrame) UnmarshalJSON(data []byte) error {
5902 type NoMethod GoogleCloudVideointelligenceV1p3beta1LabelFrame
5903 var s1 struct {
5904 Confidence gensupport.JSONFloat64 `json:"confidence"`
5905 *NoMethod
5906 }
5907 s1.NoMethod = (*NoMethod)(s)
5908 if err := json.Unmarshal(data, &s1); err != nil {
5909 return err
5910 }
5911 s.Confidence = float64(s1.Confidence)
5912 return nil
5913 }
5914
5915 // GoogleCloudVideointelligenceV1p3beta1LabelSegment: Video segment level
5916 // annotation results for label detection.
5917 type GoogleCloudVideointelligenceV1p3beta1LabelSegment struct {
5918 // Confidence: Confidence that the label is accurate. Range: [0, 1].
5919 Confidence float64 `json:"confidence,omitempty"`
5920 // Segment: Video segment where a label was detected.
5921 Segment *GoogleCloudVideointelligenceV1p3beta1VideoSegment `json:"segment,omitempty"`
5922 // ForceSendFields is a list of field names (e.g. "Confidence") to
5923 // unconditionally include in API requests. By default, fields with empty or
5924 // default values are omitted from API requests. See
5925 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5926 // details.
5927 ForceSendFields []string `json:"-"`
5928 // NullFields is a list of field names (e.g. "Confidence") to include in API
5929 // requests with the JSON null value. By default, fields with empty values are
5930 // omitted from API requests. See
5931 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5932 NullFields []string `json:"-"`
5933 }
5934
5935 func (s GoogleCloudVideointelligenceV1p3beta1LabelSegment) MarshalJSON() ([]byte, error) {
5936 type NoMethod GoogleCloudVideointelligenceV1p3beta1LabelSegment
5937 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5938 }
5939
5940 func (s *GoogleCloudVideointelligenceV1p3beta1LabelSegment) UnmarshalJSON(data []byte) error {
5941 type NoMethod GoogleCloudVideointelligenceV1p3beta1LabelSegment
5942 var s1 struct {
5943 Confidence gensupport.JSONFloat64 `json:"confidence"`
5944 *NoMethod
5945 }
5946 s1.NoMethod = (*NoMethod)(s)
5947 if err := json.Unmarshal(data, &s1); err != nil {
5948 return err
5949 }
5950 s.Confidence = float64(s1.Confidence)
5951 return nil
5952 }
5953
5954 // GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation: Annotation
5955 // corresponding to one detected, tracked and recognized logo class.
5956 type GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation struct {
5957 // Entity: Entity category information to specify the logo class that all the
5958 // logo tracks within this LogoRecognitionAnnotation are recognized as.
5959 Entity *GoogleCloudVideointelligenceV1p3beta1Entity `json:"entity,omitempty"`
5960 // Segments: All video segments where the recognized logo appears. There might
5961 // be multiple instances of the same logo class appearing in one VideoSegment.
5962 Segments []*GoogleCloudVideointelligenceV1p3beta1VideoSegment `json:"segments,omitempty"`
5963 // Tracks: All logo tracks where the recognized logo appears. Each track
5964 // corresponds to one logo instance appearing in consecutive frames.
5965 Tracks []*GoogleCloudVideointelligenceV1p3beta1Track `json:"tracks,omitempty"`
5966 // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
5967 // include in API requests. By default, fields with empty or default values are
5968 // omitted from API requests. See
5969 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
5970 // details.
5971 ForceSendFields []string `json:"-"`
5972 // NullFields is a list of field names (e.g. "Entity") to include in API
5973 // requests with the JSON null value. By default, fields with empty values are
5974 // omitted from API requests. See
5975 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
5976 NullFields []string `json:"-"`
5977 }
5978
5979 func (s GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation) MarshalJSON() ([]byte, error) {
5980 type NoMethod GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation
5981 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
5982 }
5983
5984 // GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox: Normalized
5985 // bounding box. The normalized vertex coordinates are relative to the original
5986 // image. Range: [0, 1].
5987 type GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox struct {
5988 // Bottom: Bottom Y coordinate.
5989 Bottom float64 `json:"bottom,omitempty"`
5990 // Left: Left X coordinate.
5991 Left float64 `json:"left,omitempty"`
5992 // Right: Right X coordinate.
5993 Right float64 `json:"right,omitempty"`
5994 // Top: Top Y coordinate.
5995 Top float64 `json:"top,omitempty"`
5996 // ForceSendFields is a list of field names (e.g. "Bottom") to unconditionally
5997 // include in API requests. By default, fields with empty or default values are
5998 // omitted from API requests. See
5999 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6000 // details.
6001 ForceSendFields []string `json:"-"`
6002 // NullFields is a list of field names (e.g. "Bottom") to include in API
6003 // requests with the JSON null value. By default, fields with empty values are
6004 // omitted from API requests. See
6005 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6006 NullFields []string `json:"-"`
6007 }
6008
6009 func (s GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox) MarshalJSON() ([]byte, error) {
6010 type NoMethod GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox
6011 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6012 }
6013
6014 func (s *GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox) UnmarshalJSON(data []byte) error {
6015 type NoMethod GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox
6016 var s1 struct {
6017 Bottom gensupport.JSONFloat64 `json:"bottom"`
6018 Left gensupport.JSONFloat64 `json:"left"`
6019 Right gensupport.JSONFloat64 `json:"right"`
6020 Top gensupport.JSONFloat64 `json:"top"`
6021 *NoMethod
6022 }
6023 s1.NoMethod = (*NoMethod)(s)
6024 if err := json.Unmarshal(data, &s1); err != nil {
6025 return err
6026 }
6027 s.Bottom = float64(s1.Bottom)
6028 s.Left = float64(s1.Left)
6029 s.Right = float64(s1.Right)
6030 s.Top = float64(s1.Top)
6031 return nil
6032 }
6033
6034 // GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly: Normalized
6035 // bounding polygon for text (that might not be aligned with axis). Contains
6036 // list of the corner points in clockwise order starting from top-left corner.
6037 // For example, for a rectangular bounding box: When the text is horizontal it
6038 // might look like: 0----1 | | 3----2 When it's clockwise rotated 180 degrees
6039 // around the top-left corner it becomes: 2----3 | | 1----0 and the vertex
6040 // order will still be (0, 1, 2, 3). Note that values can be less than 0, or
6041 // greater than 1 due to trigonometric calculations for location of the box.
6042 type GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly struct {
6043 // Vertices: Normalized vertices of the bounding polygon.
6044 Vertices []*GoogleCloudVideointelligenceV1p3beta1NormalizedVertex `json:"vertices,omitempty"`
6045 // ForceSendFields is a list of field names (e.g. "Vertices") to
6046 // unconditionally include in API requests. By default, fields with empty or
6047 // default values are omitted from API requests. See
6048 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6049 // details.
6050 ForceSendFields []string `json:"-"`
6051 // NullFields is a list of field names (e.g. "Vertices") to include in API
6052 // requests with the JSON null value. By default, fields with empty values are
6053 // omitted from API requests. See
6054 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6055 NullFields []string `json:"-"`
6056 }
6057
6058 func (s GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly) MarshalJSON() ([]byte, error) {
6059 type NoMethod GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly
6060 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6061 }
6062
6063 // GoogleCloudVideointelligenceV1p3beta1NormalizedVertex: A vertex represents a
6064 // 2D point in the image. NOTE: the normalized vertex coordinates are relative
6065 // to the original image and range from 0 to 1.
6066 type GoogleCloudVideointelligenceV1p3beta1NormalizedVertex struct {
6067 // X: X coordinate.
6068 X float64 `json:"x,omitempty"`
6069 // Y: Y coordinate.
6070 Y float64 `json:"y,omitempty"`
6071 // ForceSendFields is a list of field names (e.g. "X") to unconditionally
6072 // include in API requests. By default, fields with empty or default values are
6073 // omitted from API requests. See
6074 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6075 // details.
6076 ForceSendFields []string `json:"-"`
6077 // NullFields is a list of field names (e.g. "X") to include in API requests
6078 // with the JSON null value. By default, fields with empty values are omitted
6079 // from API requests. See
6080 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6081 NullFields []string `json:"-"`
6082 }
6083
6084 func (s GoogleCloudVideointelligenceV1p3beta1NormalizedVertex) MarshalJSON() ([]byte, error) {
6085 type NoMethod GoogleCloudVideointelligenceV1p3beta1NormalizedVertex
6086 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6087 }
6088
6089 func (s *GoogleCloudVideointelligenceV1p3beta1NormalizedVertex) UnmarshalJSON(data []byte) error {
6090 type NoMethod GoogleCloudVideointelligenceV1p3beta1NormalizedVertex
6091 var s1 struct {
6092 X gensupport.JSONFloat64 `json:"x"`
6093 Y gensupport.JSONFloat64 `json:"y"`
6094 *NoMethod
6095 }
6096 s1.NoMethod = (*NoMethod)(s)
6097 if err := json.Unmarshal(data, &s1); err != nil {
6098 return err
6099 }
6100 s.X = float64(s1.X)
6101 s.Y = float64(s1.Y)
6102 return nil
6103 }
6104
6105 // GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation: Annotations
6106 // corresponding to one tracked object.
6107 type GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation struct {
6108 // Confidence: Object category's labeling confidence of this track.
6109 Confidence float64 `json:"confidence,omitempty"`
6110 // Entity: Entity to specify the object category that this track is labeled as.
6111 Entity *GoogleCloudVideointelligenceV1p3beta1Entity `json:"entity,omitempty"`
6112 // Frames: Information corresponding to all frames where this object track
6113 // appears. Non-streaming batch mode: it may be one or multiple
6114 // ObjectTrackingFrame messages in frames. Streaming mode: it can only be one
6115 // ObjectTrackingFrame message in frames.
6116 Frames []*GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame `json:"frames,omitempty"`
6117 // Segment: Non-streaming batch mode ONLY. Each object track corresponds to one
6118 // video segment where it appears.
6119 Segment *GoogleCloudVideointelligenceV1p3beta1VideoSegment `json:"segment,omitempty"`
6120 // TrackId: Streaming mode ONLY. In streaming mode, we do not know the end time
6121 // of a tracked object before it is completed. Hence, there is no VideoSegment
6122 // info returned. Instead, we provide a unique identifiable integer track_id so
6123 // that the customers can correlate the results of the ongoing
6124 // ObjectTrackAnnotation of the same track_id over time.
6125 TrackId int64 `json:"trackId,omitempty,string"`
6126 // Version: Feature version.
6127 Version string `json:"version,omitempty"`
6128 // ForceSendFields is a list of field names (e.g. "Confidence") to
6129 // unconditionally include in API requests. By default, fields with empty or
6130 // default values are omitted from API requests. See
6131 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6132 // details.
6133 ForceSendFields []string `json:"-"`
6134 // NullFields is a list of field names (e.g. "Confidence") to include in API
6135 // requests with the JSON null value. By default, fields with empty values are
6136 // omitted from API requests. See
6137 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6138 NullFields []string `json:"-"`
6139 }
6140
6141 func (s GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation) MarshalJSON() ([]byte, error) {
6142 type NoMethod GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation
6143 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6144 }
6145
6146 func (s *GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation) UnmarshalJSON(data []byte) error {
6147 type NoMethod GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation
6148 var s1 struct {
6149 Confidence gensupport.JSONFloat64 `json:"confidence"`
6150 *NoMethod
6151 }
6152 s1.NoMethod = (*NoMethod)(s)
6153 if err := json.Unmarshal(data, &s1); err != nil {
6154 return err
6155 }
6156 s.Confidence = float64(s1.Confidence)
6157 return nil
6158 }
6159
6160 // GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame: Video frame level
6161 // annotations for object detection and tracking. This field stores per frame
6162 // location, time offset, and confidence.
6163 type GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame struct {
6164 // NormalizedBoundingBox: The normalized bounding box location of this object
6165 // track for the frame.
6166 NormalizedBoundingBox *GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
6167 // TimeOffset: The timestamp of the frame in microseconds.
6168 TimeOffset string `json:"timeOffset,omitempty"`
6169 // ForceSendFields is a list of field names (e.g. "NormalizedBoundingBox") to
6170 // unconditionally include in API requests. By default, fields with empty or
6171 // default values are omitted from API requests. See
6172 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6173 // details.
6174 ForceSendFields []string `json:"-"`
6175 // NullFields is a list of field names (e.g. "NormalizedBoundingBox") to
6176 // include in API requests with the JSON null value. By default, fields with
6177 // empty values are omitted from API requests. See
6178 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6179 NullFields []string `json:"-"`
6180 }
6181
6182 func (s GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame) MarshalJSON() ([]byte, error) {
6183 type NoMethod GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame
6184 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6185 }
6186
6187 // GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation: Person
6188 // detection annotation per video.
6189 type GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation struct {
6190 // Tracks: The detected tracks of a person.
6191 Tracks []*GoogleCloudVideointelligenceV1p3beta1Track `json:"tracks,omitempty"`
6192 // Version: Feature version.
6193 Version string `json:"version,omitempty"`
6194 // ForceSendFields is a list of field names (e.g. "Tracks") to unconditionally
6195 // include in API requests. By default, fields with empty or default values are
6196 // omitted from API requests. See
6197 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6198 // details.
6199 ForceSendFields []string `json:"-"`
6200 // NullFields is a list of field names (e.g. "Tracks") to include in API
6201 // requests with the JSON null value. By default, fields with empty values are
6202 // omitted from API requests. See
6203 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6204 NullFields []string `json:"-"`
6205 }
6206
6207 func (s GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation) MarshalJSON() ([]byte, error) {
6208 type NoMethod GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation
6209 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6210 }
6211
6212 // GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity: The recognized
6213 // celebrity with confidence score.
6214 type GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity struct {
6215 // Celebrity: The recognized celebrity.
6216 Celebrity *GoogleCloudVideointelligenceV1p3beta1Celebrity `json:"celebrity,omitempty"`
6217 // Confidence: Recognition confidence. Range [0, 1].
6218 Confidence float64 `json:"confidence,omitempty"`
6219 // ForceSendFields is a list of field names (e.g. "Celebrity") to
6220 // unconditionally include in API requests. By default, fields with empty or
6221 // default values are omitted from API requests. See
6222 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6223 // details.
6224 ForceSendFields []string `json:"-"`
6225 // NullFields is a list of field names (e.g. "Celebrity") to include in API
6226 // requests with the JSON null value. By default, fields with empty values are
6227 // omitted from API requests. See
6228 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6229 NullFields []string `json:"-"`
6230 }
6231
6232 func (s GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity) MarshalJSON() ([]byte, error) {
6233 type NoMethod GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity
6234 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6235 }
6236
6237 func (s *GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity) UnmarshalJSON(data []byte) error {
6238 type NoMethod GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity
6239 var s1 struct {
6240 Confidence gensupport.JSONFloat64 `json:"confidence"`
6241 *NoMethod
6242 }
6243 s1.NoMethod = (*NoMethod)(s)
6244 if err := json.Unmarshal(data, &s1); err != nil {
6245 return err
6246 }
6247 s.Confidence = float64(s1.Confidence)
6248 return nil
6249 }
6250
6251 // GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative:
6252 // Alternative hypotheses (a.k.a. n-best list).
6253 type GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative struct {
6254 // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A
6255 // higher number indicates an estimated greater likelihood that the recognized
6256 // words are correct. This field is set only for the top alternative. This
6257 // field is not guaranteed to be accurate and users should not rely on it to be
6258 // always provided. The default of 0.0 is a sentinel value indicating
6259 // `confidence` was not set.
6260 Confidence float64 `json:"confidence,omitempty"`
6261 // Transcript: Transcript text representing the words that the user spoke.
6262 Transcript string `json:"transcript,omitempty"`
6263 // Words: Output only. A list of word-specific information for each recognized
6264 // word. Note: When `enable_speaker_diarization` is set to true, you will see
6265 // all the words from the beginning of the audio.
6266 Words []*GoogleCloudVideointelligenceV1p3beta1WordInfo `json:"words,omitempty"`
6267 // ForceSendFields is a list of field names (e.g. "Confidence") to
6268 // unconditionally include in API requests. By default, fields with empty or
6269 // default values are omitted from API requests. See
6270 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6271 // details.
6272 ForceSendFields []string `json:"-"`
6273 // NullFields is a list of field names (e.g. "Confidence") to include in API
6274 // requests with the JSON null value. By default, fields with empty values are
6275 // omitted from API requests. See
6276 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6277 NullFields []string `json:"-"`
6278 }
6279
6280 func (s GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) {
6281 type NoMethod GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative
6282 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6283 }
6284
6285 func (s *GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error {
6286 type NoMethod GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative
6287 var s1 struct {
6288 Confidence gensupport.JSONFloat64 `json:"confidence"`
6289 *NoMethod
6290 }
6291 s1.NoMethod = (*NoMethod)(s)
6292 if err := json.Unmarshal(data, &s1); err != nil {
6293 return err
6294 }
6295 s.Confidence = float64(s1.Confidence)
6296 return nil
6297 }
6298
6299 // GoogleCloudVideointelligenceV1p3beta1SpeechTranscription: A speech
6300 // recognition result corresponding to a portion of the audio.
6301 type GoogleCloudVideointelligenceV1p3beta1SpeechTranscription struct {
6302 // Alternatives: May contain one or more recognition hypotheses (up to the
6303 // maximum specified in `max_alternatives`). These alternatives are ordered in
6304 // terms of accuracy, with the top (first) alternative being the most probable,
6305 // as ranked by the recognizer.
6306 Alternatives []*GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative `json:"alternatives,omitempty"`
6307 // LanguageCode: Output only. The BCP-47
6308 // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language
6309 // in this result. This language code was detected to have the most likelihood
6310 // of being spoken in the audio.
6311 LanguageCode string `json:"languageCode,omitempty"`
6312 // ForceSendFields is a list of field names (e.g. "Alternatives") to
6313 // unconditionally include in API requests. By default, fields with empty or
6314 // default values are omitted from API requests. See
6315 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6316 // details.
6317 ForceSendFields []string `json:"-"`
6318 // NullFields is a list of field names (e.g. "Alternatives") to include in API
6319 // requests with the JSON null value. By default, fields with empty values are
6320 // omitted from API requests. See
6321 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6322 NullFields []string `json:"-"`
6323 }
6324
6325 func (s GoogleCloudVideointelligenceV1p3beta1SpeechTranscription) MarshalJSON() ([]byte, error) {
6326 type NoMethod GoogleCloudVideointelligenceV1p3beta1SpeechTranscription
6327 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6328 }
6329
6330 // GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse:
6331 // `StreamingAnnotateVideoResponse` is the only message returned to the client
6332 // by `StreamingAnnotateVideo`. A series of zero or more
6333 // `StreamingAnnotateVideoResponse` messages are streamed back to the client.
6334 type GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse struct {
6335 // AnnotationResults: Streaming annotation results.
6336 AnnotationResults *GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults `json:"annotationResults,omitempty"`
6337 // AnnotationResultsUri: Google Cloud Storage URI that stores annotation
6338 // results of one streaming session in JSON format. It is the
6339 // annotation_result_storage_directory from the request followed by
6340 // '/cloud_project_number-session_id'.
6341 AnnotationResultsUri string `json:"annotationResultsUri,omitempty"`
6342 // Error: If set, returns a google.rpc.Status message that specifies the error
6343 // for the operation.
6344 Error *GoogleRpcStatus `json:"error,omitempty"`
6345 // ForceSendFields is a list of field names (e.g. "AnnotationResults") to
6346 // unconditionally include in API requests. By default, fields with empty or
6347 // default values are omitted from API requests. See
6348 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6349 // details.
6350 ForceSendFields []string `json:"-"`
6351 // NullFields is a list of field names (e.g. "AnnotationResults") to include in
6352 // API requests with the JSON null value. By default, fields with empty values
6353 // are omitted from API requests. See
6354 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6355 NullFields []string `json:"-"`
6356 }
6357
6358 func (s GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse) MarshalJSON() ([]byte, error) {
6359 type NoMethod GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse
6360 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6361 }
6362
6363 // GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults:
6364 // Streaming annotation results corresponding to a portion of the video that is
6365 // currently being processed. Only ONE type of annotation will be specified in
6366 // the response.
6367 type GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults struct {
6368 // ExplicitAnnotation: Explicit content annotation results.
6369 ExplicitAnnotation *GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation `json:"explicitAnnotation,omitempty"`
6370 // FrameTimestamp: Timestamp of the processed frame in microseconds.
6371 FrameTimestamp string `json:"frameTimestamp,omitempty"`
6372 // LabelAnnotations: Label annotation results.
6373 LabelAnnotations []*GoogleCloudVideointelligenceV1p3beta1LabelAnnotation `json:"labelAnnotations,omitempty"`
6374 // ObjectAnnotations: Object tracking results.
6375 ObjectAnnotations []*GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation `json:"objectAnnotations,omitempty"`
6376 // ShotAnnotations: Shot annotation results. Each shot is represented as a
6377 // video segment.
6378 ShotAnnotations []*GoogleCloudVideointelligenceV1p3beta1VideoSegment `json:"shotAnnotations,omitempty"`
6379 // ForceSendFields is a list of field names (e.g. "ExplicitAnnotation") to
6380 // unconditionally include in API requests. By default, fields with empty or
6381 // default values are omitted from API requests. See
6382 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6383 // details.
6384 ForceSendFields []string `json:"-"`
6385 // NullFields is a list of field names (e.g. "ExplicitAnnotation") to include
6386 // in API requests with the JSON null value. By default, fields with empty
6387 // values are omitted from API requests. See
6388 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6389 NullFields []string `json:"-"`
6390 }
6391
6392 func (s GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults) MarshalJSON() ([]byte, error) {
6393 type NoMethod GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults
6394 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6395 }
6396
6397 // GoogleCloudVideointelligenceV1p3beta1TextAnnotation: Annotations related to
6398 // one detected OCR text snippet. This will contain the corresponding text,
6399 // confidence value, and frame level information for each detection.
6400 type GoogleCloudVideointelligenceV1p3beta1TextAnnotation struct {
6401 // Segments: All video segments where OCR detected text appears.
6402 Segments []*GoogleCloudVideointelligenceV1p3beta1TextSegment `json:"segments,omitempty"`
6403 // Text: The detected text.
6404 Text string `json:"text,omitempty"`
6405 // Version: Feature version.
6406 Version string `json:"version,omitempty"`
6407 // ForceSendFields is a list of field names (e.g. "Segments") to
6408 // unconditionally include in API requests. By default, fields with empty or
6409 // default values are omitted from API requests. See
6410 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6411 // details.
6412 ForceSendFields []string `json:"-"`
6413 // NullFields is a list of field names (e.g. "Segments") to include in API
6414 // requests with the JSON null value. By default, fields with empty values are
6415 // omitted from API requests. See
6416 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6417 NullFields []string `json:"-"`
6418 }
6419
6420 func (s GoogleCloudVideointelligenceV1p3beta1TextAnnotation) MarshalJSON() ([]byte, error) {
6421 type NoMethod GoogleCloudVideointelligenceV1p3beta1TextAnnotation
6422 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6423 }
6424
6425 // GoogleCloudVideointelligenceV1p3beta1TextFrame: Video frame level annotation
6426 // results for text annotation (OCR). Contains information regarding timestamp
6427 // and bounding box locations for the frames containing detected OCR text
6428 // snippets.
6429 type GoogleCloudVideointelligenceV1p3beta1TextFrame struct {
6430 // RotatedBoundingBox: Bounding polygon of the detected text for this frame.
6431 RotatedBoundingBox *GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly `json:"rotatedBoundingBox,omitempty"`
6432 // TimeOffset: Timestamp of this frame.
6433 TimeOffset string `json:"timeOffset,omitempty"`
6434 // ForceSendFields is a list of field names (e.g. "RotatedBoundingBox") to
6435 // unconditionally include in API requests. By default, fields with empty or
6436 // default values are omitted from API requests. See
6437 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6438 // details.
6439 ForceSendFields []string `json:"-"`
6440 // NullFields is a list of field names (e.g. "RotatedBoundingBox") to include
6441 // in API requests with the JSON null value. By default, fields with empty
6442 // values are omitted from API requests. See
6443 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6444 NullFields []string `json:"-"`
6445 }
6446
6447 func (s GoogleCloudVideointelligenceV1p3beta1TextFrame) MarshalJSON() ([]byte, error) {
6448 type NoMethod GoogleCloudVideointelligenceV1p3beta1TextFrame
6449 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6450 }
6451
6452 // GoogleCloudVideointelligenceV1p3beta1TextSegment: Video segment level
6453 // annotation results for text detection.
6454 type GoogleCloudVideointelligenceV1p3beta1TextSegment struct {
6455 // Confidence: Confidence for the track of detected text. It is calculated as
6456 // the highest over all frames where OCR detected text appears.
6457 Confidence float64 `json:"confidence,omitempty"`
6458 // Frames: Information related to the frames where OCR detected text appears.
6459 Frames []*GoogleCloudVideointelligenceV1p3beta1TextFrame `json:"frames,omitempty"`
6460 // Segment: Video segment where a text snippet was detected.
6461 Segment *GoogleCloudVideointelligenceV1p3beta1VideoSegment `json:"segment,omitempty"`
6462 // ForceSendFields is a list of field names (e.g. "Confidence") to
6463 // unconditionally include in API requests. By default, fields with empty or
6464 // default values are omitted from API requests. See
6465 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6466 // details.
6467 ForceSendFields []string `json:"-"`
6468 // NullFields is a list of field names (e.g. "Confidence") to include in API
6469 // requests with the JSON null value. By default, fields with empty values are
6470 // omitted from API requests. See
6471 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6472 NullFields []string `json:"-"`
6473 }
6474
6475 func (s GoogleCloudVideointelligenceV1p3beta1TextSegment) MarshalJSON() ([]byte, error) {
6476 type NoMethod GoogleCloudVideointelligenceV1p3beta1TextSegment
6477 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6478 }
6479
6480 func (s *GoogleCloudVideointelligenceV1p3beta1TextSegment) UnmarshalJSON(data []byte) error {
6481 type NoMethod GoogleCloudVideointelligenceV1p3beta1TextSegment
6482 var s1 struct {
6483 Confidence gensupport.JSONFloat64 `json:"confidence"`
6484 *NoMethod
6485 }
6486 s1.NoMethod = (*NoMethod)(s)
6487 if err := json.Unmarshal(data, &s1); err != nil {
6488 return err
6489 }
6490 s.Confidence = float64(s1.Confidence)
6491 return nil
6492 }
6493
6494 // GoogleCloudVideointelligenceV1p3beta1TimestampedObject: For tracking related
6495 // features. An object at time_offset with attributes, and located with
6496 // normalized_bounding_box.
6497 type GoogleCloudVideointelligenceV1p3beta1TimestampedObject struct {
6498 // Attributes: Optional. The attributes of the object in the bounding box.
6499 Attributes []*GoogleCloudVideointelligenceV1p3beta1DetectedAttribute `json:"attributes,omitempty"`
6500 // Landmarks: Optional. The detected landmarks.
6501 Landmarks []*GoogleCloudVideointelligenceV1p3beta1DetectedLandmark `json:"landmarks,omitempty"`
6502 // NormalizedBoundingBox: Normalized Bounding box in a frame, where the object
6503 // is located.
6504 NormalizedBoundingBox *GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"`
6505 // TimeOffset: Time-offset, relative to the beginning of the video,
6506 // corresponding to the video frame for this object.
6507 TimeOffset string `json:"timeOffset,omitempty"`
6508 // ForceSendFields is a list of field names (e.g. "Attributes") to
6509 // unconditionally include in API requests. By default, fields with empty or
6510 // default values are omitted from API requests. See
6511 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6512 // details.
6513 ForceSendFields []string `json:"-"`
6514 // NullFields is a list of field names (e.g. "Attributes") to include in API
6515 // requests with the JSON null value. By default, fields with empty values are
6516 // omitted from API requests. See
6517 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6518 NullFields []string `json:"-"`
6519 }
6520
6521 func (s GoogleCloudVideointelligenceV1p3beta1TimestampedObject) MarshalJSON() ([]byte, error) {
6522 type NoMethod GoogleCloudVideointelligenceV1p3beta1TimestampedObject
6523 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6524 }
6525
6526 // GoogleCloudVideointelligenceV1p3beta1Track: A track of an object instance.
6527 type GoogleCloudVideointelligenceV1p3beta1Track struct {
6528 // Attributes: Optional. Attributes in the track level.
6529 Attributes []*GoogleCloudVideointelligenceV1p3beta1DetectedAttribute `json:"attributes,omitempty"`
6530 // Confidence: Optional. The confidence score of the tracked object.
6531 Confidence float64 `json:"confidence,omitempty"`
6532 // Segment: Video segment of a track.
6533 Segment *GoogleCloudVideointelligenceV1p3beta1VideoSegment `json:"segment,omitempty"`
6534 // TimestampedObjects: The object with timestamp and attributes per frame in
6535 // the track.
6536 TimestampedObjects []*GoogleCloudVideointelligenceV1p3beta1TimestampedObject `json:"timestampedObjects,omitempty"`
6537 // ForceSendFields is a list of field names (e.g. "Attributes") to
6538 // unconditionally include in API requests. By default, fields with empty or
6539 // default values are omitted from API requests. See
6540 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6541 // details.
6542 ForceSendFields []string `json:"-"`
6543 // NullFields is a list of field names (e.g. "Attributes") to include in API
6544 // requests with the JSON null value. By default, fields with empty values are
6545 // omitted from API requests. See
6546 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6547 NullFields []string `json:"-"`
6548 }
6549
6550 func (s GoogleCloudVideointelligenceV1p3beta1Track) MarshalJSON() ([]byte, error) {
6551 type NoMethod GoogleCloudVideointelligenceV1p3beta1Track
6552 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6553 }
6554
6555 func (s *GoogleCloudVideointelligenceV1p3beta1Track) UnmarshalJSON(data []byte) error {
6556 type NoMethod GoogleCloudVideointelligenceV1p3beta1Track
6557 var s1 struct {
6558 Confidence gensupport.JSONFloat64 `json:"confidence"`
6559 *NoMethod
6560 }
6561 s1.NoMethod = (*NoMethod)(s)
6562 if err := json.Unmarshal(data, &s1); err != nil {
6563 return err
6564 }
6565 s.Confidence = float64(s1.Confidence)
6566 return nil
6567 }
6568
6569 // GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress: Annotation
6570 // progress for a single video.
6571 type GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress struct {
6572 // ExportStatus: Status of exporting annotation response to user specified
6573 // `output_uri`. Only set if `output_uri` is set in the request.
6574 ExportStatus *GoogleCloudVideointelligenceV1p3beta1ExportToOutputUriStatus `json:"exportStatus,omitempty"`
6575 // Feature: Specifies which feature is being tracked if the request contains
6576 // more than one feature.
6577 //
6578 // Possible values:
6579 // "FEATURE_UNSPECIFIED" - Unspecified.
6580 // "LABEL_DETECTION" - Label detection. Detect objects, such as dog or
6581 // flower.
6582 // "SHOT_CHANGE_DETECTION" - Shot change detection.
6583 // "EXPLICIT_CONTENT_DETECTION" - Explicit content detection.
6584 // "FACE_DETECTION" - Human face detection.
6585 // "SPEECH_TRANSCRIPTION" - Speech transcription.
6586 // "TEXT_DETECTION" - OCR text detection and tracking.
6587 // "OBJECT_TRACKING" - Object detection and tracking.
6588 // "LOGO_RECOGNITION" - Logo detection, tracking, and recognition.
6589 // "CELEBRITY_RECOGNITION" - Celebrity recognition.
6590 // "PERSON_DETECTION" - Person detection.
6591 Feature string `json:"feature,omitempty"`
6592 // InputUri: Video file location in Cloud Storage
6593 // (https://cloud.google.com/storage/).
6594 InputUri string `json:"inputUri,omitempty"`
6595 // ProgressPercent: Approximate percentage processed thus far. Guaranteed to be
6596 // 100 when fully processed.
6597 ProgressPercent int64 `json:"progressPercent,omitempty"`
6598 // Segment: Specifies which segment is being tracked if the request contains
6599 // more than one segment.
6600 Segment *GoogleCloudVideointelligenceV1p3beta1VideoSegment `json:"segment,omitempty"`
6601 // StartTime: Time when the request was received.
6602 StartTime string `json:"startTime,omitempty"`
6603 // UpdateTime: Time of the most recent update.
6604 UpdateTime string `json:"updateTime,omitempty"`
6605 // ForceSendFields is a list of field names (e.g. "ExportStatus") to
6606 // unconditionally include in API requests. By default, fields with empty or
6607 // default values are omitted from API requests. See
6608 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6609 // details.
6610 ForceSendFields []string `json:"-"`
6611 // NullFields is a list of field names (e.g. "ExportStatus") to include in API
6612 // requests with the JSON null value. By default, fields with empty values are
6613 // omitted from API requests. See
6614 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6615 NullFields []string `json:"-"`
6616 }
6617
6618 func (s GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress) MarshalJSON() ([]byte, error) {
6619 type NoMethod GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress
6620 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6621 }
6622
6623 // GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults: Annotation
6624 // results for a single video.
6625 type GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults struct {
6626 // CelebrityRecognitionAnnotations: Celebrity recognition annotations.
6627 CelebrityRecognitionAnnotations *GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation `json:"celebrityRecognitionAnnotations,omitempty"`
6628 // Error: If set, indicates an error. Note that for a single
6629 // `AnnotateVideoRequest` some videos may succeed and some may fail.
6630 Error *GoogleRpcStatus `json:"error,omitempty"`
6631 // ExplicitAnnotation: Explicit content annotation.
6632 ExplicitAnnotation *GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation `json:"explicitAnnotation,omitempty"`
6633 // FaceAnnotations: Deprecated. Please use `face_detection_annotations`
6634 // instead.
6635 FaceAnnotations []*GoogleCloudVideointelligenceV1p3beta1FaceAnnotation `json:"faceAnnotations,omitempty"`
6636 // FaceDetectionAnnotations: Face detection annotations.
6637 FaceDetectionAnnotations []*GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation `json:"faceDetectionAnnotations,omitempty"`
6638 // FrameLabelAnnotations: Label annotations on frame level. There is exactly
6639 // one element for each unique label.
6640 FrameLabelAnnotations []*GoogleCloudVideointelligenceV1p3beta1LabelAnnotation `json:"frameLabelAnnotations,omitempty"`
6641 // InputUri: Video file location in Cloud Storage
6642 // (https://cloud.google.com/storage/).
6643 InputUri string `json:"inputUri,omitempty"`
6644 // LogoRecognitionAnnotations: Annotations for list of logos detected, tracked
6645 // and recognized in video.
6646 LogoRecognitionAnnotations []*GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation `json:"logoRecognitionAnnotations,omitempty"`
6647 // ObjectAnnotations: Annotations for list of objects detected and tracked in
6648 // video.
6649 ObjectAnnotations []*GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation `json:"objectAnnotations,omitempty"`
6650 // PersonDetectionAnnotations: Person detection annotations.
6651 PersonDetectionAnnotations []*GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation `json:"personDetectionAnnotations,omitempty"`
6652 // Segment: Video segment on which the annotation is run.
6653 Segment *GoogleCloudVideointelligenceV1p3beta1VideoSegment `json:"segment,omitempty"`
6654 // SegmentLabelAnnotations: Topical label annotations on video level or
6655 // user-specified segment level. There is exactly one element for each unique
6656 // label.
6657 SegmentLabelAnnotations []*GoogleCloudVideointelligenceV1p3beta1LabelAnnotation `json:"segmentLabelAnnotations,omitempty"`
6658 // SegmentPresenceLabelAnnotations: Presence label annotations on video level
6659 // or user-specified segment level. There is exactly one element for each
6660 // unique label. Compared to the existing topical `segment_label_annotations`,
6661 // this field presents more fine-grained, segment-level labels detected in
6662 // video content and is made available only when the client sets
6663 // `LabelDetectionConfig.model` to "builtin/latest" in the request.
6664 SegmentPresenceLabelAnnotations []*GoogleCloudVideointelligenceV1p3beta1LabelAnnotation `json:"segmentPresenceLabelAnnotations,omitempty"`
6665 // ShotAnnotations: Shot annotations. Each shot is represented as a video
6666 // segment.
6667 ShotAnnotations []*GoogleCloudVideointelligenceV1p3beta1VideoSegment `json:"shotAnnotations,omitempty"`
6668 // ShotLabelAnnotations: Topical label annotations on shot level. There is
6669 // exactly one element for each unique label.
6670 ShotLabelAnnotations []*GoogleCloudVideointelligenceV1p3beta1LabelAnnotation `json:"shotLabelAnnotations,omitempty"`
6671 // ShotPresenceLabelAnnotations: Presence label annotations on shot level.
6672 // There is exactly one element for each unique label. Compared to the existing
6673 // topical `shot_label_annotations`, this field presents more fine-grained,
6674 // shot-level labels detected in video content and is made available only when
6675 // the client sets `LabelDetectionConfig.model` to "builtin/latest" in the
6676 // request.
6677 ShotPresenceLabelAnnotations []*GoogleCloudVideointelligenceV1p3beta1LabelAnnotation `json:"shotPresenceLabelAnnotations,omitempty"`
6678 // SpeechTranscriptions: Speech transcription.
6679 SpeechTranscriptions []*GoogleCloudVideointelligenceV1p3beta1SpeechTranscription `json:"speechTranscriptions,omitempty"`
6680 // TextAnnotations: OCR text detection and tracking. Annotations for list of
6681 // detected text snippets. Each will have list of frame information associated
6682 // with it.
6683 TextAnnotations []*GoogleCloudVideointelligenceV1p3beta1TextAnnotation `json:"textAnnotations,omitempty"`
6684 // ForceSendFields is a list of field names (e.g.
6685 // "CelebrityRecognitionAnnotations") to unconditionally include in API
6686 // requests. By default, fields with empty or default values are omitted from
6687 // API requests. See
6688 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6689 // details.
6690 ForceSendFields []string `json:"-"`
6691 // NullFields is a list of field names (e.g. "CelebrityRecognitionAnnotations")
6692 // to include in API requests with the JSON null value. By default, fields with
6693 // empty values are omitted from API requests. See
6694 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6695 NullFields []string `json:"-"`
6696 }
6697
6698 func (s GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults) MarshalJSON() ([]byte, error) {
6699 type NoMethod GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults
6700 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6701 }
6702
6703 // GoogleCloudVideointelligenceV1p3beta1VideoSegment: Video segment.
6704 type GoogleCloudVideointelligenceV1p3beta1VideoSegment struct {
6705 // EndTimeOffset: Time-offset, relative to the beginning of the video,
6706 // corresponding to the end of the segment (inclusive).
6707 EndTimeOffset string `json:"endTimeOffset,omitempty"`
6708 // StartTimeOffset: Time-offset, relative to the beginning of the video,
6709 // corresponding to the start of the segment (inclusive).
6710 StartTimeOffset string `json:"startTimeOffset,omitempty"`
6711 // ForceSendFields is a list of field names (e.g. "EndTimeOffset") to
6712 // unconditionally include in API requests. By default, fields with empty or
6713 // default values are omitted from API requests. See
6714 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6715 // details.
6716 ForceSendFields []string `json:"-"`
6717 // NullFields is a list of field names (e.g. "EndTimeOffset") to include in API
6718 // requests with the JSON null value. By default, fields with empty values are
6719 // omitted from API requests. See
6720 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6721 NullFields []string `json:"-"`
6722 }
6723
6724 func (s GoogleCloudVideointelligenceV1p3beta1VideoSegment) MarshalJSON() ([]byte, error) {
6725 type NoMethod GoogleCloudVideointelligenceV1p3beta1VideoSegment
6726 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6727 }
6728
6729 // GoogleCloudVideointelligenceV1p3beta1WordInfo: Word-specific information for
6730 // recognized words. Word information is only included in the response when
6731 // certain request parameters are set, such as `enable_word_time_offsets`.
6732 type GoogleCloudVideointelligenceV1p3beta1WordInfo struct {
6733 // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A
6734 // higher number indicates an estimated greater likelihood that the recognized
6735 // words are correct. This field is set only for the top alternative. This
6736 // field is not guaranteed to be accurate and users should not rely on it to be
6737 // always provided. The default of 0.0 is a sentinel value indicating
6738 // `confidence` was not set.
6739 Confidence float64 `json:"confidence,omitempty"`
6740 // EndTime: Time offset relative to the beginning of the audio, and
6741 // corresponding to the end of the spoken word. This field is only set if
6742 // `enable_word_time_offsets=true` and only in the top hypothesis. This is an
6743 // experimental feature and the accuracy of the time offset can vary.
6744 EndTime string `json:"endTime,omitempty"`
6745 // SpeakerLabel: Output only. A distinct string value is assigned for every
6746 // speaker within the audio. This field specifies which one of those speakers
6747 // was detected to have spoken this word.
6748 SpeakerLabel string `json:"speakerLabel,omitempty"`
6749 // SpeakerTag: Output only. A distinct integer value is assigned for every
6750 // speaker within the audio. This field specifies which one of those speakers
6751 // was detected to have spoken this word. Value ranges from 1 up to
6752 // diarization_speaker_count, and is only set if speaker diarization is
6753 // enabled.
6754 SpeakerTag int64 `json:"speakerTag,omitempty"`
6755 // StartTime: Time offset relative to the beginning of the audio, and
6756 // corresponding to the start of the spoken word. This field is only set if
6757 // `enable_word_time_offsets=true` and only in the top hypothesis. This is an
6758 // experimental feature and the accuracy of the time offset can vary.
6759 StartTime string `json:"startTime,omitempty"`
6760 // Word: The word corresponding to this set of information.
6761 Word string `json:"word,omitempty"`
6762 // ForceSendFields is a list of field names (e.g. "Confidence") to
6763 // unconditionally include in API requests. By default, fields with empty or
6764 // default values are omitted from API requests. See
6765 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6766 // details.
6767 ForceSendFields []string `json:"-"`
6768 // NullFields is a list of field names (e.g. "Confidence") to include in API
6769 // requests with the JSON null value. By default, fields with empty values are
6770 // omitted from API requests. See
6771 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6772 NullFields []string `json:"-"`
6773 }
6774
6775 func (s GoogleCloudVideointelligenceV1p3beta1WordInfo) MarshalJSON() ([]byte, error) {
6776 type NoMethod GoogleCloudVideointelligenceV1p3beta1WordInfo
6777 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6778 }
6779
6780 func (s *GoogleCloudVideointelligenceV1p3beta1WordInfo) UnmarshalJSON(data []byte) error {
6781 type NoMethod GoogleCloudVideointelligenceV1p3beta1WordInfo
6782 var s1 struct {
6783 Confidence gensupport.JSONFloat64 `json:"confidence"`
6784 *NoMethod
6785 }
6786 s1.NoMethod = (*NoMethod)(s)
6787 if err := json.Unmarshal(data, &s1); err != nil {
6788 return err
6789 }
6790 s.Confidence = float64(s1.Confidence)
6791 return nil
6792 }
6793
6794 // GoogleLongrunningOperation: This resource represents a long-running
6795 // operation that is the result of a network API call.
6796 type GoogleLongrunningOperation struct {
6797 // Done: If the value is `false`, it means the operation is still in progress.
6798 // If `true`, the operation is completed, and either `error` or `response` is
6799 // available.
6800 Done bool `json:"done,omitempty"`
6801 // Error: The error result of the operation in case of failure or cancellation.
6802 Error *GoogleRpcStatus `json:"error,omitempty"`
6803 // Metadata: Service-specific metadata associated with the operation. It
6804 // typically contains progress information and common metadata such as create
6805 // time. Some services might not provide such metadata. Any method that returns
6806 // a long-running operation should document the metadata type, if any.
6807 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
6808 // Name: The server-assigned name, which is only unique within the same service
6809 // that originally returns it. If you use the default HTTP mapping, the `name`
6810 // should be a resource name ending with `operations/{unique_id}`.
6811 Name string `json:"name,omitempty"`
6812 // Response: The normal, successful response of the operation. If the original
6813 // method returns no data on success, such as `Delete`, the response is
6814 // `google.protobuf.Empty`. If the original method is standard
6815 // `Get`/`Create`/`Update`, the response should be the resource. For other
6816 // methods, the response should have the type `XxxResponse`, where `Xxx` is the
6817 // original method name. For example, if the original method name is
6818 // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
6819 Response googleapi.RawMessage `json:"response,omitempty"`
6820
6821 // ServerResponse contains the HTTP response code and headers from the server.
6822 googleapi.ServerResponse `json:"-"`
6823 // ForceSendFields is a list of field names (e.g. "Done") to unconditionally
6824 // include in API requests. By default, fields with empty or default values are
6825 // omitted from API requests. See
6826 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6827 // details.
6828 ForceSendFields []string `json:"-"`
6829 // NullFields is a list of field names (e.g. "Done") to include in API requests
6830 // with the JSON null value. By default, fields with empty values are omitted
6831 // from API requests. See
6832 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6833 NullFields []string `json:"-"`
6834 }
6835
6836 func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
6837 type NoMethod GoogleLongrunningOperation
6838 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6839 }
6840
6841 // GoogleRpcStatus: The `Status` type defines a logical error model that is
6842 // suitable for different programming environments, including REST APIs and RPC
6843 // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
6844 // contains three pieces of data: error code, error message, and error details.
6845 // You can find out more about this error model and how to work with it in the
6846 // API Design Guide (https://cloud.google.com/apis/design/errors).
6847 type GoogleRpcStatus struct {
6848 // Code: The status code, which should be an enum value of google.rpc.Code.
6849 Code int64 `json:"code,omitempty"`
6850 // Details: A list of messages that carry the error details. There is a common
6851 // set of message types for APIs to use.
6852 Details []googleapi.RawMessage `json:"details,omitempty"`
6853 // Message: A developer-facing error message, which should be in English. Any
6854 // user-facing error message should be localized and sent in the
6855 // google.rpc.Status.details field, or localized by the client.
6856 Message string `json:"message,omitempty"`
6857 // ForceSendFields is a list of field names (e.g. "Code") to unconditionally
6858 // include in API requests. By default, fields with empty or default values are
6859 // omitted from API requests. See
6860 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
6861 // details.
6862 ForceSendFields []string `json:"-"`
6863 // NullFields is a list of field names (e.g. "Code") to include in API requests
6864 // with the JSON null value. By default, fields with empty values are omitted
6865 // from API requests. See
6866 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
6867 NullFields []string `json:"-"`
6868 }
6869
6870 func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) {
6871 type NoMethod GoogleRpcStatus
6872 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
6873 }
6874
6875 type VideosAnnotateCall struct {
6876 s *Service
6877 googlecloudvideointelligencev1p2beta1Annotatevideorequest *GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest
6878 urlParams_ gensupport.URLParams
6879 ctx_ context.Context
6880 header_ http.Header
6881 }
6882
6883 // Annotate: Performs asynchronous video annotation. Progress and results can
6884 // be retrieved through the `google.longrunning.Operations` interface.
6885 // `Operation.metadata` contains `AnnotateVideoProgress` (progress).
6886 // `Operation.response` contains `AnnotateVideoResponse` (results).
6887 func (r *VideosService) Annotate(googlecloudvideointelligencev1p2beta1Annotatevideorequest *GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest) *VideosAnnotateCall {
6888 c := &VideosAnnotateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6889 c.googlecloudvideointelligencev1p2beta1Annotatevideorequest = googlecloudvideointelligencev1p2beta1Annotatevideorequest
6890 return c
6891 }
6892
6893 // Fields allows partial responses to be retrieved. See
6894 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
6895 // details.
6896 func (c *VideosAnnotateCall) Fields(s ...googleapi.Field) *VideosAnnotateCall {
6897 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6898 return c
6899 }
6900
6901 // Context sets the context to be used in this call's Do method.
6902 func (c *VideosAnnotateCall) Context(ctx context.Context) *VideosAnnotateCall {
6903 c.ctx_ = ctx
6904 return c
6905 }
6906
6907 // Header returns a http.Header that can be modified by the caller to add
6908 // headers to the request.
6909 func (c *VideosAnnotateCall) Header() http.Header {
6910 if c.header_ == nil {
6911 c.header_ = make(http.Header)
6912 }
6913 return c.header_
6914 }
6915
6916 func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) {
6917 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6918 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudvideointelligencev1p2beta1Annotatevideorequest)
6919 if err != nil {
6920 return nil, err
6921 }
6922 c.urlParams_.Set("alt", alt)
6923 c.urlParams_.Set("prettyPrint", "false")
6924 urls := googleapi.ResolveRelative(c.s.BasePath, "v1p2beta1/videos:annotate")
6925 urls += "?" + c.urlParams_.Encode()
6926 req, err := http.NewRequest("POST", urls, body)
6927 if err != nil {
6928 return nil, err
6929 }
6930 req.Header = reqHeaders
6931 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "videointelligence.videos.annotate", "request", internallog.HTTPRequest(req, body.Bytes()))
6932 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6933 }
6934
6935 // Do executes the "videointelligence.videos.annotate" call.
6936 // Any non-2xx status code is an error. Response headers are in either
6937 // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
6938 // returned at all) in error.(*googleapi.Error).Header. Use
6939 // googleapi.IsNotModified to check whether the returned error was because
6940 // http.StatusNotModified was returned.
6941 func (c *VideosAnnotateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
6942 gensupport.SetOptions(c.urlParams_, opts...)
6943 res, err := c.doRequest("json")
6944 if res != nil && res.StatusCode == http.StatusNotModified {
6945 if res.Body != nil {
6946 res.Body.Close()
6947 }
6948 return nil, gensupport.WrapError(&googleapi.Error{
6949 Code: res.StatusCode,
6950 Header: res.Header,
6951 })
6952 }
6953 if err != nil {
6954 return nil, err
6955 }
6956 defer googleapi.CloseBody(res)
6957 if err := googleapi.CheckResponse(res); err != nil {
6958 return nil, gensupport.WrapError(err)
6959 }
6960 ret := &GoogleLongrunningOperation{
6961 ServerResponse: googleapi.ServerResponse{
6962 Header: res.Header,
6963 HTTPStatusCode: res.StatusCode,
6964 },
6965 }
6966 target := &ret
6967 b, err := gensupport.DecodeResponseBytes(target, res)
6968 if err != nil {
6969 return nil, err
6970 }
6971 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "videointelligence.videos.annotate", "response", internallog.HTTPResponse(res, b))
6972 return ret, nil
6973 }