Class VideoCharacteristics.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoCharacteristics.Builder>
com.google.cloud.discoveryengine.v1alpha.VideoCharacteristics.Builder
All Implemented Interfaces:
VideoCharacteristicsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VideoCharacteristics

public static final class VideoCharacteristics.Builder extends com.google.protobuf.GeneratedMessage.Builder<VideoCharacteristics.Builder> implements VideoCharacteristicsOrBuilder
 Standard characteristics of a video media view.
 
Protobuf type google.cloud.discoveryengine.v1alpha.VideoCharacteristics
  • 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<VideoCharacteristics.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<VideoCharacteristics.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<VideoCharacteristics.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public VideoCharacteristics.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<VideoCharacteristics.Builder>
      Throws:
      IOException
    • getWidth

      public int getWidth()
       Output only. Video width in pixels.
       
      int32 width = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWidth in interface VideoCharacteristicsOrBuilder
      Returns:
      The width.
    • setWidth

      public VideoCharacteristics.Builder setWidth(int value)
       Output only. Video width in pixels.
       
      int32 width = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The width to set.
      Returns:
      This builder for chaining.
    • clearWidth

      public VideoCharacteristics.Builder clearWidth()
       Output only. Video width in pixels.
       
      int32 width = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getHeight

      public int getHeight()
       Output only. Video height in pixels.
       
      int32 height = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHeight in interface VideoCharacteristicsOrBuilder
      Returns:
      The height.
    • setHeight

      public VideoCharacteristics.Builder setHeight(int value)
       Output only. Video height in pixels.
       
      int32 height = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The height to set.
      Returns:
      This builder for chaining.
    • clearHeight

      public VideoCharacteristics.Builder clearHeight()
       Output only. Video height in pixels.
       
      int32 height = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasDuration

      public boolean hasDuration()
       Output only. Video duration.
       
      .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDuration in interface VideoCharacteristicsOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public com.google.protobuf.Duration getDuration()
       Output only. Video duration.
       
      .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDuration in interface VideoCharacteristicsOrBuilder
      Returns:
      The duration.
    • setDuration

      public VideoCharacteristics.Builder setDuration(com.google.protobuf.Duration value)
       Output only. Video duration.
       
      .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDuration

      public VideoCharacteristics.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
       Output only. Video duration.
       
      .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDuration

      public VideoCharacteristics.Builder mergeDuration(com.google.protobuf.Duration value)
       Output only. Video duration.
       
      .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDuration

      public VideoCharacteristics.Builder clearDuration()
       Output only. Video duration.
       
      .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDurationBuilder

      public com.google.protobuf.Duration.Builder getDurationBuilder()
       Output only. Video duration.
       
      .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       Output only. Video duration.
       
      .google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDurationOrBuilder in interface VideoCharacteristicsOrBuilder
    • getFrameRate

      public double getFrameRate()
       Output only. Frame rate (frames per second).
       
      double frame_rate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFrameRate in interface VideoCharacteristicsOrBuilder
      Returns:
      The frameRate.
    • setFrameRate

      public VideoCharacteristics.Builder setFrameRate(double value)
       Output only. Frame rate (frames per second).
       
      double frame_rate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The frameRate to set.
      Returns:
      This builder for chaining.
    • clearFrameRate

      public VideoCharacteristics.Builder clearFrameRate()
       Output only. Frame rate (frames per second).
       
      double frame_rate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getAudioCodecsList

      public com.google.protobuf.ProtocolStringList getAudioCodecsList()
       Output only. Audio codecs used in the video.
       
      repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAudioCodecsList in interface VideoCharacteristicsOrBuilder
      Returns:
      A list containing the audioCodecs.
    • getAudioCodecsCount

      public int getAudioCodecsCount()
       Output only. Audio codecs used in the video.
       
      repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAudioCodecsCount in interface VideoCharacteristicsOrBuilder
      Returns:
      The count of audioCodecs.
    • getAudioCodecs

      public String getAudioCodecs(int index)
       Output only. Audio codecs used in the video.
       
      repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAudioCodecs in interface VideoCharacteristicsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The audioCodecs at the given index.
    • getAudioCodecsBytes

      public com.google.protobuf.ByteString getAudioCodecsBytes(int index)
       Output only. Audio codecs used in the video.
       
      repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAudioCodecsBytes in interface VideoCharacteristicsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the audioCodecs at the given index.
    • setAudioCodecs

      public VideoCharacteristics.Builder setAudioCodecs(int index, String value)
       Output only. Audio codecs used in the video.
       
      repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The audioCodecs to set.
      Returns:
      This builder for chaining.
    • addAudioCodecs

      public VideoCharacteristics.Builder addAudioCodecs(String value)
       Output only. Audio codecs used in the video.
       
      repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The audioCodecs to add.
      Returns:
      This builder for chaining.
    • addAllAudioCodecs

      public VideoCharacteristics.Builder addAllAudioCodecs(Iterable<String> values)
       Output only. Audio codecs used in the video.
       
      repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The audioCodecs to add.
      Returns:
      This builder for chaining.
    • clearAudioCodecs

      public VideoCharacteristics.Builder clearAudioCodecs()
       Output only. Audio codecs used in the video.
       
      repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addAudioCodecsBytes

      public VideoCharacteristics.Builder addAudioCodecsBytes(com.google.protobuf.ByteString value)
       Output only. Audio codecs used in the video.
       
      repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the audioCodecs to add.
      Returns:
      This builder for chaining.
    • getVideoCodecsList

      public com.google.protobuf.ProtocolStringList getVideoCodecsList()
       Output only. Video codecs used in the video.
       
      repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoCodecsList in interface VideoCharacteristicsOrBuilder
      Returns:
      A list containing the videoCodecs.
    • getVideoCodecsCount

      public int getVideoCodecsCount()
       Output only. Video codecs used in the video.
       
      repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoCodecsCount in interface VideoCharacteristicsOrBuilder
      Returns:
      The count of videoCodecs.
    • getVideoCodecs

      public String getVideoCodecs(int index)
       Output only. Video codecs used in the video.
       
      repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoCodecs in interface VideoCharacteristicsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The videoCodecs at the given index.
    • getVideoCodecsBytes

      public com.google.protobuf.ByteString getVideoCodecsBytes(int index)
       Output only. Video codecs used in the video.
       
      repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoCodecsBytes in interface VideoCharacteristicsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the videoCodecs at the given index.
    • setVideoCodecs

      public VideoCharacteristics.Builder setVideoCodecs(int index, String value)
       Output only. Video codecs used in the video.
       
      repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The videoCodecs to set.
      Returns:
      This builder for chaining.
    • addVideoCodecs

      public VideoCharacteristics.Builder addVideoCodecs(String value)
       Output only. Video codecs used in the video.
       
      repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The videoCodecs to add.
      Returns:
      This builder for chaining.
    • addAllVideoCodecs

      public VideoCharacteristics.Builder addAllVideoCodecs(Iterable<String> values)
       Output only. Video codecs used in the video.
       
      repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The videoCodecs to add.
      Returns:
      This builder for chaining.
    • clearVideoCodecs

      public VideoCharacteristics.Builder clearVideoCodecs()
       Output only. Video codecs used in the video.
       
      repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addVideoCodecsBytes

      public VideoCharacteristics.Builder addVideoCodecsBytes(com.google.protobuf.ByteString value)
       Output only. Video codecs used in the video.
       
      repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the videoCodecs to add.
      Returns:
      This builder for chaining.
    • getVideoBitrateKbps

      public int getVideoBitrateKbps()
       Output only. Bitrate of the video in kbps.
       
      int32 video_bitrate_kbps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoBitrateKbps in interface VideoCharacteristicsOrBuilder
      Returns:
      The videoBitrateKbps.
    • setVideoBitrateKbps

      public VideoCharacteristics.Builder setVideoBitrateKbps(int value)
       Output only. Bitrate of the video in kbps.
       
      int32 video_bitrate_kbps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The videoBitrateKbps to set.
      Returns:
      This builder for chaining.
    • clearVideoBitrateKbps

      public VideoCharacteristics.Builder clearVideoBitrateKbps()
       Output only. Bitrate of the video in kbps.
       
      int32 video_bitrate_kbps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getAudioBitrateKbps

      public int getAudioBitrateKbps()
       Output only. Bitrate of the audio in kbps.
       
      int32 audio_bitrate_kbps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAudioBitrateKbps in interface VideoCharacteristicsOrBuilder
      Returns:
      The audioBitrateKbps.
    • setAudioBitrateKbps

      public VideoCharacteristics.Builder setAudioBitrateKbps(int value)
       Output only. Bitrate of the audio in kbps.
       
      int32 audio_bitrate_kbps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The audioBitrateKbps to set.
      Returns:
      This builder for chaining.
    • clearAudioBitrateKbps

      public VideoCharacteristics.Builder clearAudioBitrateKbps()
       Output only. Bitrate of the audio in kbps.
       
      int32 audio_bitrate_kbps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.