Class VideoStream.Vp9CodecSettings.Builder (1.79.0)

publicstaticfinalclass VideoStream.Vp9CodecSettings.BuilderextendsGeneratedMessageV3.Builder<VideoStream.Vp9CodecSettings.Builder>implementsVideoStream.Vp9CodecSettingsOrBuilder

VP9 codec settings.

Protobuf type google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings

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)

publicVideoStream.Vp9CodecSettings.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides

build()

publicVideoStream.Vp9CodecSettingsbuild()
Returns
Type Description
VideoStream.Vp9CodecSettings

buildPartial()

publicVideoStream.Vp9CodecSettingsbuildPartial()
Returns
Type Description
VideoStream.Vp9CodecSettings

clear()

publicVideoStream.Vp9CodecSettings.Builderclear()
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides

clearBitrateBps()

publicVideoStream.Vp9CodecSettings.BuilderclearBitrateBps()

Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 480,000,000.

int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

clearColorFormat()

publicVideoStream.Vp9CodecSettings.BuilderclearColorFormat()
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

clearCrfLevel()

publicVideoStream.Vp9CodecSettings.BuilderclearCrfLevel()

Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21.

Note: This field is not supported.

int32 crf_level = 7;

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicVideoStream.Vp9CodecSettings.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides

clearFrameRate()

publicVideoStream.Vp9CodecSettings.BuilderclearFrameRate()

Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.

double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

clearFrameRateConversionStrategy()

publicVideoStream.Vp9CodecSettings.BuilderclearFrameRateConversionStrategy()

Optional. Frame rate conversion strategy for desired frame rate. The default is DOWNSAMPLE.

.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy frame_rate_conversion_strategy = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

clearGopDuration()

publicVideoStream.Vp9CodecSettings.BuilderclearGopDuration()

Select the GOP size based on the specified duration. The default is 3s. Note that gopDuration must be less than or equal to segmentDuration, and segmentDuration must be divisible by gopDuration.

.google.protobuf.Duration gop_duration = 9;

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

clearGopFrameCount()

publicVideoStream.Vp9CodecSettings.BuilderclearGopFrameCount()

Select the GOP size based on the specified frame count. Must be greater than zero.

int32 gop_frame_count = 8;

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

clearGopMode()

publicVideoStream.Vp9CodecSettings.BuilderclearGopMode()
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

clearHeightPixels()

publicVideoStream.Vp9CodecSettings.BuilderclearHeightPixels()

The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used.

For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 height_pixels = 2;

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

clearHlg()

publicVideoStream.Vp9CodecSettings.BuilderclearHlg()

Optional. HLG color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatHLG hlg = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicVideoStream.Vp9CodecSettings.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides

clearPixelFormat()

publicVideoStream.Vp9CodecSettings.BuilderclearPixelFormat()

Pixel format to use. The default is yuv420p.

Supported pixel formats:

  • yuv420p pixel format
  • yuv422p pixel format
  • yuv444p pixel format
  • yuv420p10 10-bit HDR pixel format
  • yuv422p10 10-bit HDR pixel format
  • yuv444p10 10-bit HDR pixel format
  • yuv420p12 12-bit HDR pixel format
  • yuv422p12 12-bit HDR pixel format
  • yuv444p12 12-bit HDR pixel format

string pixel_format = 5;

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

clearProfile()

publicVideoStream.Vp9CodecSettings.BuilderclearProfile()

Enforces the specified codec profile. The following profiles are supported:

  • profile0 (default)
  • profile1
  • profile2
  • profile3

    The available options are WebM-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in the Vp9CodecSettings message.

string profile = 10;

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

clearRateControlMode()

publicVideoStream.Vp9CodecSettings.BuilderclearRateControlMode()

Specify the mode. The default is vbr.

Supported rate control modes:

  • vbr - variable bitrate

string rate_control_mode = 6;

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

clearSdr()

publicVideoStream.Vp9CodecSettings.BuilderclearSdr()

Optional. SDR color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatSDR sdr = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

clearWidthPixels()

publicVideoStream.Vp9CodecSettings.BuilderclearWidthPixels()

The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used.

