public static final class Overlay.Image.Builder extends GeneratedMessageV3.Builder<Overlay.Image.Builder> implements Overlay.ImageOrBuilder
Overlaid jpeg image.
Protobuf type google.cloud.video.transcoder.v1.Overlay.Image
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Overlay.Image.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Overlay.Image build()
Returns
buildPartial()
public Overlay.Image buildPartial()
Returns
clear()
public Overlay.Image.Builder clear()
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public Overlay.Image.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Overlay.Image.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearResolution()
public Overlay.Image.Builder clearResolution()
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
clearUri()
public Overlay.Image.Builder clearUri()
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
clone()
public Overlay.Image.Builder clone()
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getResolution()
public Overlay.NormalizedCoordinate getResolution()
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
getResolutionBuilder()
public Overlay.NormalizedCoordinate.Builder getResolutionBuilder()
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
getResolutionOrBuilder()
public Overlay.NormalizedCoordinateOrBuilder getResolutionOrBuilder()
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
getUri()
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
getUriBytes()
public ByteString getUriBytes()
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
hasResolution()
public boolean hasResolution()
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()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Overlay.Image other)
public Overlay.Image.Builder mergeFrom(Overlay.Image other)
Parameter
Returns
public Overlay.Image.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Overlay.Image.Builder mergeFrom(Message other)
Parameter
Returns
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
\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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Overlay.Image.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Overlay.Image.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Overlay.Image.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
\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
Returns
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
\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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Overlay.Image.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setUri(String value)
public Overlay.Image.Builder setUri(String value)
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
setUriBytes(ByteString value)
public Overlay.Image.Builder setUriBytes(ByteString value)
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