Class PreprocessingConfig.Crop.Builder (1.58.0)

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.v1.PreprocessingConfig.Crop

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicPreprocessingConfig.Cropbuild()
Returns
Type Description
PreprocessingConfig.Crop

buildPartial()

publicPreprocessingConfig.CropbuildPartial()
Returns
Type Description
PreprocessingConfig.Crop

clear()

publicPreprocessingConfig.Crop.Builderclear()
Returns
Type Description
PreprocessingConfig.Crop.Builder
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
field FieldDescriptor
Returns
Type Description
PreprocessingConfig.Crop.Builder
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
oneof OneofDescriptor
Returns
Type Description
PreprocessingConfig.Crop.Builder
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
PreprocessingConfig.Crop.Builder
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
PreprocessingConfig.Crop

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
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
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PreprocessingConfig.Crop other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicPreprocessingConfig.Crop.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreprocessingConfig.Crop.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalPreprocessingConfig.Crop.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PreprocessingConfig.Crop.Builder
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
field FieldDescriptor
value Object
Returns
Type Description
PreprocessingConfig.Crop.Builder
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
field FieldDescriptor
index int
value Object
Returns
Type Description
PreprocessingConfig.Crop.Builder
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
PreprocessingConfig.Crop.Builder
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.