Class Companion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Companion.Builder>
com.google.cloud.video.stitcher.v1.Companion.Builder
- All Implemented Interfaces:
CompanionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Companion
public static final class Companion.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Companion.Builder>
implements CompanionOrBuilder
Metadata for a companion.Protobuf type
google.cloud.video.stitcher.v1.Companion-
Method Summary
Modifier and TypeMethodDescriptionaddAllEvents(Iterable<? extends Event> values) The list of tracking events for the companion.The list of tracking events for the companion.addEvents(int index, Event.Builder builderForValue) The list of tracking events for the companion.The list of tracking events for the companion.addEvents(Event.Builder builderForValue) The list of tracking events for the companion.The list of tracking events for the companion.addEventsBuilder(int index) The list of tracking events for the companion.build()clear()The ID used to identify the desired placement on a publisher's page.The API necessary to communicate with the creative if available.The pixel height of the creative.The pixel width of the creative.The list of tracking events for the companion.The maximum pixel height of the creative in its expanded state.The maximum pixel width of the creative in its expanded state.The pixel height of the placement slot for the intended creative.The HTML ad resource associated with the companion ad.The IFrame ad resource associated with the companion ad.The static ad resource associated with the companion ad.The pixel width of the placement slot for the intended creative.The ID used to identify the desired placement on a publisher's page.com.google.protobuf.ByteStringThe ID used to identify the desired placement on a publisher's page.The API necessary to communicate with the creative if available.com.google.protobuf.ByteStringThe API necessary to communicate with the creative if available.intThe pixel height of the creative.intThe pixel width of the creative.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEvents(int index) The list of tracking events for the companion.getEventsBuilder(int index) The list of tracking events for the companion.The list of tracking events for the companion.intThe list of tracking events for the companion.The list of tracking events for the companion.getEventsOrBuilder(int index) The list of tracking events for the companion.List<? extends EventOrBuilder>The list of tracking events for the companion.intThe maximum pixel height of the creative in its expanded state.intThe maximum pixel width of the creative in its expanded state.intThe pixel height of the placement slot for the intended creative.The HTML ad resource associated with the companion ad.The HTML ad resource associated with the companion ad.The HTML ad resource associated with the companion ad.The IFrame ad resource associated with the companion ad.The IFrame ad resource associated with the companion ad.The IFrame ad resource associated with the companion ad.The static ad resource associated with the companion ad.The static ad resource associated with the companion ad.The static ad resource associated with the companion ad.intThe pixel width of the placement slot for the intended creative.booleanThe HTML ad resource associated with the companion ad.booleanThe IFrame ad resource associated with the companion ad.booleanThe static ad resource associated with the companion ad.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The HTML ad resource associated with the companion ad.The IFrame ad resource associated with the companion ad.The static ad resource associated with the companion ad.removeEvents(int index) The list of tracking events for the companion.setAdSlotId(String value) The ID used to identify the desired placement on a publisher's page.setAdSlotIdBytes(com.google.protobuf.ByteString value) The ID used to identify the desired placement on a publisher's page.setApiFramework(String value) The API necessary to communicate with the creative if available.setApiFrameworkBytes(com.google.protobuf.ByteString value) The API necessary to communicate with the creative if available.setAssetHeightPx(int value) The pixel height of the creative.setAssetWidthPx(int value) The pixel width of the creative.The list of tracking events for the companion.setEvents(int index, Event.Builder builderForValue) The list of tracking events for the companion.setExpandedHeightPx(int value) The maximum pixel height of the creative in its expanded state.setExpandedWidthPx(int value) The maximum pixel width of the creative in its expanded state.setHeightPx(int value) The pixel height of the placement slot for the intended creative.setHtmlAdResource(HtmlAdResource value) The HTML ad resource associated with the companion ad.setHtmlAdResource(HtmlAdResource.Builder builderForValue) The HTML ad resource associated with the companion ad.The IFrame ad resource associated with the companion ad.setIframeAdResource(IframeAdResource.Builder builderForValue) The IFrame ad resource associated with the companion ad.The static ad resource associated with the companion ad.setStaticAdResource(StaticAdResource.Builder builderForValue) The static ad resource associated with the companion ad.setWidthPx(int value) The pixel width of the placement slot for the intended creative.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Companion.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Companion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Companion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Companion.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Companion.Builder>
-
mergeFrom
public Companion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Companion.Builder>- Throws:
IOException
-
getAdResourceCase
- Specified by:
getAdResourceCasein interfaceCompanionOrBuilder
-
clearAdResource
-
hasIframeAdResource
public boolean hasIframeAdResource()The IFrame ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;- Specified by:
hasIframeAdResourcein interfaceCompanionOrBuilder- Returns:
- Whether the iframeAdResource field is set.
-
getIframeAdResource
The IFrame ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;- Specified by:
getIframeAdResourcein interfaceCompanionOrBuilder- Returns:
- The iframeAdResource.
-
setIframeAdResource
The IFrame ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10; -
setIframeAdResource
The IFrame ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10; -
mergeIframeAdResource
The IFrame ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10; -
clearIframeAdResource
The IFrame ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10; -
getIframeAdResourceBuilder
The IFrame ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10; -
getIframeAdResourceOrBuilder
The IFrame ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;- Specified by:
getIframeAdResourceOrBuilderin interfaceCompanionOrBuilder
-
hasStaticAdResource
public boolean hasStaticAdResource()The static ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;- Specified by:
hasStaticAdResourcein interfaceCompanionOrBuilder- Returns:
- Whether the staticAdResource field is set.
-
getStaticAdResource
The static ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;- Specified by:
getStaticAdResourcein interfaceCompanionOrBuilder- Returns:
- The staticAdResource.
-
setStaticAdResource
The static ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11; -
setStaticAdResource
The static ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11; -
mergeStaticAdResource
The static ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11; -
clearStaticAdResource
The static ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11; -
getStaticAdResourceBuilder
The static ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11; -
getStaticAdResourceOrBuilder
The static ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;- Specified by:
getStaticAdResourceOrBuilderin interfaceCompanionOrBuilder
-
hasHtmlAdResource
public boolean hasHtmlAdResource()The HTML ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;- Specified by:
hasHtmlAdResourcein interfaceCompanionOrBuilder- Returns:
- Whether the htmlAdResource field is set.
-
getHtmlAdResource
The HTML ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;- Specified by:
getHtmlAdResourcein interfaceCompanionOrBuilder- Returns:
- The htmlAdResource.
-
setHtmlAdResource
The HTML ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12; -
setHtmlAdResource
The HTML ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12; -
mergeHtmlAdResource
The HTML ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12; -
clearHtmlAdResource
The HTML ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12; -
getHtmlAdResourceBuilder
The HTML ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12; -
getHtmlAdResourceOrBuilder
The HTML ad resource associated with the companion ad.
.google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;- Specified by:
getHtmlAdResourceOrBuilderin interfaceCompanionOrBuilder
-
getApiFramework
The API necessary to communicate with the creative if available.
string api_framework = 1;- Specified by:
getApiFrameworkin interfaceCompanionOrBuilder- Returns:
- The apiFramework.
-
getApiFrameworkBytes
public com.google.protobuf.ByteString getApiFrameworkBytes()The API necessary to communicate with the creative if available.
string api_framework = 1;- Specified by:
getApiFrameworkBytesin interfaceCompanionOrBuilder- Returns:
- The bytes for apiFramework.
-
setApiFramework
The API necessary to communicate with the creative if available.
string api_framework = 1;- Parameters:
value- The apiFramework to set.- Returns:
- This builder for chaining.
-
clearApiFramework
The API necessary to communicate with the creative if available.
string api_framework = 1;- Returns:
- This builder for chaining.
-
setApiFrameworkBytes
The API necessary to communicate with the creative if available.
string api_framework = 1;- Parameters:
value- The bytes for apiFramework to set.- Returns:
- This builder for chaining.
-
getHeightPx
public int getHeightPx()The pixel height of the placement slot for the intended creative.
int32 height_px = 2;- Specified by:
getHeightPxin interfaceCompanionOrBuilder- Returns:
- The heightPx.
-
setHeightPx
The pixel height of the placement slot for the intended creative.
int32 height_px = 2;- Parameters:
value- The heightPx to set.- Returns:
- This builder for chaining.
-
clearHeightPx
The pixel height of the placement slot for the intended creative.
int32 height_px = 2;- Returns:
- This builder for chaining.
-
getWidthPx
public int getWidthPx()The pixel width of the placement slot for the intended creative.
int32 width_px = 3;- Specified by:
getWidthPxin interfaceCompanionOrBuilder- Returns:
- The widthPx.
-
setWidthPx
The pixel width of the placement slot for the intended creative.
int32 width_px = 3;- Parameters:
value- The widthPx to set.- Returns:
- This builder for chaining.
-
clearWidthPx
The pixel width of the placement slot for the intended creative.
int32 width_px = 3;- Returns:
- This builder for chaining.
-
getAssetHeightPx
public int getAssetHeightPx()The pixel height of the creative.
int32 asset_height_px = 4;- Specified by:
getAssetHeightPxin interfaceCompanionOrBuilder- Returns:
- The assetHeightPx.
-
setAssetHeightPx
The pixel height of the creative.
int32 asset_height_px = 4;- Parameters:
value- The assetHeightPx to set.- Returns:
- This builder for chaining.
-
clearAssetHeightPx
The pixel height of the creative.
int32 asset_height_px = 4;- Returns:
- This builder for chaining.
-
getExpandedHeightPx
public int getExpandedHeightPx()The maximum pixel height of the creative in its expanded state.
int32 expanded_height_px = 5;- Specified by:
getExpandedHeightPxin interfaceCompanionOrBuilder- Returns:
- The expandedHeightPx.
-
setExpandedHeightPx
The maximum pixel height of the creative in its expanded state.
int32 expanded_height_px = 5;- Parameters:
value- The expandedHeightPx to set.- Returns:
- This builder for chaining.
-
clearExpandedHeightPx
The maximum pixel height of the creative in its expanded state.
int32 expanded_height_px = 5;- Returns:
- This builder for chaining.
-
getAssetWidthPx
public int getAssetWidthPx()The pixel width of the creative.
int32 asset_width_px = 6;- Specified by:
getAssetWidthPxin interfaceCompanionOrBuilder- Returns:
- The assetWidthPx.
-
setAssetWidthPx
The pixel width of the creative.
int32 asset_width_px = 6;- Parameters:
value- The assetWidthPx to set.- Returns:
- This builder for chaining.
-
clearAssetWidthPx
The pixel width of the creative.
int32 asset_width_px = 6;- Returns:
- This builder for chaining.
-
getExpandedWidthPx
public int getExpandedWidthPx()The maximum pixel width of the creative in its expanded state.
int32 expanded_width_px = 7;- Specified by:
getExpandedWidthPxin interfaceCompanionOrBuilder- Returns:
- The expandedWidthPx.
-
setExpandedWidthPx
The maximum pixel width of the creative in its expanded state.
int32 expanded_width_px = 7;- Parameters:
value- The expandedWidthPx to set.- Returns:
- This builder for chaining.
-
clearExpandedWidthPx
The maximum pixel width of the creative in its expanded state.
int32 expanded_width_px = 7;- Returns:
- This builder for chaining.
-
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;- Specified by:
getAdSlotIdin interfaceCompanionOrBuilder- Returns:
- The adSlotId.
-
getAdSlotIdBytes
public com.google.protobuf.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;- Specified by:
getAdSlotIdBytesin interfaceCompanionOrBuilder- Returns:
- The bytes for adSlotId.
-
setAdSlotId
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;- Parameters:
value- The adSlotId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setAdSlotIdBytes
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;- Parameters:
value- The bytes for adSlotId to set.- Returns:
- This builder for chaining.
-
getEventsList
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9;- Specified by:
getEventsListin interfaceCompanionOrBuilder
-
getEventsCount
public int getEventsCount()The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9;- Specified by:
getEventsCountin interfaceCompanionOrBuilder
-
getEvents
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9;- Specified by:
getEventsin interfaceCompanionOrBuilder
-
setEvents
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
setEvents
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
addEvents
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
addEvents
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
addEvents
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
addEvents
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
addAllEvents
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
clearEvents
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
removeEvents
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
getEventsBuilder
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
getEventsOrBuilder
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9;- Specified by:
getEventsOrBuilderin interfaceCompanionOrBuilder
-
getEventsOrBuilderList
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9;- Specified by:
getEventsOrBuilderListin interfaceCompanionOrBuilder
-
addEventsBuilder
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
addEventsBuilder
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9; -
getEventsBuilderList
The list of tracking events for the companion.
repeated .google.cloud.video.stitcher.v1.Event events = 9;
-