Class Overlay.Image.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Overlay.Image.Builder>
com.google.cloud.video.transcoder.v1.Overlay.Image.Builder
- All Implemented Interfaces:
Overlay.ImageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Overlay.Image
public static final class Overlay.Image.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Overlay.Image.Builder>
implements Overlay.ImageOrBuilder
Overlaid image.Protobuf type
google.cloud.video.transcoder.v1.Overlay.Image-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Target image opacity.Normalized image resolution, based on output video resolution.clearUri()Required.doublegetAlpha()Target image opacity.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorNormalized image resolution, based on output video resolution.Normalized image resolution, based on output video resolution.Normalized image resolution, based on output video resolution.getUri()Required.com.google.protobuf.ByteStringRequired.booleanNormalized image resolution, based on output video resolution.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Overlay.Image other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Normalized image resolution, based on output video resolution.setAlpha(double value) Target image opacity.Normalized image resolution, based on output video resolution.setResolution(Overlay.NormalizedCoordinate.Builder builderForValue) Normalized image resolution, based on output video resolution.Required.setUriBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Overlay.Image.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Overlay.Image.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Overlay.Image.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Overlay.Image.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Overlay.Image.Builder>
-
mergeFrom
public Overlay.Image.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Overlay.Image.Builder>- Throws:
IOException
-
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];- Specified by:
getUriin interfaceOverlay.ImageOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.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];- Specified by:
getUriBytesin interfaceOverlay.ImageOrBuilder- Returns:
- The bytes for uri.
-
setUri
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];- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setUriBytes
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];- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasResolutionin interfaceOverlay.ImageOrBuilder- Returns:
- Whether the resolution field is set.
-
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;- Specified by:
getResolutionin interfaceOverlay.ImageOrBuilder- Returns:
- The resolution.
-
setResolution
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
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; -
mergeResolution
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; -
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; -
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
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;- Specified by:
getResolutionOrBuilderin interfaceOverlay.ImageOrBuilder
-
getAlpha
public double 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;- Specified by:
getAlphain interfaceOverlay.ImageOrBuilder- Returns:
- The alpha.
-
setAlpha
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;- Parameters:
value- The alpha to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-