Class Companion.Builder (0.43.0)

public static final class Companion.Builder extends GeneratedMessageV3.Builder<Companion.Builder> implements CompanionOrBuilder

Metadata for a companion.

Protobuf type google.cloud.video.stitcher.v1.Companion

Implements

CompanionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllEvents(Iterable<? extends Event> values)

public Companion.Builder addAllEvents(Iterable<? extends Event> values)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameter
Name Description
values Iterable<? extends com.google.cloud.video.stitcher.v1.Event>
Returns
Type Description
Companion.Builder

addEvents(Event value)

public Companion.Builder addEvents(Event value)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameter
Name Description
value Event
Returns
Type Description
Companion.Builder

addEvents(Event.Builder builderForValue)

public Companion.Builder addEvents(Event.Builder builderForValue)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameter
Name Description
builderForValue Event.Builder
Returns
Type Description
Companion.Builder

addEvents(int index, Event value)

public Companion.Builder addEvents(int index, Event value)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameters
Name Description
index int
value Event
Returns
Type Description
Companion.Builder

addEvents(int index, Event.Builder builderForValue)

public Companion.Builder addEvents(int index, Event.Builder builderForValue)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameters
Name Description
index int
builderForValue Event.Builder
Returns
Type Description
Companion.Builder

addEventsBuilder()

public Event.Builder addEventsBuilder()

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Returns
Type Description
Event.Builder

addEventsBuilder(int index)

public Event.Builder addEventsBuilder(int index)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameter
Name Description
index int
Returns
Type Description
Event.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Companion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Companion.Builder
Overrides

build()

public Companion build()
Returns
Type Description
Companion

buildPartial()

public Companion buildPartial()
Returns
Type Description
Companion

clear()

public Companion.Builder clear()
Returns
Type Description
Companion.Builder
Overrides

clearAdResource()

public Companion.Builder clearAdResource()
Returns
Type Description
Companion.Builder

clearAdSlotId()

public Companion.Builder clearAdSlotId()

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

string ad_slot_id = 8;

Returns
Type Description
Companion.Builder

This builder for chaining.

clearApiFramework()

public Companion.Builder clearApiFramework()

The API necessary to communicate with the creative if available.

string api_framework = 1;

Returns
Type Description
Companion.Builder

This builder for chaining.

clearAssetHeightPx()

public Companion.Builder clearAssetHeightPx()

The pixel height of the creative.

int32 asset_height_px = 4;

Returns
Type Description
Companion.Builder

This builder for chaining.

clearAssetWidthPx()

public Companion.Builder clearAssetWidthPx()

The pixel width of the creative.

int32 asset_width_px = 6;

Returns
Type Description
Companion.Builder

This builder for chaining.

clearEvents()

public Companion.Builder clearEvents()

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Returns
Type Description
Companion.Builder

clearExpandedHeightPx()

public Companion.Builder clearExpandedHeightPx()

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

int32 expanded_height_px = 5;

Returns
Type Description
Companion.Builder

This builder for chaining.

clearExpandedWidthPx()

public Companion.Builder clearExpandedWidthPx()

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

int32 expanded_width_px = 7;

Returns
Type Description
Companion.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Companion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Companion.Builder
Overrides

clearHeightPx()

public Companion.Builder clearHeightPx()

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

int32 height_px = 2;

Returns
Type Description
Companion.Builder

This builder for chaining.

clearHtmlAdResource()

public Companion.Builder clearHtmlAdResource()

The HTML ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;

Returns
Type Description
Companion.Builder

clearIframeAdResource()

public Companion.Builder clearIframeAdResource()

The IFrame ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;

Returns
Type Description
Companion.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Companion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Companion.Builder
Overrides

clearStaticAdResource()

public Companion.Builder clearStaticAdResource()

The static ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;

Returns
Type Description
Companion.Builder

clearWidthPx()

public Companion.Builder clearWidthPx()

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

int32 width_px = 3;

Returns
Type Description
Companion.Builder

This builder for chaining.

clone()

public Companion.Builder clone()
Returns
Type Description
Companion.Builder
Overrides

getAdResourceCase()

public Companion.AdResourceCase getAdResourceCase()
Returns
Type Description
Companion.AdResourceCase

getAdSlotId()

public String getAdSlotId()

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

string ad_slot_id = 8;

Returns
Type Description
String

The adSlotId.

getAdSlotIdBytes()

public ByteString getAdSlotIdBytes()

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

string ad_slot_id = 8;

Returns
Type Description
ByteString

The bytes for adSlotId.

getApiFramework()

public String getApiFramework()

The API necessary to communicate with the creative if available.

string api_framework = 1;

Returns
Type Description
String

The apiFramework.

getApiFrameworkBytes()

public ByteString getApiFrameworkBytes()

The API necessary to communicate with the creative if available.

string api_framework = 1;

Returns
Type Description
ByteString

The bytes for apiFramework.

getAssetHeightPx()

public int getAssetHeightPx()

