NAME

Google::Cloud::Video::Stitcher::V1::Companions - Compiled Protocol Buffers messages for google/cloud/video/stitcher/v1/companions.proto

SYNOPSIS

use Google::Cloud::Video::Stitcher::V1::Companions;

my $msg = Google::Cloud::Video::Stitcher::V1::Companions::CompanionAds->new({
    display_requirement => $display_requirement,
    companions => $companions,
});

# Read or update a field
my $val = $msg->display_requirement();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Video::Stitcher::V1::Companions::CompanionAds->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/video/stitcher/v1/companions.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Video::Stitcher::V1::Companions::CompanionAds

Metadata for companion ads.

Inherits from Protobuf::Message.

Accessors

Enum: CompanionAds::DisplayRequirement

  • DISPLAY_REQUIREMENT_UNSPECIFIED => 0

  • ALL => 1

  • ANY => 2

  • NONE => 3

Google::Cloud::Video::Stitcher::V1::Companions::Companion

Metadata for a companion.

Inherits from Protobuf::Message.

Accessors

  • $msg->iframe_ad_resource() / $msg->iframe_ad_resource($value)

    Type: Message (Google::Cloud::Video::Stitcher::V1::Companions::IframeAdResource)

    The IFrame ad resource associated with the companion ad.

  • $msg->static_ad_resource() / $msg->static_ad_resource($value)

    Type: Message (Google::Cloud::Video::Stitcher::V1::Companions::StaticAdResource)

    The static ad resource associated with the companion ad.

  • $msg->html_ad_resource() / $msg->html_ad_resource($value)

    Type: Message (Google::Cloud::Video::Stitcher::V1::Companions::HtmlAdResource)

    The HTML ad resource associated with the companion ad.

  • $msg->api_framework() / $msg->api_framework($value)

    Type: String

    The API necessary to communicate with the creative if available.

  • $msg->height_px() / $msg->height_px($value)

    Type: Int32

    The pixel height of the placement slot for the intended creative.

  • $msg->width_px() / $msg->width_px($value)

    Type: Int32

    The pixel width of the placement slot for the intended creative.

  • $msg->asset_height_px() / $msg->asset_height_px($value)

    Type: Int32

    The pixel height of the creative.

  • $msg->expanded_height_px() / $msg->expanded_height_px($value)

    Type: Int32

    The maximum pixel height of the creative in its expanded state.

  • $msg->asset_width_px() / $msg->asset_width_px($value)

    Type: Int32

    The pixel width of the creative.

  • $msg->expanded_width_px() / $msg->expanded_width_px($value)

    Type: Int32

    The maximum pixel width of the creative in its expanded state.

  • $msg->ad_slot_id() / $msg->ad_slot_id($value)

    Type: String

    The ID used to identify the desired placement on a publisher's page. Values to be used should be discussed between publishers and advertisers.

  • $msg->events() / $msg->events($value)

    Type: Message (Google::Cloud::Video::Stitcher::V1::Events::Event)

    The list of tracking events for the companion.

Google::Cloud::Video::Stitcher::V1::Companions::HtmlAdResource

Metadata for an HTML ad resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->html_source() / $msg->html_source($value)

    Type: String

    The HTML to display for the ad resource.

Google::Cloud::Video::Stitcher::V1::Companions::IframeAdResource

Metadata for an IFrame ad resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    URI source for an IFrame to display for the ad resource.

Google::Cloud::Video::Stitcher::V1::Companions::StaticAdResource

Metadata for a static ad resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    URI to the static file for the ad resource.

  • $msg->creative_type() / $msg->creative_type($value)

    Type: String

    Describes the MIME type of the ad resource.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Video::Stitcher::V1::Companions::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.