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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Overlay.Image.Builder>
    • clear

      public Overlay.Image.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Overlay.Image.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Overlay.Image.Builder>
    • getDefaultInstanceForType

      public Overlay.Image getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Overlay.Image build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Overlay.Image buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Overlay.Image.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Overlay.Image.Builder>
    • mergeFrom

      public Overlay.Image.Builder mergeFrom(Overlay.Image other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Overlay.Image.Builder>
      Throws:
      IOException
    • getUri

      public String 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:
      getUri in interface Overlay.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:
      getUriBytes in interface Overlay.ImageOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      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];
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • 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];
      Returns:
      This builder for chaining.
    • setUriBytes

      public Overlay.Image.Builder setUriBytes(com.google.protobuf.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];
      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:
      hasResolution in interface Overlay.ImageOrBuilder
      Returns:
      Whether the resolution field is set.
    • 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;
      Specified by:
      getResolution in interface Overlay.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

      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;
    • mergeResolution

      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;
    • 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;
    • 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;
      Specified by:
      getResolutionOrBuilder in interface Overlay.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:
      getAlpha in interface Overlay.ImageOrBuilder
      Returns:
      The alpha.
    • setAlpha

      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;
      Parameters:
      value - The alpha to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.