For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 width_pixels = 1;

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

clone()

publicVideoStream.Vp9CodecSettings.Builderclone()
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides

getBitrateBps()

publicintgetBitrateBps()

Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 480,000,000.

int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The bitrateBps.

getColorFormatCase()

publicVideoStream.Vp9CodecSettings.ColorFormatCasegetColorFormatCase()
Returns
Type Description
VideoStream.Vp9CodecSettings.ColorFormatCase

getCrfLevel()

publicintgetCrfLevel()

Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21.

Note: This field is not supported.

int32 crf_level = 7;

Returns
Type Description
int

The crfLevel.

getDefaultInstanceForType()

publicVideoStream.Vp9CodecSettingsgetDefaultInstanceForType()
Returns
Type Description
VideoStream.Vp9CodecSettings

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFrameRate()

publicdoublegetFrameRate()

Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.

double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The frameRate.

getFrameRateConversionStrategy()

publicVideoStream.FrameRateConversionStrategygetFrameRateConversionStrategy()

Optional. Frame rate conversion strategy for desired frame rate. The default is DOWNSAMPLE.

.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy frame_rate_conversion_strategy = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.FrameRateConversionStrategy

The frameRateConversionStrategy.

getFrameRateConversionStrategyValue()

publicintgetFrameRateConversionStrategyValue()

Optional. Frame rate conversion strategy for desired frame rate. The default is DOWNSAMPLE.

.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy frame_rate_conversion_strategy = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for frameRateConversionStrategy.

getGopDuration()

publicDurationgetGopDuration()

Select the GOP size based on the specified duration. The default is 3s. Note that gopDuration must be less than or equal to segmentDuration, and segmentDuration must be divisible by gopDuration.

.google.protobuf.Duration gop_duration = 9;

Returns
Type Description
Duration

The gopDuration.

getGopDurationBuilder()

publicDuration.BuildergetGopDurationBuilder()

Select the GOP size based on the specified duration. The default is 3s. Note that gopDuration must be less than or equal to segmentDuration, and segmentDuration must be divisible by gopDuration.

.google.protobuf.Duration gop_duration = 9;

Returns
Type Description
Builder

getGopDurationOrBuilder()

publicDurationOrBuildergetGopDurationOrBuilder()

Select the GOP size based on the specified duration. The default is 3s. Note that gopDuration must be less than or equal to segmentDuration, and segmentDuration must be divisible by gopDuration.

.google.protobuf.Duration gop_duration = 9;

Returns
Type Description
DurationOrBuilder

getGopFrameCount()

publicintgetGopFrameCount()

Select the GOP size based on the specified frame count. Must be greater than zero.

int32 gop_frame_count = 8;

Returns
Type Description
int

The gopFrameCount.

getGopModeCase()

publicVideoStream.Vp9CodecSettings.GopModeCasegetGopModeCase()
Returns
Type Description
VideoStream.Vp9CodecSettings.GopModeCase

getHeightPixels()

publicintgetHeightPixels()

The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used.

For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 height_pixels = 2;

Returns
Type Description
int

The heightPixels.

getHlg()

publicVideoStream.Vp9ColorFormatHLGgetHlg()

Optional. HLG color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatHLG hlg = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.Vp9ColorFormatHLG

The hlg.

getHlgBuilder()

publicVideoStream.Vp9ColorFormatHLG.BuildergetHlgBuilder()

Optional. HLG color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatHLG hlg = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.Vp9ColorFormatHLG.Builder

getHlgOrBuilder()

publicVideoStream.Vp9ColorFormatHLGOrBuildergetHlgOrBuilder()

Optional. HLG color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatHLG hlg = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.Vp9ColorFormatHLGOrBuilder

getPixelFormat()

publicStringgetPixelFormat()

Pixel format to use. The default is yuv420p.

Supported pixel formats:

  • yuv420p pixel format
  • yuv422p pixel format
  • yuv444p pixel format
  • yuv420p10 10-bit HDR pixel format
  • yuv422p10 10-bit HDR pixel format
  • yuv444p10 10-bit HDR pixel format
  • yuv420p12 12-bit HDR pixel format
  • yuv422p12 12-bit HDR pixel format
  • yuv444p12 12-bit HDR pixel format

