Class PreprocessingConfig.Color (1.2.2)

public static final class PreprocessingConfig.Color extends GeneratedMessageV3 implements PreprocessingConfig.ColorOrBuilder

Color preprocessing configuration. Note: This configuration is not supported.

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

Static Fields

BRIGHTNESS_FIELD_NUMBER

public static final int BRIGHTNESS_FIELD_NUMBER
Field Value
TypeDescription
int

CONTRAST_FIELD_NUMBER

public static final int CONTRAST_FIELD_NUMBER
Field Value
TypeDescription
int

SATURATION_FIELD_NUMBER

public static final int SATURATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PreprocessingConfig.Color getDefaultInstance()
Returns
TypeDescription
PreprocessingConfig.Color

getDescriptor()

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

newBuilder()

public static PreprocessingConfig.Color.Builder newBuilder()
Returns
TypeDescription
PreprocessingConfig.Color.Builder

newBuilder(PreprocessingConfig.Color prototype)

public static PreprocessingConfig.Color.Builder newBuilder(PreprocessingConfig.Color prototype)
Parameter
NameDescription
prototypePreprocessingConfig.Color
Returns
TypeDescription
PreprocessingConfig.Color.Builder

parseDelimitedFrom(InputStream input)

public static PreprocessingConfig.Color parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PreprocessingConfig.Color parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PreprocessingConfig.Color parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PreprocessingConfig.Color parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PreprocessingConfig.Color parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PreprocessingConfig.Color parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PreprocessingConfig.Color parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PreprocessingConfig.Color parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PreprocessingConfig.Color parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PreprocessingConfig.Color parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PreprocessingConfig.Color parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PreprocessingConfig.Color parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PreprocessingConfig.Color
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PreprocessingConfig.Color> parser()
Returns
TypeDescription
Parser<Color>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getParserForType()

public Parser<PreprocessingConfig.Color> getParserForType()
Returns
TypeDescription
Parser<Color>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PreprocessingConfig.Color.Builder newBuilderForType()
Returns
TypeDescription
PreprocessingConfig.Color.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PreprocessingConfig.Color.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PreprocessingConfig.Color.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PreprocessingConfig.Color.Builder toBuilder()
Returns
TypeDescription
PreprocessingConfig.Color.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException