View Source GoogleApi.ContentWarehouse.V1.Model.ImageBaseVideoPreviewMetadata (google_api_content_warehouse v0.4.0)

This message is used internally in Amarna and is also used to store information in the VideoWebAttachment portion of the websearch index. Only the following fields will be used in the index: VideoPreviewType type int32 width int32 height byte byte_size If more fields are added, please update this list.

Attributes

  • byteSize (type: integer(), default: nil) - Size of the stored preview.
  • docid (type: String.t, default: nil) - 64 bit docid of the original video.
  • duration (type: integer(), default: nil) - TODO (yzliu): consider using duration_ms as field name since it is number of milliseconds. Duration of the preview in ms.
  • expirationTimestampMicros (type: String.t, default: nil) - Expiration timestamp of preview in microseconds since epoch.
  • fprint (type: String.t, default: nil) - LINT.ThenChange(//depot/google3/video/crawl/indexing/signal_combiner.cc:video_preview) Fingerprint of the preview.
  • height (type: integer(), default: nil) - Height of the stored preview.
  • mimeType (type: String.t, default: nil) - Mime type of the preview ("video/mp4").
  • state (type: String.t, default: nil) - Indicates the state in Venom for this preview type.
  • timestamp (type: integer(), default: nil) - Timestamp of start of preview in ms.
  • type (type: String.t, default: nil) - LINT.IfChange
  • videoSegmentEndUs (type: String.t, default: nil) - The end timestamp of the video segment in microseconds that this preview is generated from. Used for segmented video previews.
  • videoSegmentStartUs (type: String.t, default: nil) - The start timestamp of the video segment in microseconds that this preview is generated from. Used for segmented video previews.
  • width (type: integer(), default: nil) - Width of the stored preview.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.ImageBaseVideoPreviewMetadata{
  byteSize: integer() | nil,
  docid: String.t() | nil,
  duration: integer() | nil,
  expirationTimestampMicros: String.t() | nil,
  fprint: String.t() | nil,
  height: integer() | nil,
  mimeType: String.t() | nil,
  state: String.t() | nil,
  timestamp: integer() | nil,
  type: String.t() | nil,
  videoSegmentEndUs: String.t() | nil,
  videoSegmentStartUs: String.t() | nil,
  width: integer() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.