Class PreprocessingConfig.Crop.Builder (0.4.3)

publicstaticfinalclass PreprocessingConfig.Crop.BuilderextendsGeneratedMessageV3.Builder<PreprocessingConfig.Crop.Builder>implementsPreprocessingConfig.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.v1beta1.PreprocessingConfig.Crop

Inherited Members

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicPreprocessingConfig.Crop.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicPreprocessingConfig.Cropbuild()
Returns
Type Description

buildPartial()

publicPreprocessingConfig.CropbuildPartial()
Returns
Type Description

clear()

publicPreprocessingConfig.Crop.Builderclear()
Returns
Type Description
Overrides

clearBottomPixels()

publicPreprocessingConfig.Crop.BuilderclearBottomPixels()

The number of pixels to crop from the bottom. The default is 0.

int32 bottom_pixels = 2;

Returns
Type Description
PreprocessingConfig.Crop.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicPreprocessingConfig.Crop.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearLeftPixels()

publicPreprocessingConfig.Crop.BuilderclearLeftPixels()

The number of pixels to crop from the left. The default is 0.

int32 left_pixels = 3;

Returns
Type Description
PreprocessingConfig.Crop.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicPreprocessingConfig.Crop.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearRightPixels()

publicPreprocessingConfig.Crop.BuilderclearRightPixels()

The number of pixels to crop from the right. The default is 0.

int32 right_pixels = 4;

Returns
Type Description
PreprocessingConfig.Crop.Builder

This builder for chaining.

clearTopPixels()

publicPreprocessingConfig.Crop.BuilderclearTopPixels()

The number of pixels to crop from the top. The default is 0.

int32 top_pixels = 1;

Returns
Type Description
PreprocessingConfig.Crop.Builder

This builder for chaining.

clone()

publicPreprocessingConfig.Crop.Builderclone()
Returns
Type Description
Overrides

getBottomPixels()

publicintgetBottomPixels()

The number of pixels to crop from the bottom. The default is 0.

int32 bottom_pixels = 2;

Returns
Type Description
int

The bottomPixels.

getDefaultInstanceForType()

publicPreprocessingConfig.CropgetDefaultInstanceForType()
Returns
Type Description

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getLeftPixels()

publicintgetLeftPixels()

The number of pixels to crop from the left. The default is 0.

int32 left_pixels = 3;

Returns
Type Description
int

The leftPixels.

getRightPixels()

publicintgetRightPixels()

The number of pixels to crop from the right. The default is 0.

int32 right_pixels = 4;

Returns
Type Description
int

The rightPixels.

getTopPixels()

publicintgetTopPixels()

The number of pixels to crop from the top. The default is 0.

int32 top_pixels = 1;

Returns
Type Description
int

The topPixels.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(PreprocessingConfig.Crop other)

publicPreprocessingConfig.Crop.BuildermergeFrom(PreprocessingConfig.Cropother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicPreprocessingConfig.Crop.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicPreprocessingConfig.Crop.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalPreprocessingConfig.Crop.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setBottomPixels(int value)

publicPreprocessingConfig.Crop.BuildersetBottomPixels(intvalue)

The number of pixels to crop from the bottom. The default is 0.

int32 bottom_pixels = 2;

Parameter
Name Description
value int

The bottomPixels to set.

Returns
Type Description
PreprocessingConfig.Crop.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicPreprocessingConfig.Crop.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setLeftPixels(int value)

publicPreprocessingConfig.Crop.BuildersetLeftPixels(intvalue)

The number of pixels to crop from the left. The default is 0.

int32 left_pixels = 3;

Parameter
Name Description
value int

The leftPixels to set.

Returns
Type Description
PreprocessingConfig.Crop.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicPreprocessingConfig.Crop.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setRightPixels(int value)

publicPreprocessingConfig.Crop.BuildersetRightPixels(intvalue)

The number of pixels to crop from the right. The default is 0.

int32 right_pixels = 4;

Parameter
Name Description
value int

The rightPixels to set.

Returns
Type Description
PreprocessingConfig.Crop.Builder

This builder for chaining.

setTopPixels(int value)

publicPreprocessingConfig.Crop.BuildersetTopPixels(intvalue)

The number of pixels to crop from the top. The default is 0.

int32 top_pixels = 1;

Parameter
Name Description
value int

The topPixels to set.

Returns
Type Description
PreprocessingConfig.Crop.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalPreprocessingConfig.Crop.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.