Class PreprocessingConfig.Color.Builder (1.39.0)

public static final class PreprocessingConfig.Color.Builder extends GeneratedMessageV3.Builder<PreprocessingConfig.Color.Builder> implements PreprocessingConfig.ColorOrBuilder

Color preprocessing configuration.

Note: This configuration is not supported.

Protobuf type google.cloud.video.transcoder.v1.PreprocessingConfig.Color

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PreprocessingConfig.Color.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides

build()

public PreprocessingConfig.Color build()
Returns
TypeDescription
PreprocessingConfig.Color

buildPartial()

public PreprocessingConfig.Color buildPartial()
Returns
TypeDescription
PreprocessingConfig.Color

clear()

public PreprocessingConfig.Color.Builder clear()
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides

clearBrightness()

public PreprocessingConfig.Color.Builder clearBrightness()

Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0.

double brightness = 3;

Returns
TypeDescription
PreprocessingConfig.Color.Builder

This builder for chaining.

clearContrast()

public PreprocessingConfig.Color.Builder clearContrast()

Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0.

double contrast = 2;

Returns
TypeDescription
PreprocessingConfig.Color.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PreprocessingConfig.Color.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PreprocessingConfig.Color.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides

clearSaturation()

public PreprocessingConfig.Color.Builder clearSaturation()

Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0.

double saturation = 1;

Returns
TypeDescription
PreprocessingConfig.Color.Builder

This builder for chaining.

clone()

public PreprocessingConfig.Color.Builder clone()
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides

getBrightness()

public double getBrightness()

Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0.

double brightness = 3;

Returns
TypeDescription
double

The brightness.

getContrast()

public double getContrast()

Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0.

double contrast = 2;

Returns
TypeDescription
double

The contrast.

getDefaultInstanceForType()

public PreprocessingConfig.Color getDefaultInstanceForType()
Returns
TypeDescription
PreprocessingConfig.Color

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSaturation()

public double getSaturation()

Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0.

double saturation = 1;

Returns
TypeDescription
double

The saturation.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PreprocessingConfig.Color other)

public PreprocessingConfig.Color.Builder mergeFrom(PreprocessingConfig.Color other)
Parameter
NameDescription
otherPreprocessingConfig.Color
Returns
TypeDescription
PreprocessingConfig.Color.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PreprocessingConfig.Color.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PreprocessingConfig.Color.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PreprocessingConfig.Color.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides

setBrightness(double value)

public PreprocessingConfig.Color.Builder setBrightness(double value)

Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0.

double brightness = 3;

Parameter
NameDescription
valuedouble

The brightness to set.

Returns
TypeDescription
PreprocessingConfig.Color.Builder

This builder for chaining.

setContrast(double value)

public PreprocessingConfig.Color.Builder setContrast(double value)

Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0.

double contrast = 2;

Parameter
NameDescription
valuedouble

The contrast to set.

Returns
TypeDescription
PreprocessingConfig.Color.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PreprocessingConfig.Color.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides

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

public PreprocessingConfig.Color.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides

setSaturation(double value)

public PreprocessingConfig.Color.Builder setSaturation(double value)

Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0.

double saturation = 1;

Parameter
NameDescription
valuedouble

The saturation to set.

Returns
TypeDescription
PreprocessingConfig.Color.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PreprocessingConfig.Color.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides