Class PreprocessingConfig.Pad.Builder

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

public static final class PreprocessingConfig.Pad.Builder extends com.google.protobuf.GeneratedMessage.Builder<PreprocessingConfig.Pad.Builder> implements PreprocessingConfig.PadOrBuilder
 Pad filter configuration for the input video. The padded input video
 is scaled after padding with black to match the output resolution.
 
Protobuf type google.cloud.video.transcoder.v1.PreprocessingConfig.Pad
  • 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<PreprocessingConfig.Pad.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<PreprocessingConfig.Pad.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<PreprocessingConfig.Pad.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PreprocessingConfig.Pad.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<PreprocessingConfig.Pad.Builder>
      Throws:
      IOException
    • getTopPixels

      public int getTopPixels()
       The number of pixels to add to the top. The default is 0.
       
      int32 top_pixels = 1;
      Specified by:
      getTopPixels in interface PreprocessingConfig.PadOrBuilder
      Returns:
      The topPixels.
    • setTopPixels

      public PreprocessingConfig.Pad.Builder setTopPixels(int value)
       The number of pixels to add to the top. The default is 0.
       
      int32 top_pixels = 1;
      Parameters:
      value - The topPixels to set.
      Returns:
      This builder for chaining.
    • clearTopPixels

      public PreprocessingConfig.Pad.Builder clearTopPixels()
       The number of pixels to add to the top. The default is 0.
       
      int32 top_pixels = 1;
      Returns:
      This builder for chaining.
    • getBottomPixels

      public int getBottomPixels()
       The number of pixels to add to the bottom. The default is 0.
       
      int32 bottom_pixels = 2;
      Specified by:
      getBottomPixels in interface PreprocessingConfig.PadOrBuilder
      Returns:
      The bottomPixels.
    • setBottomPixels

      public PreprocessingConfig.Pad.Builder setBottomPixels(int value)
       The number of pixels to add to the bottom. The default is 0.
       
      int32 bottom_pixels = 2;
      Parameters:
      value - The bottomPixels to set.
      Returns:
      This builder for chaining.
    • clearBottomPixels

      public PreprocessingConfig.Pad.Builder clearBottomPixels()
       The number of pixels to add to the bottom. The default is 0.
       
      int32 bottom_pixels = 2;
      Returns:
      This builder for chaining.
    • getLeftPixels

      public int getLeftPixels()
       The number of pixels to add to the left. The default is 0.
       
      int32 left_pixels = 3;
      Specified by:
      getLeftPixels in interface PreprocessingConfig.PadOrBuilder
      Returns:
      The leftPixels.
    • setLeftPixels

      public PreprocessingConfig.Pad.Builder setLeftPixels(int value)
       The number of pixels to add to the left. The default is 0.
       
      int32 left_pixels = 3;
      Parameters:
      value - The leftPixels to set.
      Returns:
      This builder for chaining.
    • clearLeftPixels

      public PreprocessingConfig.Pad.Builder clearLeftPixels()
       The number of pixels to add to the left. The default is 0.
       
      int32 left_pixels = 3;
      Returns:
      This builder for chaining.
    • getRightPixels

      public int getRightPixels()
       The number of pixels to add to the right. The default is 0.
       
      int32 right_pixels = 4;
      Specified by:
      getRightPixels in interface PreprocessingConfig.PadOrBuilder
      Returns:
      The rightPixels.
    • setRightPixels

      public PreprocessingConfig.Pad.Builder setRightPixels(int value)
       The number of pixels to add to the right. The default is 0.
       
      int32 right_pixels = 4;
      Parameters:
      value - The rightPixels to set.
      Returns:
      This builder for chaining.
    • clearRightPixels

      public PreprocessingConfig.Pad.Builder clearRightPixels()
       The number of pixels to add to the right. The default is 0.
       
      int32 right_pixels = 4;
      Returns:
      This builder for chaining.