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
$msg->display_requirement()/$msg->display_requirement($value)Type:
Enum(Google::Cloud::Video::Stitcher::V1::CompanionAds::DisplayRequirement)Indicates how many of the companions should be displayed with the ad.
$msg->companions()/$msg->companions($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Companions::Companion)List of companion ads.
Enum: CompanionAds::DisplayRequirement
DISPLAY_REQUIREMENT_UNSPECIFIED=>0ALL=>1ANY=>2NONE=>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:
StringThe API necessary to communicate with the creative if available.
$msg->height_px()/$msg->height_px($value)Type:
Int32The pixel height of the placement slot for the intended creative.
$msg->width_px()/$msg->width_px($value)Type:
Int32The pixel width of the placement slot for the intended creative.
$msg->asset_height_px()/$msg->asset_height_px($value)Type:
Int32The pixel height of the creative.
$msg->expanded_height_px()/$msg->expanded_height_px($value)Type:
Int32The maximum pixel height of the creative in its expanded state.
$msg->asset_width_px()/$msg->asset_width_px($value)Type:
Int32The pixel width of the creative.
$msg->expanded_width_px()/$msg->expanded_width_px($value)Type:
Int32The maximum pixel width of the creative in its expanded state.
$msg->ad_slot_id()/$msg->ad_slot_id($value)Type:
StringThe 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:
StringThe 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:
StringURI 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:
StringURI to the static file for the ad resource.
$msg->creative_type()/$msg->creative_type($value)Type:
StringDescribes 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.