Class CompanionAds.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CompanionAds.Builder>
com.google.cloud.video.stitcher.v1.CompanionAds.Builder
All Implemented Interfaces:
CompanionAdsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CompanionAds

public static final class CompanionAds.Builder extends com.google.protobuf.GeneratedMessage.Builder<CompanionAds.Builder> implements CompanionAdsOrBuilder
 Metadata for companion ads.
 
Protobuf type google.cloud.video.stitcher.v1.CompanionAds
  • Method Details

    • getDescriptor

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

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

      public CompanionAds.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.GeneratedMessage.Builder<CompanionAds.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.GeneratedMessage.Builder<CompanionAds.Builder>
    • getDefaultInstanceForType

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

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

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

      public CompanionAds.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<CompanionAds.Builder>
    • mergeFrom

      public CompanionAds.Builder mergeFrom(CompanionAds other)
    • isInitialized

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

      public CompanionAds.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<CompanionAds.Builder>
      Throws:
      IOException
    • getDisplayRequirementValue

      public int getDisplayRequirementValue()
       Indicates how many of the companions should be displayed with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds.DisplayRequirement display_requirement = 1;
      Specified by:
      getDisplayRequirementValue in interface CompanionAdsOrBuilder
      Returns:
      The enum numeric value on the wire for displayRequirement.
    • setDisplayRequirementValue

      public CompanionAds.Builder setDisplayRequirementValue(int value)
       Indicates how many of the companions should be displayed with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds.DisplayRequirement display_requirement = 1;
      Parameters:
      value - The enum numeric value on the wire for displayRequirement to set.
      Returns:
      This builder for chaining.
    • getDisplayRequirement

      public CompanionAds.DisplayRequirement getDisplayRequirement()
       Indicates how many of the companions should be displayed with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds.DisplayRequirement display_requirement = 1;
      Specified by:
      getDisplayRequirement in interface CompanionAdsOrBuilder
      Returns:
      The displayRequirement.
    • setDisplayRequirement

      public CompanionAds.Builder setDisplayRequirement(CompanionAds.DisplayRequirement value)
       Indicates how many of the companions should be displayed with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds.DisplayRequirement display_requirement = 1;
      Parameters:
      value - The displayRequirement to set.
      Returns:
      This builder for chaining.
    • clearDisplayRequirement

      public CompanionAds.Builder clearDisplayRequirement()
       Indicates how many of the companions should be displayed with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds.DisplayRequirement display_requirement = 1;
      Returns:
      This builder for chaining.
    • getCompanionsList

      public List<Companion> getCompanionsList()
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
      Specified by:
      getCompanionsList in interface CompanionAdsOrBuilder
    • getCompanionsCount

      public int getCompanionsCount()
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
      Specified by:
      getCompanionsCount in interface CompanionAdsOrBuilder
    • getCompanions

      public Companion getCompanions(int index)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
      Specified by:
      getCompanions in interface CompanionAdsOrBuilder
    • setCompanions

      public CompanionAds.Builder setCompanions(int index, Companion value)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • setCompanions

      public CompanionAds.Builder setCompanions(int index, Companion.Builder builderForValue)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • addCompanions

      public CompanionAds.Builder addCompanions(Companion value)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • addCompanions

      public CompanionAds.Builder addCompanions(int index, Companion value)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • addCompanions

      public CompanionAds.Builder addCompanions(Companion.Builder builderForValue)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • addCompanions

      public CompanionAds.Builder addCompanions(int index, Companion.Builder builderForValue)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • addAllCompanions

      public CompanionAds.Builder addAllCompanions(Iterable<? extends Companion> values)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • clearCompanions

      public CompanionAds.Builder clearCompanions()
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • removeCompanions

      public CompanionAds.Builder removeCompanions(int index)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • getCompanionsBuilder

      public Companion.Builder getCompanionsBuilder(int index)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • getCompanionsOrBuilder

      public CompanionOrBuilder getCompanionsOrBuilder(int index)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
      Specified by:
      getCompanionsOrBuilder in interface CompanionAdsOrBuilder
    • getCompanionsOrBuilderList

      public List<? extends CompanionOrBuilder> getCompanionsOrBuilderList()
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
      Specified by:
      getCompanionsOrBuilderList in interface CompanionAdsOrBuilder
    • addCompanionsBuilder

      public Companion.Builder addCompanionsBuilder()
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • addCompanionsBuilder

      public Companion.Builder addCompanionsBuilder(int index)
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;
    • getCompanionsBuilderList

      public List<Companion.Builder> getCompanionsBuilderList()
       List of companion ads.
       
      repeated .google.cloud.video.stitcher.v1.Companion companions = 2;