Class Camera.Image.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Camera.Image,Camera.Image.Builder>
com.viam.component.camera.v1.Camera.Image.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Camera.ImageOrBuilder, Cloneable
Enclosing class:
Camera.Image

public static final class Camera.Image.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Camera.Image,Camera.Image.Builder> implements Camera.ImageOrBuilder
Protobuf type viam.component.camera.v1.Image
  • Method Details

    • getSourceName

      public String getSourceName()
       the name of the sensor where the image came from
       
      string source_name = 1 [json_name = "sourceName"];
      Specified by:
      getSourceName in interface Camera.ImageOrBuilder
      Returns:
      The sourceName.
    • getSourceNameBytes

      public com.google.protobuf.ByteString getSourceNameBytes()
       the name of the sensor where the image came from
       
      string source_name = 1 [json_name = "sourceName"];
      Specified by:
      getSourceNameBytes in interface Camera.ImageOrBuilder
      Returns:
      The bytes for sourceName.
    • setSourceName

      public Camera.Image.Builder setSourceName(String value)
       the name of the sensor where the image came from
       
      string source_name = 1 [json_name = "sourceName"];
      Parameters:
      value - The sourceName to set.
      Returns:
      This builder for chaining.
    • clearSourceName

      public Camera.Image.Builder clearSourceName()
       the name of the sensor where the image came from
       
      string source_name = 1 [json_name = "sourceName"];
      Returns:
      This builder for chaining.
    • setSourceNameBytes

      public Camera.Image.Builder setSourceNameBytes(com.google.protobuf.ByteString value)
       the name of the sensor where the image came from
       
      string source_name = 1 [json_name = "sourceName"];
      Parameters:
      value - The bytes for sourceName to set.
      Returns:
      This builder for chaining.
    • getFormatValue

      public int getFormatValue()
       format of the response image bytes
       
      .viam.component.camera.v1.Format format = 2 [json_name = "format"];
      Specified by:
      getFormatValue in interface Camera.ImageOrBuilder
      Returns:
      The enum numeric value on the wire for format.
    • setFormatValue

      public Camera.Image.Builder setFormatValue(int value)
       format of the response image bytes
       
      .viam.component.camera.v1.Format format = 2 [json_name = "format"];
      Parameters:
      value - The format to set.
      Returns:
      This builder for chaining.
    • getFormat

      public Camera.Format getFormat()
       format of the response image bytes
       
      .viam.component.camera.v1.Format format = 2 [json_name = "format"];
      Specified by:
      getFormat in interface Camera.ImageOrBuilder
      Returns:
      The format.
    • setFormat

      public Camera.Image.Builder setFormat(Camera.Format value)
       format of the response image bytes
       
      .viam.component.camera.v1.Format format = 2 [json_name = "format"];
      Parameters:
      value - The enum numeric value on the wire for format to set.
      Returns:
      This builder for chaining.
    • clearFormat

      public Camera.Image.Builder clearFormat()
       format of the response image bytes
       
      .viam.component.camera.v1.Format format = 2 [json_name = "format"];
      Returns:
      This builder for chaining.
    • getImage

      public com.google.protobuf.ByteString getImage()
       image in bytes
       
      bytes image = 3 [json_name = "image"];
      Specified by:
      getImage in interface Camera.ImageOrBuilder
      Returns:
      The image.
    • setImage

      public Camera.Image.Builder setImage(com.google.protobuf.ByteString value)
       image in bytes
       
      bytes image = 3 [json_name = "image"];
      Parameters:
      value - The image to set.
      Returns:
      This builder for chaining.
    • clearImage

      public Camera.Image.Builder clearImage()
       image in bytes
       
      bytes image = 3 [json_name = "image"];
      Returns:
      This builder for chaining.