public static final class Overlay.Image.Builder extends GeneratedMessageV3.Builder<Overlay.Image.Builder> implements Overlay.ImageOrBuilder
Overlaid image.
Protobuf type google.cloud.video.transcoder.v1.Overlay.Image
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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Overlay.Image.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Overlay.Image build()
buildPartial()
public Overlay.Image buildPartial()
clear()
public Overlay.Image.Builder clear()
Overrides
clearAlpha()
public Overlay.Image.Builder clearAlpha()
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;
clearField(Descriptors.FieldDescriptor field)
public Overlay.Image.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Overlay.Image.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResolution()
public Overlay.Image.Builder clearResolution()
Normalized image resolution, based on output video resolution. Valid
values: 0.0
–1.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;
clearUri()
public Overlay.Image.Builder clearUri()
Required. URI of the image in Cloud Storage. For example,
gs://bucket/inputs/image.png
. Only PNG and JPEG images are supported.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public Overlay.Image.Builder clone()
Overrides
getAlpha()
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()
public Overlay.Image getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getResolution()
public Overlay.NormalizedCoordinate getResolution()
Normalized image resolution, based on output video resolution. Valid
values: 0.0
–1.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;
getResolutionBuilder()
public Overlay.NormalizedCoordinate.Builder getResolutionBuilder()
Normalized image resolution, based on output video resolution. Valid
values: 0.0
–1.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;
getResolutionOrBuilder()
public Overlay.NormalizedCoordinateOrBuilder getResolutionOrBuilder()
Normalized image resolution, based on output video resolution. Valid
values: 0.0
–1.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;
getUri()
Required. URI of the image in Cloud Storage. For example,
gs://bucket/inputs/image.png
. Only PNG and JPEG images are supported.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The uri.
|
getUriBytes()
public ByteString getUriBytes()
Required. URI of the image in Cloud Storage. For example,
gs://bucket/inputs/image.png
. Only PNG and JPEG images are supported.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for uri.
|
hasResolution()
public boolean hasResolution()
Normalized image resolution, based on output video resolution. Valid
values: 0.0
–1.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()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Overlay.Image other)
public Overlay.Image.Builder mergeFrom(Overlay.Image other)
public Overlay.Image.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Overlay.Image.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeResolution(Overlay.NormalizedCoordinate value)
public Overlay.Image.Builder mergeResolution(Overlay.NormalizedCoordinate value)
Normalized image resolution, based on output video resolution. Valid
values: 0.0
–1.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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Overlay.Image.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAlpha(double value)
public Overlay.Image.Builder setAlpha(double value)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Overlay.Image.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Overlay.Image.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setResolution(Overlay.NormalizedCoordinate value)
public Overlay.Image.Builder setResolution(Overlay.NormalizedCoordinate value)
Normalized image resolution, based on output video resolution. Valid
values: 0.0
–1.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;
setResolution(Overlay.NormalizedCoordinate.Builder builderForValue)
public Overlay.Image.Builder setResolution(Overlay.NormalizedCoordinate.Builder builderForValue)
Normalized image resolution, based on output video resolution. Valid
values: 0.0
–1.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;
setUnknownFields(UnknownFieldSet unknownFields)
public final Overlay.Image.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setUri(String value)
public Overlay.Image.Builder setUri(String value)
Required. URI of the image in Cloud Storage. For example,
gs://bucket/inputs/image.png
. Only PNG and JPEG images are supported.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The uri to set.
|
setUriBytes(ByteString value)
public Overlay.Image.Builder setUriBytes(ByteString value)
Required. URI of the image in Cloud Storage. For example,
gs://bucket/inputs/image.png
. Only PNG and JPEG images are supported.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for uri to set.
|