Class PreprocessingConfig.Crop.Builder

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

public static final class PreprocessingConfig.Crop.Builder extends com.google.protobuf.GeneratedMessage.Builder<PreprocessingConfig.Crop.Builder> implements PreprocessingConfig.CropOrBuilder
 Video cropping configuration for the input video. The cropped input video
 is scaled to match the output resolution.
 
Protobuf type google.cloud.video.transcoder.v1.PreprocessingConfig.Crop
  • 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.Crop.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.Crop.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.Crop.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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