The pixel height of the creative.

int32 asset_height_px = 4;

Returns
Type Description
int

The assetHeightPx.

getAssetWidthPx()

public int getAssetWidthPx()

The pixel width of the creative.

int32 asset_width_px = 6;

Returns
Type Description
int

The assetWidthPx.

getDefaultInstanceForType()

public Companion getDefaultInstanceForType()
Returns
Type Description
Companion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEvents(int index)

public Event getEvents(int index)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameter
Name Description
index int
Returns
Type Description
Event

getEventsBuilder(int index)

public Event.Builder getEventsBuilder(int index)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameter
Name Description
index int
Returns
Type Description
Event.Builder

getEventsBuilderList()

public List<Event.Builder> getEventsBuilderList()

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Returns
Type Description
List<Builder>

getEventsCount()

public int getEventsCount()

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Returns
Type Description
int

getEventsList()

public List<Event> getEventsList()

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Returns
Type Description
List<Event>

getEventsOrBuilder(int index)

public EventOrBuilder getEventsOrBuilder(int index)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameter
Name Description
index int
Returns
Type Description
EventOrBuilder

getEventsOrBuilderList()

public List<? extends EventOrBuilder> getEventsOrBuilderList()

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Returns
Type Description
List<? extends com.google.cloud.video.stitcher.v1.EventOrBuilder>

getExpandedHeightPx()

public int getExpandedHeightPx()

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

int32 expanded_height_px = 5;

Returns
Type Description
int

The expandedHeightPx.

getExpandedWidthPx()

public int getExpandedWidthPx()

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

int32 expanded_width_px = 7;

Returns
Type Description
int

The expandedWidthPx.

getHeightPx()

public int getHeightPx()

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

int32 height_px = 2;

Returns
Type Description
int

The heightPx.

getHtmlAdResource()

public HtmlAdResource getHtmlAdResource()

The HTML ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;

Returns
Type Description
HtmlAdResource

The htmlAdResource.

getHtmlAdResourceBuilder()

public HtmlAdResource.Builder getHtmlAdResourceBuilder()

The HTML ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;

Returns
Type Description
HtmlAdResource.Builder

getHtmlAdResourceOrBuilder()

public HtmlAdResourceOrBuilder getHtmlAdResourceOrBuilder()

The HTML ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;

Returns
Type Description
HtmlAdResourceOrBuilder

getIframeAdResource()

public IframeAdResource getIframeAdResource()

The IFrame ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;

Returns
Type Description
IframeAdResource

The iframeAdResource.

getIframeAdResourceBuilder()

public IframeAdResource.Builder getIframeAdResourceBuilder()

The IFrame ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;

Returns
Type Description
IframeAdResource.Builder

getIframeAdResourceOrBuilder()

public IframeAdResourceOrBuilder getIframeAdResourceOrBuilder()

The IFrame ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;

Returns
Type Description
IframeAdResourceOrBuilder

getStaticAdResource()

public StaticAdResource getStaticAdResource()

The static ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;

Returns
Type Description
StaticAdResource

The staticAdResource.

getStaticAdResourceBuilder()

public StaticAdResource.Builder getStaticAdResourceBuilder()

The static ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;

Returns
Type Description
StaticAdResource.Builder

getStaticAdResourceOrBuilder()

public StaticAdResourceOrBuilder getStaticAdResourceOrBuilder()

The static ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;

Returns
Type Description
StaticAdResourceOrBuilder

getWidthPx()

public int getWidthPx()

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

int32 width_px = 3;

Returns
Type Description
int

The widthPx.

hasHtmlAdResource()

public boolean hasHtmlAdResource()

The HTML ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;

Returns
Type Description
boolean

Whether the htmlAdResource field is set.

hasIframeAdResource()

public boolean hasIframeAdResource()

The IFrame ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;

Returns
Type Description
boolean

Whether the iframeAdResource field is set.

hasStaticAdResource()

public boolean hasStaticAdResource()

The static ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;

Returns
Type Description
boolean

Whether the staticAdResource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Companion other)

public Companion.Builder mergeFrom(Companion other)
Parameter
Name Description
other Companion
Returns
Type Description
Companion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Companion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Companion.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Companion.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Companion.Builder
Overrides

mergeHtmlAdResource(HtmlAdResource value)

public Companion.Builder mergeHtmlAdResource(HtmlAdResource value)

The HTML ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;

Parameter
Name Description
value HtmlAdResource
Returns
Type Description
Companion.Builder

mergeIframeAdResource(IframeAdResource value)

public Companion.Builder mergeIframeAdResource(IframeAdResource value)

The IFrame ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;

Parameter
Name Description
value IframeAdResource
Returns
Type Description
Companion.Builder

mergeStaticAdResource(StaticAdResource value)

public Companion.Builder mergeStaticAdResource(StaticAdResource value)

The static ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;

Parameter
Name Description
value StaticAdResource
Returns
Type Description
Companion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Companion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Companion.Builder
Overrides

removeEvents(int index)

