Class StaticOverlay.Builder (0.57.0)

public static final class StaticOverlay.Builder extends GeneratedMessageV3.Builder<StaticOverlay.Builder> implements StaticOverlayOrBuilder

Configuration for the static overlay.

Protobuf type google.cloud.video.livestream.v1.StaticOverlay

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StaticOverlay.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StaticOverlay.Builder
Overrides

build()

public StaticOverlay build()
Returns
Type Description
StaticOverlay

buildPartial()

public StaticOverlay buildPartial()
Returns
Type Description
StaticOverlay

clear()

public StaticOverlay.Builder clear()
Returns
Type Description
StaticOverlay.Builder
Overrides

clearAsset()

public StaticOverlay.Builder clearAsset()

Required. Asset to use for the overlaid image. The asset must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}. The asset's resource type must be image.

string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
StaticOverlay.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StaticOverlay.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StaticOverlay.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StaticOverlay.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StaticOverlay.Builder
Overrides

clearOpacity()

public StaticOverlay.Builder clearOpacity()

Optional. 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 opacity = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StaticOverlay.Builder

This builder for chaining.

clearPosition()

public StaticOverlay.Builder clearPosition()

Optional. Position of the image in terms of normalized coordinates of the upper-left corner of the image, based on output video resolution. For example, use the x and y coordinates {0, 0} to position the top-left corner of the overlay animation in the top-left corner of the output video.

.google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StaticOverlay.Builder

clearResolution()

public StaticOverlay.Builder clearResolution()

Optional. Normalized image resolution, based on output video resolution. Valid values are [0.0, 1.0]. To respect the original image aspect ratio, set either w or h to 0. To use the original image resolution, set both w and h to 0. The default is {0, 0}.

.google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StaticOverlay.Builder

clone()

public StaticOverlay.Builder clone()
Returns
Type Description
StaticOverlay.Builder
Overrides

getAsset()

public String getAsset()

Required. Asset to use for the overlaid image. The asset must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}. The asset's resource type must be image.

string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The asset.

getAssetBytes()

public ByteString getAssetBytes()

Required. Asset to use for the overlaid image. The asset must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}. The asset's resource type must be image.

string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for asset.

getDefaultInstanceForType()

public StaticOverlay getDefaultInstanceForType()
Returns
Type Description
StaticOverlay

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOpacity()

public double getOpacity()

Optional. 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 opacity = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The opacity.

getPosition()

public NormalizedCoordinate getPosition()

Optional. Position of the image in terms of normalized coordinates of the upper-left corner of the image, based on output video resolution. For example, use the x and y coordinates {0, 0} to position the top-left corner of the overlay animation in the top-left corner of the output video.

.google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NormalizedCoordinate

The position.

getPositionBuilder()

public NormalizedCoordinate.Builder getPositionBuilder()

Optional. Position of the image in terms of normalized coordinates of the upper-left corner of the image, based on output video resolution. For example, use the x and y coordinates {0, 0} to position the top-left corner of the overlay animation in the top-left corner of the output video.

.google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NormalizedCoordinate.Builder

getPositionOrBuilder()

public NormalizedCoordinateOrBuilder getPositionOrBuilder()

Optional. Position of the image in terms of normalized coordinates of the upper-left corner of the image, based on output video resolution. For example, use the x and y coordinates {0, 0} to position the top-left corner of the overlay animation in the top-left corner of the output video.

.google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NormalizedCoordinateOrBuilder

getResolution()

public NormalizedResolution getResolution()

Optional. Normalized image resolution, based on output video resolution. Valid values are [0.0, 1.0]. To respect the original image aspect ratio, set either w or h to 0. To use the original image resolution, set both w and h to 0. The default is {0, 0}.

.google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NormalizedResolution

The resolution.

getResolutionBuilder()

public NormalizedResolution.Builder getResolutionBuilder()

Optional. Normalized image resolution, based on output video resolution. Valid values are [0.0, 1.0]. To respect the original image aspect ratio, set either w or h to 0. To use the original image resolution, set both w and h to 0. The default is {0, 0}.

.google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NormalizedResolution.Builder

getResolutionOrBuilder()

public NormalizedResolutionOrBuilder getResolutionOrBuilder()

Optional. Normalized image resolution, based on output video resolution. Valid values are [0.0, 1.0]. To respect the original image aspect ratio, set either w or h to 0. To use the original image resolution, set both w and h to 0. The default is {0, 0}.

.google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NormalizedResolutionOrBuilder

hasPosition()

