Class VideoEnhancement.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoEnhancement.Builder>
com.google.ads.googleads.v23.resources.VideoEnhancement.Builder
All Implemented Interfaces:
VideoEnhancementOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VideoEnhancement

public static final class VideoEnhancement.Builder extends com.google.protobuf.GeneratedMessage.Builder<VideoEnhancement.Builder> implements VideoEnhancementOrBuilder
 Represents a video that can include both advertiser uploaded videos or
 enhancements generated from the advertiser uploaded videos. Only publicly
 available videos are returned.

 Each row in this resource represents either the video uploaded by the
 advertiser or each specific variation of it. In contrast, the `Video`
 resource represents only the advertiser-provided video and would aggregate
 metrics across all its variations (including enhancements).
 {-- next tag to use: 5 --}
 
Protobuf type google.ads.googleads.v23.resources.VideoEnhancement
  • 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<VideoEnhancement.Builder>
    • clear

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

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

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

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

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

      public VideoEnhancement.Builder mergeFrom(VideoEnhancement other)
    • isInitialized

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

      public VideoEnhancement.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<VideoEnhancement.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       Output only. The resource name of the video enhancement.
       Video enhancement resource names have the form:
      
       `customers/{customer_id}/videoEnhancements/{video_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface VideoEnhancementOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Output only. The resource name of the video enhancement.
       Video enhancement resource names have the form:
      
       `customers/{customer_id}/videoEnhancements/{video_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface VideoEnhancementOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public VideoEnhancement.Builder setResourceName(String value)
       Output only. The resource name of the video enhancement.
       Video enhancement resource names have the form:
      
       `customers/{customer_id}/videoEnhancements/{video_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public VideoEnhancement.Builder clearResourceName()
       Output only. The resource name of the video enhancement.
       Video enhancement resource names have the form:
      
       `customers/{customer_id}/videoEnhancements/{video_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public VideoEnhancement.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the video enhancement.
       Video enhancement resource names have the form:
      
       `customers/{customer_id}/videoEnhancements/{video_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getDurationMillis

      public long getDurationMillis()
       Output only. Duration of this video, in milliseconds.
       
      int64 duration_millis = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDurationMillis in interface VideoEnhancementOrBuilder
      Returns:
      The durationMillis.
    • setDurationMillis

      public VideoEnhancement.Builder setDurationMillis(long value)
       Output only. Duration of this video, in milliseconds.
       
      int64 duration_millis = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The durationMillis to set.
      Returns:
      This builder for chaining.
    • clearDurationMillis

      public VideoEnhancement.Builder clearDurationMillis()
       Output only. Duration of this video, in milliseconds.
       
      int64 duration_millis = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getSourceValue

      public int getSourceValue()
       Output only. The source of the video (e.g. advertiser or enhanced by Google
       Ads).
       
      .google.ads.googleads.v23.enums.VideoEnhancementSourceEnum.VideoEnhancementSource source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceValue in interface VideoEnhancementOrBuilder
      Returns:
      The enum numeric value on the wire for source.
    • setSourceValue

      public VideoEnhancement.Builder setSourceValue(int value)
       Output only. The source of the video (e.g. advertiser or enhanced by Google
       Ads).
       
      .google.ads.googleads.v23.enums.VideoEnhancementSourceEnum.VideoEnhancementSource source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for source to set.
      Returns:
      This builder for chaining.
    • getSource

       Output only. The source of the video (e.g. advertiser or enhanced by Google
       Ads).
       
      .google.ads.googleads.v23.enums.VideoEnhancementSourceEnum.VideoEnhancementSource source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSource in interface VideoEnhancementOrBuilder
      Returns:
      The source.
    • setSource

       Output only. The source of the video (e.g. advertiser or enhanced by Google
       Ads).
       
      .google.ads.googleads.v23.enums.VideoEnhancementSourceEnum.VideoEnhancementSource source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The source to set.
      Returns:
      This builder for chaining.
    • clearSource

      public VideoEnhancement.Builder clearSource()
       Output only. The source of the video (e.g. advertiser or enhanced by Google
       Ads).
       
      .google.ads.googleads.v23.enums.VideoEnhancementSourceEnum.VideoEnhancementSource source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getTitle

      public String getTitle()
       Output only. Title of this video.
       
      string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTitle in interface VideoEnhancementOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Output only. Title of this video.
       
      string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTitleBytes in interface VideoEnhancementOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public VideoEnhancement.Builder setTitle(String value)
       Output only. Title of this video.
       
      string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public VideoEnhancement.Builder clearTitle()
       Output only. Title of this video.
       
      string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public VideoEnhancement.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Output only. Title of this video.
       
      string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.