public Companion.Builder removeEvents(int index)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameter
Name Description
index int
Returns
Type Description
Companion.Builder

setAdSlotId(String value)

public Companion.Builder setAdSlotId(String value)

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

string ad_slot_id = 8;

Parameter
Name Description
value String

The adSlotId to set.

Returns
Type Description
Companion.Builder

This builder for chaining.

setAdSlotIdBytes(ByteString value)

public Companion.Builder setAdSlotIdBytes(ByteString value)

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

string ad_slot_id = 8;

Parameter
Name Description
value ByteString

The bytes for adSlotId to set.

Returns
Type Description
Companion.Builder

This builder for chaining.

setApiFramework(String value)

public Companion.Builder setApiFramework(String value)

The API necessary to communicate with the creative if available.

string api_framework = 1;

Parameter
Name Description
value String

The apiFramework to set.

Returns
Type Description
Companion.Builder

This builder for chaining.

setApiFrameworkBytes(ByteString value)

public Companion.Builder setApiFrameworkBytes(ByteString value)

The API necessary to communicate with the creative if available.

string api_framework = 1;

Parameter
Name Description
value ByteString

The bytes for apiFramework to set.

Returns
Type Description
Companion.Builder

This builder for chaining.

setAssetHeightPx(int value)

public Companion.Builder setAssetHeightPx(int value)

The pixel height of the creative.

int32 asset_height_px = 4;

Parameter
Name Description
value int

The assetHeightPx to set.

Returns
Type Description
Companion.Builder

This builder for chaining.

setAssetWidthPx(int value)

public Companion.Builder setAssetWidthPx(int value)

The pixel width of the creative.

int32 asset_width_px = 6;

Parameter
Name Description
value int

The assetWidthPx to set.

Returns
Type Description
Companion.Builder

This builder for chaining.

setEvents(int index, Event value)

public Companion.Builder setEvents(int index, Event value)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameters
Name Description
index int
value Event
Returns
Type Description
Companion.Builder

setEvents(int index, Event.Builder builderForValue)

public Companion.Builder setEvents(int index, Event.Builder builderForValue)

The list of tracking events for the companion.

repeated .google.cloud.video.stitcher.v1.Event events = 9;

Parameters
Name Description
index int
builderForValue Event.Builder
Returns
Type Description
Companion.Builder

setExpandedHeightPx(int value)

public Companion.Builder setExpandedHeightPx(int value)

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

int32 expanded_height_px = 5;

Parameter
Name Description
value int

The expandedHeightPx to set.

Returns
Type Description
Companion.Builder

This builder for chaining.

setExpandedWidthPx(int value)

public Companion.Builder setExpandedWidthPx(int value)

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

int32 expanded_width_px = 7;

Parameter
Name Description
value int

The expandedWidthPx to set.

Returns
Type Description
Companion.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Companion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Companion.Builder
Overrides

setHeightPx(int value)

public Companion.Builder setHeightPx(int value)

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

int32 height_px = 2;

Parameter
Name Description
value int

The heightPx to set.

Returns
Type Description
Companion.Builder

This builder for chaining.

setHtmlAdResource(HtmlAdResource value)

public Companion.Builder setHtmlAdResource(HtmlAdResource value)

The HTML ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;

Parameter
Name Description
value HtmlAdResource
Returns
Type Description
Companion.Builder

setHtmlAdResource(HtmlAdResource.Builder builderForValue)

public Companion.Builder setHtmlAdResource(HtmlAdResource.Builder builderForValue)

The HTML ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;

Parameter
Name Description
builderForValue HtmlAdResource.Builder
Returns
Type Description
Companion.Builder

setIframeAdResource(IframeAdResource value)

public Companion.Builder setIframeAdResource(IframeAdResource value)

The IFrame ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;

Parameter
Name Description
value IframeAdResource
Returns
Type Description
Companion.Builder

setIframeAdResource(IframeAdResource.Builder builderForValue)

public Companion.Builder setIframeAdResource(IframeAdResource.Builder builderForValue)

The IFrame ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;

Parameter
Name Description
builderForValue IframeAdResource.Builder
Returns
Type Description
Companion.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Companion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Companion.Builder
Overrides

setStaticAdResource(StaticAdResource value)

public Companion.Builder setStaticAdResource(StaticAdResource value)

The static ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;

Parameter
Name Description
value StaticAdResource
Returns
Type Description
Companion.Builder

setStaticAdResource(StaticAdResource.Builder builderForValue)

public Companion.Builder setStaticAdResource(StaticAdResource.Builder builderForValue)

The static ad resource associated with the companion ad.

.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;

Parameter
Name Description
builderForValue StaticAdResource.Builder
Returns
Type Description
Companion.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Companion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Companion.Builder
Overrides

setWidthPx(int value)

public Companion.Builder setWidthPx(int value)

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

int32 width_px = 3;

Parameter
Name Description
value int

The widthPx to set.

Returns
Type Description
Companion.Builder

This builder for chaining.