Class Overlay.Image.Builder (0.4.3)

publicstaticfinalclass Overlay.Image.BuilderextendsGeneratedMessageV3.Builder<Overlay.Image.Builder>implementsOverlay.ImageOrBuilder

Overlaid jpeg image.

Protobuf type google.cloud.video.transcoder.v1.Overlay.Image

Inherited Members

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicOverlay.Image.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicOverlay.Imagebuild()
Returns
Type Description

buildPartial()

publicOverlay.ImagebuildPartial()
Returns
Type Description

clear()

publicOverlay.Image.Builderclear()
Returns
Type Description
Overrides

clearAlpha()

publicOverlay.Image.BuilderclearAlpha()

Target image opacity. Valid values are from 1.0 (solid, default) to 0.0 (transparent), exclusive. Set this to a value greater than 0.0.

double alpha = 3;

Returns
Type Description
Overlay.Image.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicOverlay.Image.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicOverlay.Image.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearResolution()

publicOverlay.Image.BuilderclearResolution()

Normalized image resolution, based on output video resolution. Valid values: 0.0\u20131.0. To respect the original image aspect ratio, set either x or y to 0.0. To use the original image resolution, set both x and y to 0.0.

.google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 2;

Returns
Type Description

clearUri()

publicOverlay.Image.BuilderclearUri()

Required. URI of the JPEG image in Cloud Storage. For example, gs://bucket/inputs/image.jpeg. JPEG is the only supported image type.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Overlay.Image.Builder

This builder for chaining.

clone()

publicOverlay.Image.Builderclone()
Returns
Type Description
Overrides

getAlpha()

publicdoublegetAlpha()

Target image opacity. Valid values are from 1.0 (solid, default) to 0.0 (transparent), exclusive. Set this to a value greater than 0.0.

double alpha = 3;

Returns
Type Description
double

The alpha.

getDefaultInstanceForType()

publicOverlay.ImagegetDefaultInstanceForType()
Returns
Type Description

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getResolution()

publicOverlay.NormalizedCoordinategetResolution()

Normalized image resolution, based on output video resolution. Valid values: 0.0\u20131.0. To respect the original image aspect ratio, set either x or y to 0.0. To use the original image resolution, set both x and y to 0.0.

.google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 2;

Returns
Type Description

getResolutionBuilder()

publicOverlay.NormalizedCoordinate.BuildergetResolutionBuilder()

Normalized image resolution, based on output video resolution. Valid values: 0.0\u20131.0. To respect the original image aspect ratio, set either x or y to 0.0. To use the original image resolution, set both x and y to 0.0.

.google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 2;

Returns
Type Description

getResolutionOrBuilder()

publicOverlay.NormalizedCoordinateOrBuildergetResolutionOrBuilder()

Normalized image resolution, based on output video resolution. Valid values: 0.0\u20131.0. To respect the original image aspect ratio, set either x or y to 0.0. To use the original image resolution, set both x and y to 0.0.

.google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 2;

Returns
Type Description

getUri()

publicStringgetUri()

Required. URI of the JPEG image in Cloud Storage. For example, gs://bucket/inputs/image.jpeg. JPEG is the only supported image type.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The uri.

getUriBytes()

publicByteStringgetUriBytes()

Required. URI of the JPEG image in Cloud Storage. For example, gs://bucket/inputs/image.jpeg. JPEG is the only supported image type.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for uri.

hasResolution()

publicbooleanhasResolution()

Normalized image resolution, based on output video resolution. Valid values: 0.0\u20131.0. To respect the original image aspect ratio, set either x or y to 0.0. To use the original image resolution, set both x and y to 0.0.

.google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 2;

Returns
Type Description
boolean

Whether the resolution field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(Overlay.Image other)

publicOverlay.Image.BuildermergeFrom(Overlay.Imageother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicOverlay.Image.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicOverlay.Image.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeResolution(Overlay.NormalizedCoordinate value)

publicOverlay.Image.BuildermergeResolution(Overlay.NormalizedCoordinatevalue)

Normalized image resolution, based on output video resolution. Valid values: 0.0\u20131.0. To respect the original image aspect ratio, set either x or y to 0.0. To use the original image resolution, set both x and y to 0.0.

.google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 2;

Parameter
Name Description
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalOverlay.Image.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setAlpha(double value)

publicOverlay.Image.BuildersetAlpha(doublevalue)

Target image opacity. Valid values are from 1.0 (solid, default) to 0.0 (transparent), exclusive. Set this to a value greater than 0.0.

double alpha = 3;

Parameter
Name Description
value double

The alpha to set.

Returns
Type Description
Overlay.Image.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicOverlay.Image.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

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

publicOverlay.Image.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setResolution(Overlay.NormalizedCoordinate value)

publicOverlay.Image.BuildersetResolution(Overlay.NormalizedCoordinatevalue)

Normalized image resolution, based on output video resolution. Valid values: 0.0\u20131.0. To respect the original image aspect ratio, set either x or y to 0.0. To use the original image resolution, set both x and y to 0.0.

.google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 2;

Parameter
Name Description
Returns
Type Description

setResolution(Overlay.NormalizedCoordinate.Builder builderForValue)

publicOverlay.Image.BuildersetResolution(Overlay.NormalizedCoordinate.BuilderbuilderForValue)

Normalized image resolution, based on output video resolution. Valid values: 0.0\u20131.0. To respect the original image aspect ratio, set either x or y to 0.0. To use the original image resolution, set both x and y to 0.0.

.google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 2;

Parameter
Name Description
Returns
Type Description

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalOverlay.Image.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setUri(String value)

publicOverlay.Image.BuildersetUri(Stringvalue)

Required. URI of the JPEG image in Cloud Storage. For example, gs://bucket/inputs/image.jpeg. JPEG is the only supported image type.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
Overlay.Image.Builder

This builder for chaining.

setUriBytes(ByteString value)

publicOverlay.Image.BuildersetUriBytes(ByteStringvalue)

Required. URI of the JPEG image in Cloud Storage. For example, gs://bucket/inputs/image.jpeg. JPEG is the only supported image type.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
Overlay.Image.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.