Class Video.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
com.google.ads.googleads.v18.resources.Video.Builder
All Implemented Interfaces:
VideoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Video

public static final class Video.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Video.Builder> implements VideoOrBuilder
 A video.
 
Protobuf type google.ads.googleads.v18.resources.Video
  • Method Details

    • 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<Video.Builder>
    • clear

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

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

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

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

      public Video.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<Video.Builder>
    • setField

      public Video.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<Video.Builder>
    • clearField

      public Video.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<Video.Builder>
    • clearOneof

      public Video.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<Video.Builder>
    • setRepeatedField

      public Video.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<Video.Builder>
    • addRepeatedField

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

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

      public Video.Builder mergeFrom(Video other)
    • isInitialized

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

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

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

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

      public Video.Builder setResourceName(String value)
       Output only. The resource name of the video.
       Video resource names have the form:
      
       `customers/{customer_id}/videos/{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 Video.Builder clearResourceName()
       Output only. The resource name of the video.
       Video resource names have the form:
      
       `customers/{customer_id}/videos/{video_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public Video.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the video.
       Video resource names have the form:
      
       `customers/{customer_id}/videos/{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.
    • hasId

      public boolean hasId()
       Output only. The ID of the video.
       
      optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasId in interface VideoOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       Output only. The ID of the video.
       
      optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface VideoOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Output only. The ID of the video.
       
      optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIdBytes in interface VideoOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Video.Builder setId(String value)
       Output only. The ID of the video.
       
      optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Video.Builder clearId()
       Output only. The ID of the video.
       
      optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIdBytes

      public Video.Builder setIdBytes(com.google.protobuf.ByteString value)
       Output only. The ID of the video.
       
      optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasChannelId

      public boolean hasChannelId()
       Output only. The owner channel id of the video.
       
      optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasChannelId in interface VideoOrBuilder
      Returns:
      Whether the channelId field is set.
    • getChannelId

      public String getChannelId()
       Output only. The owner channel id of the video.
       
      optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getChannelId in interface VideoOrBuilder
      Returns:
      The channelId.
    • getChannelIdBytes

      public com.google.protobuf.ByteString getChannelIdBytes()
       Output only. The owner channel id of the video.
       
      optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getChannelIdBytes in interface VideoOrBuilder
      Returns:
      The bytes for channelId.
    • setChannelId

      public Video.Builder setChannelId(String value)
       Output only. The owner channel id of the video.
       
      optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The channelId to set.
      Returns:
      This builder for chaining.
    • clearChannelId

      public Video.Builder clearChannelId()
       Output only. The owner channel id of the video.
       
      optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setChannelIdBytes

      public Video.Builder setChannelIdBytes(com.google.protobuf.ByteString value)
       Output only. The owner channel id of the video.
       
      optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for channelId to set.
      Returns:
      This builder for chaining.
    • hasDurationMillis

      public boolean hasDurationMillis()
       Output only. The duration of the video in milliseconds.
       
      optional int64 duration_millis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDurationMillis in interface VideoOrBuilder
      Returns:
      Whether the durationMillis field is set.
    • getDurationMillis

      public long getDurationMillis()
       Output only. The duration of the video in milliseconds.
       
      optional int64 duration_millis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDurationMillis in interface VideoOrBuilder
      Returns:
      The durationMillis.
    • setDurationMillis

      public Video.Builder setDurationMillis(long value)
       Output only. The duration of the video in milliseconds.
       
      optional int64 duration_millis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The durationMillis to set.
      Returns:
      This builder for chaining.
    • clearDurationMillis

      public Video.Builder clearDurationMillis()
       Output only. The duration of the video in milliseconds.
       
      optional int64 duration_millis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasTitle

      public boolean hasTitle()
       Output only. The title of the video.
       
      optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasTitle in interface VideoOrBuilder
      Returns:
      Whether the title field is set.
    • getTitle

      public String getTitle()
       Output only. The title of the video.
       
      optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTitle in interface VideoOrBuilder
      Returns:
      The title.
    • getTitleBytes

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

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

      public Video.Builder clearTitle()
       Output only. The title of the video.
       
      optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public Video.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Output only. The title of the video.
       
      optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Video.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<Video.Builder>
    • mergeUnknownFields

      public final Video.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<Video.Builder>