string pixel_format = 5;

Returns
Type Description
String

The pixelFormat.

getPixelFormatBytes()

publicByteStringgetPixelFormatBytes()

Pixel format to use. The default is yuv420p.

Supported pixel formats:

  • yuv420p pixel format
  • yuv422p pixel format
  • yuv444p pixel format
  • yuv420p10 10-bit HDR pixel format
  • yuv422p10 10-bit HDR pixel format
  • yuv444p10 10-bit HDR pixel format
  • yuv420p12 12-bit HDR pixel format
  • yuv422p12 12-bit HDR pixel format
  • yuv444p12 12-bit HDR pixel format

string pixel_format = 5;

Returns
Type Description
ByteString

The bytes for pixelFormat.

getProfile()

publicStringgetProfile()

Enforces the specified codec profile. The following profiles are supported:

  • profile0 (default)
  • profile1
  • profile2
  • profile3

    The available options are WebM-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in the Vp9CodecSettings message.

string profile = 10;

Returns
Type Description
String

The profile.

getProfileBytes()

publicByteStringgetProfileBytes()

Enforces the specified codec profile. The following profiles are supported:

  • profile0 (default)
  • profile1
  • profile2
  • profile3

    The available options are WebM-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in the Vp9CodecSettings message.

string profile = 10;

Returns
Type Description
ByteString

The bytes for profile.

getRateControlMode()

publicStringgetRateControlMode()

Specify the mode. The default is vbr.

Supported rate control modes:

  • vbr - variable bitrate

string rate_control_mode = 6;

Returns
Type Description
String

The rateControlMode.

getRateControlModeBytes()

publicByteStringgetRateControlModeBytes()

Specify the mode. The default is vbr.

Supported rate control modes:

  • vbr - variable bitrate

string rate_control_mode = 6;

Returns
Type Description
ByteString

The bytes for rateControlMode.

getSdr()

publicVideoStream.Vp9ColorFormatSDRgetSdr()

Optional. SDR color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatSDR sdr = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.Vp9ColorFormatSDR

The sdr.

getSdrBuilder()

publicVideoStream.Vp9ColorFormatSDR.BuildergetSdrBuilder()

Optional. SDR color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatSDR sdr = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.Vp9ColorFormatSDR.Builder

getSdrOrBuilder()

publicVideoStream.Vp9ColorFormatSDROrBuildergetSdrOrBuilder()

Optional. SDR color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatSDR sdr = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.Vp9ColorFormatSDROrBuilder

getWidthPixels()

publicintgetWidthPixels()

The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used.

For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 width_pixels = 1;

Returns
Type Description
int

The widthPixels.

hasGopDuration()

publicbooleanhasGopDuration()

Select the GOP size based on the specified duration. The default is 3s. Note that gopDuration must be less than or equal to segmentDuration, and segmentDuration must be divisible by gopDuration.

.google.protobuf.Duration gop_duration = 9;

Returns
Type Description
boolean

Whether the gopDuration field is set.

hasGopFrameCount()

publicbooleanhasGopFrameCount()

Select the GOP size based on the specified frame count. Must be greater than zero.

int32 gop_frame_count = 8;

Returns
Type Description
boolean

Whether the gopFrameCount field is set.

hasHlg()

publicbooleanhasHlg()

Optional. HLG color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatHLG hlg = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the hlg field is set.

hasSdr()

publicbooleanhasSdr()

Optional. SDR color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatSDR sdr = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sdr field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VideoStream.Vp9CodecSettings other)

publicVideoStream.Vp9CodecSettings.BuildermergeFrom(VideoStream.Vp9CodecSettingsother)
Parameter
Name Description
other VideoStream.Vp9CodecSettings
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicVideoStream.Vp9CodecSettings.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicVideoStream.Vp9CodecSettings.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides

mergeGopDuration(Duration value)

publicVideoStream.Vp9CodecSettings.BuildermergeGopDuration(Durationvalue)

Select the GOP size based on the specified duration. The default is 3s. Note that gopDuration must be less than or equal to segmentDuration, and segmentDuration must be divisible by gopDuration.

