Class VideoFormat.Builder

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

public static final class VideoFormat.Builder extends com.google.protobuf.GeneratedMessage.Builder<VideoFormat.Builder> implements VideoFormatOrBuilder
 Properties of the video format.
 
Protobuf type google.cloud.video.livestream.v1.VideoFormat
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Video codec used in this video stream.
    The frame rate of the input video stream.
    The height of the video stream in pixels.
    The width of the video stream in pixels.
    Video codec used in this video stream.
    com.google.protobuf.ByteString
    Video codec used in this video stream.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    double
    The frame rate of the input video stream.
    int
    The height of the video stream in pixels.
    int
    The width of the video stream in pixels.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Video codec used in this video stream.
    setCodecBytes(com.google.protobuf.ByteString value)
    Video codec used in this video stream.
    setFrameRate(double value)
    The frame rate of the input video stream.
    setHeightPixels(int value)
    The height of the video stream in pixels.
    setWidthPixels(int value)
    The width of the video stream in pixels.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<VideoFormat.Builder>
    • clear

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

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

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

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

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

      public VideoFormat.Builder mergeFrom(VideoFormat other)
    • isInitialized

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

      public VideoFormat.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<VideoFormat.Builder>
      Throws:
      IOException
    • getCodec

      public String getCodec()
       Video codec used in this video stream.
       
      string codec = 1;
      Specified by:
      getCodec in interface VideoFormatOrBuilder
      Returns:
      The codec.
    • getCodecBytes

      public com.google.protobuf.ByteString getCodecBytes()
       Video codec used in this video stream.
       
      string codec = 1;
      Specified by:
      getCodecBytes in interface VideoFormatOrBuilder
      Returns:
      The bytes for codec.
    • setCodec

      public VideoFormat.Builder setCodec(String value)
       Video codec used in this video stream.
       
      string codec = 1;
      Parameters:
      value - The codec to set.
      Returns:
      This builder for chaining.
    • clearCodec

      public VideoFormat.Builder clearCodec()
       Video codec used in this video stream.
       
      string codec = 1;
      Returns:
      This builder for chaining.
    • setCodecBytes

      public VideoFormat.Builder setCodecBytes(com.google.protobuf.ByteString value)
       Video codec used in this video stream.
       
      string codec = 1;
      Parameters:
      value - The bytes for codec to set.
      Returns:
      This builder for chaining.
    • getWidthPixels

      public int getWidthPixels()
       The width of the video stream in pixels.
       
      int32 width_pixels = 2;
      Specified by:
      getWidthPixels in interface VideoFormatOrBuilder
      Returns:
      The widthPixels.
    • setWidthPixels

      public VideoFormat.Builder setWidthPixels(int value)
       The width of the video stream in pixels.
       
      int32 width_pixels = 2;
      Parameters:
      value - The widthPixels to set.
      Returns:
      This builder for chaining.
    • clearWidthPixels

      public VideoFormat.Builder clearWidthPixels()
       The width of the video stream in pixels.
       
      int32 width_pixels = 2;
      Returns:
      This builder for chaining.
    • getHeightPixels

      public int getHeightPixels()
       The height of the video stream in pixels.
       
      int32 height_pixels = 3;
      Specified by:
      getHeightPixels in interface VideoFormatOrBuilder
      Returns:
      The heightPixels.
    • setHeightPixels

      public VideoFormat.Builder setHeightPixels(int value)
       The height of the video stream in pixels.
       
      int32 height_pixels = 3;
      Parameters:
      value - The heightPixels to set.
      Returns:
      This builder for chaining.
    • clearHeightPixels

      public VideoFormat.Builder clearHeightPixels()
       The height of the video stream in pixels.
       
      int32 height_pixels = 3;
      Returns:
      This builder for chaining.
    • getFrameRate

      public double getFrameRate()
       The frame rate of the input video stream.
       
      double frame_rate = 4;
      Specified by:
      getFrameRate in interface VideoFormatOrBuilder
      Returns:
      The frameRate.
    • setFrameRate

      public VideoFormat.Builder setFrameRate(double value)
       The frame rate of the input video stream.
       
      double frame_rate = 4;
      Parameters:
      value - The frameRate to set.
      Returns:
      This builder for chaining.
    • clearFrameRate

      public VideoFormat.Builder clearFrameRate()
       The frame rate of the input video stream.
       
      double frame_rate = 4;
      Returns:
      This builder for chaining.