Class PreprocessingConfig.Crop (1.13.0)

publicstaticfinalclass PreprocessingConfig.CropextendsGeneratedMessageV3implementsPreprocessingConfig.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

Static Fields

BOTTOM_PIXELS_FIELD_NUMBER

publicstaticfinalintBOTTOM_PIXELS_FIELD_NUMBER
Field Value
Type Description
int

LEFT_PIXELS_FIELD_NUMBER

publicstaticfinalintLEFT_PIXELS_FIELD_NUMBER
Field Value
Type Description
int

RIGHT_PIXELS_FIELD_NUMBER

publicstaticfinalintRIGHT_PIXELS_FIELD_NUMBER
Field Value
Type Description
int

TOP_PIXELS_FIELD_NUMBER

publicstaticfinalintTOP_PIXELS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticPreprocessingConfig.CropgetDefaultInstance()
Returns
Type Description
PreprocessingConfig.Crop

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticPreprocessingConfig.Crop.BuildernewBuilder()
Returns
Type Description
PreprocessingConfig.Crop.Builder

newBuilder(PreprocessingConfig.Crop prototype)

publicstaticPreprocessingConfig.Crop.BuildernewBuilder(PreprocessingConfig.Cropprototype)
Parameter
Name Description
prototype PreprocessingConfig.Crop
Returns
Type Description
PreprocessingConfig.Crop.Builder

parseDelimitedFrom(InputStream input)

publicstaticPreprocessingConfig.CropparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPreprocessingConfig.CropparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticPreprocessingConfig.CropparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticPreprocessingConfig.CropparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticPreprocessingConfig.CropparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticPreprocessingConfig.CropparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticPreprocessingConfig.CropparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPreprocessingConfig.CropparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticPreprocessingConfig.CropparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPreprocessingConfig.CropparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticPreprocessingConfig.CropparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticPreprocessingConfig.CropparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreprocessingConfig.Crop
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<PreprocessingConfig.Crop>parser()
Returns
Type Description
Parser<Crop>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

publicParser<PreprocessingConfig.Crop>getParserForType()
Returns
Type Description
Parser<Crop>
Overrides

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.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

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.

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicPreprocessingConfig.Crop.BuildernewBuilderForType()
Returns
Type Description
PreprocessingConfig.Crop.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedPreprocessingConfig.Crop.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PreprocessingConfig.Crop.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicPreprocessingConfig.Crop.BuildertoBuilder()
Returns
Type Description
PreprocessingConfig.Crop.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.