public boolean hasPosition()

Optional. Position of the image in terms of normalized coordinates of the upper-left corner of the image, based on output video resolution. For example, use the x and y coordinates {0, 0} to position the top-left corner of the overlay animation in the top-left corner of the output video.

.google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the position field is set.

hasResolution()

public boolean hasResolution()

Optional. Normalized image resolution, based on output video resolution. Valid values are [0.0, 1.0]. To respect the original image aspect ratio, set either w or h to 0. To use the original image resolution, set both w and h to 0. The default is {0, 0}.

.google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the resolution field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StaticOverlay other)

public StaticOverlay.Builder mergeFrom(StaticOverlay other)
Parameter
Name Description
other StaticOverlay
Returns
Type Description
StaticOverlay.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StaticOverlay.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StaticOverlay.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StaticOverlay.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StaticOverlay.Builder
Overrides

mergePosition(NormalizedCoordinate value)

public StaticOverlay.Builder mergePosition(NormalizedCoordinate value)

Optional. Position of the image in terms of normalized coordinates of the upper-left corner of the image, based on output video resolution. For example, use the x and y coordinates {0, 0} to position the top-left corner of the overlay animation in the top-left corner of the output video.

.google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value NormalizedCoordinate
Returns
Type Description
StaticOverlay.Builder

mergeResolution(NormalizedResolution value)

public StaticOverlay.Builder mergeResolution(NormalizedResolution value)

Optional. Normalized image resolution, based on output video resolution. Valid values are [0.0, 1.0]. To respect the original image aspect ratio, set either w or h to 0. To use the original image resolution, set both w and h to 0. The default is {0, 0}.

.google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value NormalizedResolution
Returns
Type Description
StaticOverlay.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StaticOverlay.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StaticOverlay.Builder
Overrides

setAsset(String value)

public StaticOverlay.Builder setAsset(String value)

Required. Asset to use for the overlaid image. The asset must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}. The asset's resource type must be image.

string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The asset to set.

Returns
Type Description
StaticOverlay.Builder

This builder for chaining.

setAssetBytes(ByteString value)

public StaticOverlay.Builder setAssetBytes(ByteString value)

Required. Asset to use for the overlaid image. The asset must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}. The asset's resource type must be image.

string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for asset to set.

Returns
Type Description
StaticOverlay.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StaticOverlay.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StaticOverlay.Builder
Overrides

setOpacity(double value)

public StaticOverlay.Builder setOpacity(double value)

Optional. 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 opacity = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value double

The opacity to set.

Returns
Type Description
StaticOverlay.Builder

This builder for chaining.

setPosition(NormalizedCoordinate value)

public StaticOverlay.Builder setPosition(NormalizedCoordinate value)

Optional. Position of the image in terms of normalized coordinates of the upper-left corner of the image, based on output video resolution. For example, use the x and y coordinates {0, 0} to position the top-left corner of the overlay animation in the top-left corner of the output video.

.google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value NormalizedCoordinate
Returns
Type Description
StaticOverlay.Builder

setPosition(NormalizedCoordinate.Builder builderForValue)

public StaticOverlay.Builder setPosition(NormalizedCoordinate.Builder builderForValue)

Optional. Position of the image in terms of normalized coordinates of the upper-left corner of the image, based on output video resolution. For example, use the x and y coordinates {0, 0} to position the top-left corner of the overlay animation in the top-left corner of the output video.

.google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue NormalizedCoordinate.Builder
Returns
Type Description
StaticOverlay.Builder

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

public StaticOverlay.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StaticOverlay.Builder
Overrides

setResolution(NormalizedResolution value)

public StaticOverlay.Builder setResolution(NormalizedResolution value)

Optional. Normalized image resolution, based on output video resolution. Valid values are [0.0, 1.0]. To respect the original image aspect ratio, set either w or h to 0. To use the original image resolution, set both w and h to 0. The default is {0, 0}.

.google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value NormalizedResolution
Returns
Type Description
StaticOverlay.Builder

setResolution(NormalizedResolution.Builder builderForValue)

public StaticOverlay.Builder setResolution(NormalizedResolution.Builder builderForValue)

Optional. Normalized image resolution, based on output video resolution. Valid values are [0.0, 1.0]. To respect the original image aspect ratio, set either w or h to 0. To use the original image resolution, set both w and h to 0. The default is {0, 0}.

.google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue NormalizedResolution.Builder
Returns
Type Description
StaticOverlay.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final StaticOverlay.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StaticOverlay.Builder
Overrides