.google.protobuf.Duration gop_duration = 9;

Parameter
Name Description
value Duration
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

mergeHlg(VideoStream.Vp9ColorFormatHLG value)

publicVideoStream.Vp9CodecSettings.BuildermergeHlg(VideoStream.Vp9ColorFormatHLGvalue)

Optional. HLG color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatHLG hlg = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.Vp9ColorFormatHLG
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

mergeSdr(VideoStream.Vp9ColorFormatSDR value)

publicVideoStream.Vp9CodecSettings.BuildermergeSdr(VideoStream.Vp9ColorFormatSDRvalue)

Optional. SDR color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatSDR sdr = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.Vp9ColorFormatSDR
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalVideoStream.Vp9CodecSettings.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides

setBitrateBps(int value)

publicVideoStream.Vp9CodecSettings.BuildersetBitrateBps(intvalue)

Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 480,000,000.

int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The bitrateBps to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setCrfLevel(int value)

publicVideoStream.Vp9CodecSettings.BuildersetCrfLevel(intvalue)

Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21.

Note: This field is not supported.

int32 crf_level = 7;

Parameter
Name Description
value int

The crfLevel to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicVideoStream.Vp9CodecSettings.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides

setFrameRate(double value)

publicVideoStream.Vp9CodecSettings.BuildersetFrameRate(doublevalue)

Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.

double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value double

The frameRate to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setFrameRateConversionStrategy(VideoStream.FrameRateConversionStrategy value)

publicVideoStream.Vp9CodecSettings.BuildersetFrameRateConversionStrategy(VideoStream.FrameRateConversionStrategyvalue)

Optional. Frame rate conversion strategy for desired frame rate. The default is DOWNSAMPLE.

.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy frame_rate_conversion_strategy = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.FrameRateConversionStrategy

The frameRateConversionStrategy to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setFrameRateConversionStrategyValue(int value)

publicVideoStream.Vp9CodecSettings.BuildersetFrameRateConversionStrategyValue(intvalue)

Optional. Frame rate conversion strategy for desired frame rate. The default is DOWNSAMPLE.

.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy frame_rate_conversion_strategy = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for frameRateConversionStrategy to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setGopDuration(Duration value)

publicVideoStream.Vp9CodecSettings.BuildersetGopDuration(Durationvalue)

Select the GOP size based on the specified duration. The default is 3s. Note that gopDuration must be less than or equal to segmentDuration, and segmentDuration must be divisible by gopDuration.

.google.protobuf.Duration gop_duration = 9;

Parameter
Name Description
value Duration
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

setGopDuration(Duration.Builder builderForValue)

publicVideoStream.Vp9CodecSettings.BuildersetGopDuration(Duration.BuilderbuilderForValue)

Select the GOP size based on the specified duration. The default is 3s. Note that gopDuration must be less than or equal to segmentDuration, and segmentDuration must be divisible by gopDuration.

.google.protobuf.Duration gop_duration = 9;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

setGopFrameCount(int value)

publicVideoStream.Vp9CodecSettings.BuildersetGopFrameCount(intvalue)

Select the GOP size based on the specified frame count. Must be greater than zero.

int32 gop_frame_count = 8;

Parameter
Name Description
value int

The gopFrameCount to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setHeightPixels(int value)

publicVideoStream.Vp9CodecSettings.BuildersetHeightPixels(intvalue)

The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used.

For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 height_pixels = 2;

Parameter
Name Description
value int

The heightPixels to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setHlg(VideoStream.Vp9ColorFormatHLG value)

publicVideoStream.Vp9CodecSettings.BuildersetHlg(VideoStream.Vp9ColorFormatHLGvalue)

Optional. HLG color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatHLG hlg = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.Vp9ColorFormatHLG
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

setHlg(VideoStream.Vp9ColorFormatHLG.Builder builderForValue)

publicVideoStream.Vp9CodecSettings.BuildersetHlg(VideoStream.Vp9ColorFormatHLG.BuilderbuilderForValue)

Optional. HLG color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatHLG hlg = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue VideoStream.Vp9ColorFormatHLG.Builder
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

