Class 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.GeneratedMessageV3.Builder<Companion.Builder>
    implements CompanionOrBuilder
     Metadata for a companion.
     
    Protobuf type google.cloud.video.stitcher.v1.Companion
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • clear

        public Companion.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • getDefaultInstanceForType

        public Companion getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Companion build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Companion buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Companion.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • setField

        public Companion.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • clearField

        public Companion.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • clearOneof

        public Companion.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • setRepeatedField

        public Companion.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • addRepeatedField

        public Companion.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • mergeFrom

        public Companion.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Companion.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • mergeFrom

        public Companion.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Companion.Builder>
        Throws:
        IOException
      • 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:
        hasIframeAdResource in interface CompanionOrBuilder
        Returns:
        Whether the iframeAdResource field is set.
      • getIframeAdResource

        public IframeAdResource getIframeAdResource()
         The IFrame ad resource associated with the companion ad.
         
        .google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;
        Specified by:
        getIframeAdResource in interface CompanionOrBuilder
        Returns:
        The iframeAdResource.
      • setIframeAdResource

        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;
      • setIframeAdResource

        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;
      • mergeIframeAdResource

        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;
      • clearIframeAdResource

        public Companion.Builder clearIframeAdResource()
         The IFrame ad resource associated with the companion ad.
         
        .google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;
      • getIframeAdResourceBuilder

        public IframeAdResource.Builder getIframeAdResourceBuilder()
         The IFrame ad resource associated with the companion ad.
         
        .google.cloud.video.stitcher.v1.IframeAdResource iframe_ad_resource = 10;
      • 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:
        hasStaticAdResource in interface CompanionOrBuilder
        Returns:
        Whether the staticAdResource field is set.
      • getStaticAdResource

        public StaticAdResource getStaticAdResource()
         The static ad resource associated with the companion ad.
         
        .google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;
        Specified by:
        getStaticAdResource in interface CompanionOrBuilder
        Returns:
        The staticAdResource.
      • setStaticAdResource

        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;
      • setStaticAdResource

        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;
      • mergeStaticAdResource

        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;
      • clearStaticAdResource

        public Companion.Builder clearStaticAdResource()
         The static ad resource associated with the companion ad.
         
        .google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;
      • getStaticAdResourceBuilder

        public StaticAdResource.Builder getStaticAdResourceBuilder()
         The static ad resource associated with the companion ad.
         
        .google.cloud.video.stitcher.v1.StaticAdResource static_ad_resource = 11;
      • 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:
        hasHtmlAdResource in interface CompanionOrBuilder
        Returns:
        Whether the htmlAdResource field is set.
      • getHtmlAdResource

        public HtmlAdResource getHtmlAdResource()
         The HTML ad resource associated with the companion ad.
         
        .google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;
        Specified by:
        getHtmlAdResource in interface CompanionOrBuilder
        Returns:
        The htmlAdResource.
      • setHtmlAdResource

        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;
      • setHtmlAdResource

        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;
      • mergeHtmlAdResource

        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;
      • clearHtmlAdResource

        public Companion.Builder clearHtmlAdResource()
         The HTML ad resource associated with the companion ad.
         
        .google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;
      • getHtmlAdResourceBuilder

        public HtmlAdResource.Builder getHtmlAdResourceBuilder()
         The HTML ad resource associated with the companion ad.
         
        .google.cloud.video.stitcher.v1.HtmlAdResource html_ad_resource = 12;
      • getApiFramework

        public String getApiFramework()
         The API necessary to communicate with the creative if available.
         
        string api_framework = 1;
        Specified by:
        getApiFramework in interface CompanionOrBuilder
        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:
        getApiFrameworkBytes in interface CompanionOrBuilder
        Returns:
        The bytes for apiFramework.
      • setApiFramework

        public Companion.Builder setApiFramework​(String value)
         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

        public Companion.Builder clearApiFramework()
         The API necessary to communicate with the creative if available.
         
        string api_framework = 1;
        Returns:
        This builder for chaining.
      • setApiFrameworkBytes

        public Companion.Builder setApiFrameworkBytes​(com.google.protobuf.ByteString value)
         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:
        getHeightPx in interface CompanionOrBuilder
        Returns:
        The heightPx.
      • setHeightPx

        public Companion.Builder setHeightPx​(int value)
         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

        public Companion.Builder 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:
        getWidthPx in interface CompanionOrBuilder
        Returns:
        The widthPx.
      • setWidthPx

        public Companion.Builder setWidthPx​(int value)
         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

        public Companion.Builder 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:
        getAssetHeightPx in interface CompanionOrBuilder
        Returns:
        The assetHeightPx.
      • setAssetHeightPx

        public Companion.Builder setAssetHeightPx​(int value)
         The pixel height of the creative.
         
        int32 asset_height_px = 4;
        Parameters:
        value - The assetHeightPx to set.
        Returns:
        This builder for chaining.
      • clearAssetHeightPx

        public Companion.Builder 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:
        getExpandedHeightPx in interface CompanionOrBuilder
        Returns:
        The expandedHeightPx.
      • setExpandedHeightPx

        public Companion.Builder setExpandedHeightPx​(int value)
         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

        public Companion.Builder 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:
        getAssetWidthPx in interface CompanionOrBuilder
        Returns:
        The assetWidthPx.
      • setAssetWidthPx

        public Companion.Builder setAssetWidthPx​(int value)
         The pixel width of the creative.
         
        int32 asset_width_px = 6;
        Parameters:
        value - The assetWidthPx to set.
        Returns:
        This builder for chaining.
      • clearAssetWidthPx

        public Companion.Builder 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:
        getExpandedWidthPx in interface CompanionOrBuilder
        Returns:
        The expandedWidthPx.
      • setExpandedWidthPx

        public Companion.Builder setExpandedWidthPx​(int value)
         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

        public Companion.Builder clearExpandedWidthPx()
         The maximum pixel width of the creative in its expanded state.
         
        int32 expanded_width_px = 7;
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getAdSlotId in interface CompanionOrBuilder
        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:
        getAdSlotIdBytes in interface CompanionOrBuilder
        Returns:
        The bytes for adSlotId.
      • setAdSlotId

        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;
        Parameters:
        value - The adSlotId to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setAdSlotIdBytes

        public Companion.Builder setAdSlotIdBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for adSlotId to set.
        Returns:
        This builder for chaining.
      • getEventsList

        public List<Event> getEventsList()
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
        Specified by:
        getEventsList in interface CompanionOrBuilder
      • getEventsCount

        public int getEventsCount()
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
        Specified by:
        getEventsCount in interface CompanionOrBuilder
      • getEvents

        public Event getEvents​(int index)
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
        Specified by:
        getEvents in interface CompanionOrBuilder
      • setEvents

        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;
      • setEvents

        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;
      • addEvents

        public Companion.Builder addEvents​(Event value)
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
      • addEvents

        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;
      • addEvents

        public Companion.Builder addEvents​(Event.Builder builderForValue)
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
      • addEvents

        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;
      • addAllEvents

        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;
      • clearEvents

        public Companion.Builder clearEvents()
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
      • removeEvents

        public Companion.Builder removeEvents​(int index)
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
      • getEventsBuilder

        public Event.Builder getEventsBuilder​(int index)
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
      • getEventsOrBuilder

        public EventOrBuilder getEventsOrBuilder​(int index)
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
        Specified by:
        getEventsOrBuilder in interface CompanionOrBuilder
      • addEventsBuilder

        public Event.Builder addEventsBuilder()
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
      • addEventsBuilder

        public Event.Builder addEventsBuilder​(int index)
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
      • getEventsBuilderList

        public List<Event.Builder> getEventsBuilderList()
         The list of tracking events for the companion.
         
        repeated .google.cloud.video.stitcher.v1.Event events = 9;
      • setUnknownFields

        public final Companion.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>
      • mergeUnknownFields

        public final Companion.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Companion.Builder>