Class Vision.GetDetectionsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Vision.GetDetectionsRequest,Vision.GetDetectionsRequest.Builder>
com.viam.service.vision.v1.Vision.GetDetectionsRequest.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Vision.GetDetectionsRequestOrBuilder, Cloneable
Enclosing class:
Vision.GetDetectionsRequest

public static final class Vision.GetDetectionsRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Vision.GetDetectionsRequest,Vision.GetDetectionsRequest.Builder> implements Vision.GetDetectionsRequestOrBuilder
Protobuf type viam.service.vision.v1.GetDetectionsRequest
  • Method Details

    • getName

      public String getName()
       name of the vision service
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Vision.GetDetectionsRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       name of the vision service
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface Vision.GetDetectionsRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       name of the vision service
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       name of the vision service
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Vision.GetDetectionsRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       name of the vision service
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getImage

      public com.google.protobuf.ByteString getImage()
       the image, encoded as bytes
       
      bytes image = 2 [json_name = "image"];
      Specified by:
      getImage in interface Vision.GetDetectionsRequestOrBuilder
      Returns:
      The image.
    • setImage

      public Vision.GetDetectionsRequest.Builder setImage(com.google.protobuf.ByteString value)
       the image, encoded as bytes
       
      bytes image = 2 [json_name = "image"];
      Parameters:
      value - The image to set.
      Returns:
      This builder for chaining.
    • clearImage

       the image, encoded as bytes
       
      bytes image = 2 [json_name = "image"];
      Returns:
      This builder for chaining.
    • getWidth

      public long getWidth()
       the width of the image
       
      int64 width = 3 [json_name = "width"];
      Specified by:
      getWidth in interface Vision.GetDetectionsRequestOrBuilder
      Returns:
      The width.
    • setWidth

      public Vision.GetDetectionsRequest.Builder setWidth(long value)
       the width of the image
       
      int64 width = 3 [json_name = "width"];
      Parameters:
      value - The width to set.
      Returns:
      This builder for chaining.
    • clearWidth

       the width of the image
       
      int64 width = 3 [json_name = "width"];
      Returns:
      This builder for chaining.
    • getHeight

      public long getHeight()
       the height of the image
       
      int64 height = 4 [json_name = "height"];
      Specified by:
      getHeight in interface Vision.GetDetectionsRequestOrBuilder
      Returns:
      The height.
    • setHeight

      public Vision.GetDetectionsRequest.Builder setHeight(long value)
       the height of the image
       
      int64 height = 4 [json_name = "height"];
      Parameters:
      value - The height to set.
      Returns:
      This builder for chaining.
    • clearHeight

       the height of the image
       
      int64 height = 4 [json_name = "height"];
      Returns:
      This builder for chaining.
    • getMimeType

      public String getMimeType()
       the actual MIME type of image
       
      string mime_type = 5 [json_name = "mimeType"];
      Specified by:
      getMimeType in interface Vision.GetDetectionsRequestOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       the actual MIME type of image
       
      string mime_type = 5 [json_name = "mimeType"];
      Specified by:
      getMimeTypeBytes in interface Vision.GetDetectionsRequestOrBuilder
      Returns:
      The bytes for mimeType.
    • setMimeType

      public Vision.GetDetectionsRequest.Builder setMimeType(String value)
       the actual MIME type of image
       
      string mime_type = 5 [json_name = "mimeType"];
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

      public Vision.GetDetectionsRequest.Builder clearMimeType()
       the actual MIME type of image
       
      string mime_type = 5 [json_name = "mimeType"];
      Returns:
      This builder for chaining.
    • setMimeTypeBytes

      public Vision.GetDetectionsRequest.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
       the actual MIME type of image
       
      string mime_type = 5 [json_name = "mimeType"];
      Parameters:
      value - The bytes for mimeType to set.
      Returns:
      This builder for chaining.
    • hasExtra

      public boolean hasExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      hasExtra in interface Vision.GetDetectionsRequestOrBuilder
      Returns:
      Whether the extra field is set.
    • getExtra

      public com.google.protobuf.Struct getExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      getExtra in interface Vision.GetDetectionsRequestOrBuilder
      Returns:
      The extra.
    • setExtra

      public Vision.GetDetectionsRequest.Builder setExtra(com.google.protobuf.Struct value)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • setExtra

      public Vision.GetDetectionsRequest.Builder setExtra(com.google.protobuf.Struct.Builder builderForValue)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • mergeExtra

      public Vision.GetDetectionsRequest.Builder mergeExtra(com.google.protobuf.Struct value)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • clearExtra

       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];