setPixelFormat(String value)

publicVideoStream.Vp9CodecSettings.BuildersetPixelFormat(Stringvalue)

Pixel format to use. The default is yuv420p.

Supported pixel formats:

  • yuv420p pixel format
  • yuv422p pixel format
  • yuv444p pixel format
  • yuv420p10 10-bit HDR pixel format
  • yuv422p10 10-bit HDR pixel format
  • yuv444p10 10-bit HDR pixel format
  • yuv420p12 12-bit HDR pixel format
  • yuv422p12 12-bit HDR pixel format
  • yuv444p12 12-bit HDR pixel format

string pixel_format = 5;

Parameter
Name Description
value String

The pixelFormat to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setPixelFormatBytes(ByteString value)

publicVideoStream.Vp9CodecSettings.BuildersetPixelFormatBytes(ByteStringvalue)

Pixel format to use. The default is yuv420p.

Supported pixel formats:

  • yuv420p pixel format
  • yuv422p pixel format
  • yuv444p pixel format
  • yuv420p10 10-bit HDR pixel format
  • yuv422p10 10-bit HDR pixel format
  • yuv444p10 10-bit HDR pixel format
  • yuv420p12 12-bit HDR pixel format
  • yuv422p12 12-bit HDR pixel format
  • yuv444p12 12-bit HDR pixel format

string pixel_format = 5;

Parameter
Name Description
value ByteString

The bytes for pixelFormat to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setProfile(String value)

publicVideoStream.Vp9CodecSettings.BuildersetProfile(Stringvalue)

Enforces the specified codec profile. The following profiles are supported:

  • profile0 (default)
  • profile1
  • profile2
  • profile3

    The available options are WebM-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in the Vp9CodecSettings message.

string profile = 10;

Parameter
Name Description
value String

The profile to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setProfileBytes(ByteString value)

publicVideoStream.Vp9CodecSettings.BuildersetProfileBytes(ByteStringvalue)

Enforces the specified codec profile. The following profiles are supported:

  • profile0 (default)
  • profile1
  • profile2
  • profile3

    The available options are WebM-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in the Vp9CodecSettings message.

string profile = 10;

Parameter
Name Description
value ByteString

The bytes for profile to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setRateControlMode(String value)

publicVideoStream.Vp9CodecSettings.BuildersetRateControlMode(Stringvalue)

Specify the mode. The default is vbr.

Supported rate control modes:

  • vbr - variable bitrate

string rate_control_mode = 6;

Parameter
Name Description
value String

The rateControlMode to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

setRateControlModeBytes(ByteString value)

publicVideoStream.Vp9CodecSettings.BuildersetRateControlModeBytes(ByteStringvalue)

Specify the mode. The default is vbr.

Supported rate control modes:

  • vbr - variable bitrate

string rate_control_mode = 6;

Parameter
Name Description
value ByteString

The bytes for rateControlMode to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

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

publicVideoStream.Vp9CodecSettings.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides

setSdr(VideoStream.Vp9ColorFormatSDR value)

publicVideoStream.Vp9CodecSettings.BuildersetSdr(VideoStream.Vp9ColorFormatSDRvalue)

Optional. SDR color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatSDR sdr = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.Vp9ColorFormatSDR
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

setSdr(VideoStream.Vp9ColorFormatSDR.Builder builderForValue)

publicVideoStream.Vp9CodecSettings.BuildersetSdr(VideoStream.Vp9ColorFormatSDR.BuilderbuilderForValue)

Optional. SDR color format setting for VP9.

.google.cloud.video.transcoder.v1.VideoStream.Vp9ColorFormatSDR sdr = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue VideoStream.Vp9ColorFormatSDR.Builder
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalVideoStream.Vp9CodecSettings.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoStream.Vp9CodecSettings.Builder
Overrides

setWidthPixels(int value)

publicVideoStream.Vp9CodecSettings.BuildersetWidthPixels(intvalue)

The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used.

For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 width_pixels = 1;

Parameter
Name Description
value int

The widthPixels to set.

Returns
Type Description
VideoStream.Vp9CodecSettings.Builder

This builder for chaining.

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.