Class Camera.GetPropertiesResponse.Builder

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

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

    • getSupportsPcd

      public boolean getSupportsPcd()
       A boolean property determining whether the camera supports the return of pointcloud data
       
      bool supports_pcd = 1 [json_name = "supportsPcd"];
      Specified by:
      getSupportsPcd in interface Camera.GetPropertiesResponseOrBuilder
      Returns:
      The supportsPcd.
    • setSupportsPcd

      public Camera.GetPropertiesResponse.Builder setSupportsPcd(boolean value)
       A boolean property determining whether the camera supports the return of pointcloud data
       
      bool supports_pcd = 1 [json_name = "supportsPcd"];
      Parameters:
      value - The supportsPcd to set.
      Returns:
      This builder for chaining.
    • clearSupportsPcd

      public Camera.GetPropertiesResponse.Builder clearSupportsPcd()
       A boolean property determining whether the camera supports the return of pointcloud data
       
      bool supports_pcd = 1 [json_name = "supportsPcd"];
      Returns:
      This builder for chaining.
    • hasIntrinsicParameters

      public boolean hasIntrinsicParameters()
       Parameters for doing a perspective of a 3D scene to a 2D plane
       If camera does not provide intrinsic parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"];
      Specified by:
      hasIntrinsicParameters in interface Camera.GetPropertiesResponseOrBuilder
      Returns:
      Whether the intrinsicParameters field is set.
    • getIntrinsicParameters

      public Camera.IntrinsicParameters getIntrinsicParameters()
       Parameters for doing a perspective of a 3D scene to a 2D plane
       If camera does not provide intrinsic parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"];
      Specified by:
      getIntrinsicParameters in interface Camera.GetPropertiesResponseOrBuilder
      Returns:
      The intrinsicParameters.
    • setIntrinsicParameters

       Parameters for doing a perspective of a 3D scene to a 2D plane
       If camera does not provide intrinsic parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"];
    • setIntrinsicParameters

      public Camera.GetPropertiesResponse.Builder setIntrinsicParameters(Camera.IntrinsicParameters.Builder builderForValue)
       Parameters for doing a perspective of a 3D scene to a 2D plane
       If camera does not provide intrinsic parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"];
    • mergeIntrinsicParameters

      public Camera.GetPropertiesResponse.Builder mergeIntrinsicParameters(Camera.IntrinsicParameters value)
       Parameters for doing a perspective of a 3D scene to a 2D plane
       If camera does not provide intrinsic parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"];
    • clearIntrinsicParameters

      public Camera.GetPropertiesResponse.Builder clearIntrinsicParameters()
       Parameters for doing a perspective of a 3D scene to a 2D plane
       If camera does not provide intrinsic parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"];
    • hasDistortionParameters

      public boolean hasDistortionParameters()
       Parameters for modeling lens distortion in cameras
       If camera does not provide distortion parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"];
      Specified by:
      hasDistortionParameters in interface Camera.GetPropertiesResponseOrBuilder
      Returns:
      Whether the distortionParameters field is set.
    • getDistortionParameters

      public Camera.DistortionParameters getDistortionParameters()
       Parameters for modeling lens distortion in cameras
       If camera does not provide distortion parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"];
      Specified by:
      getDistortionParameters in interface Camera.GetPropertiesResponseOrBuilder
      Returns:
      The distortionParameters.
    • setDistortionParameters

      public Camera.GetPropertiesResponse.Builder setDistortionParameters(Camera.DistortionParameters value)
       Parameters for modeling lens distortion in cameras
       If camera does not provide distortion parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"];
    • setDistortionParameters

      public Camera.GetPropertiesResponse.Builder setDistortionParameters(Camera.DistortionParameters.Builder builderForValue)
       Parameters for modeling lens distortion in cameras
       If camera does not provide distortion parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"];
    • mergeDistortionParameters

      public Camera.GetPropertiesResponse.Builder mergeDistortionParameters(Camera.DistortionParameters value)
       Parameters for modeling lens distortion in cameras
       If camera does not provide distortion parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"];
    • clearDistortionParameters

      public Camera.GetPropertiesResponse.Builder clearDistortionParameters()
       Parameters for modeling lens distortion in cameras
       If camera does not provide distortion parameters, leave the field empty
       Initializing the parameters with 0-values is considered an error
       
      .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"];
    • getMimeTypesList

      public List<String> getMimeTypesList()
       Supported MIME types by the camera
       
      repeated string mime_types = 4 [json_name = "mimeTypes"];
      Specified by:
      getMimeTypesList in interface Camera.GetPropertiesResponseOrBuilder
      Returns:
      A list containing the mimeTypes.
    • getMimeTypesCount

      public int getMimeTypesCount()
       Supported MIME types by the camera
       
      repeated string mime_types = 4 [json_name = "mimeTypes"];
      Specified by:
      getMimeTypesCount in interface Camera.GetPropertiesResponseOrBuilder
      Returns:
      The count of mimeTypes.
    • getMimeTypes

      public String getMimeTypes(int index)
       Supported MIME types by the camera
       
      repeated string mime_types = 4 [json_name = "mimeTypes"];
      Specified by:
      getMimeTypes in interface Camera.GetPropertiesResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The mimeTypes at the given index.
    • getMimeTypesBytes

      public com.google.protobuf.ByteString getMimeTypesBytes(int index)
       Supported MIME types by the camera
       
      repeated string mime_types = 4 [json_name = "mimeTypes"];
      Specified by:
      getMimeTypesBytes in interface Camera.GetPropertiesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the mimeTypes at the given index.
    • setMimeTypes

      public Camera.GetPropertiesResponse.Builder setMimeTypes(int index, String value)
       Supported MIME types by the camera
       
      repeated string mime_types = 4 [json_name = "mimeTypes"];
      Parameters:
      index - The index to set the value at.
      value - The mimeTypes to set.
      Returns:
      This builder for chaining.
    • addMimeTypes

      public Camera.GetPropertiesResponse.Builder addMimeTypes(String value)
       Supported MIME types by the camera
       
      repeated string mime_types = 4 [json_name = "mimeTypes"];
      Parameters:
      value - The mimeTypes to add.
      Returns:
      This builder for chaining.
    • addAllMimeTypes

      public Camera.GetPropertiesResponse.Builder addAllMimeTypes(Iterable<String> values)
       Supported MIME types by the camera
       
      repeated string mime_types = 4 [json_name = "mimeTypes"];
      Parameters:
      values - The mimeTypes to add.
      Returns:
      This builder for chaining.
    • clearMimeTypes

      public Camera.GetPropertiesResponse.Builder clearMimeTypes()
       Supported MIME types by the camera
       
      repeated string mime_types = 4 [json_name = "mimeTypes"];
      Returns:
      This builder for chaining.
    • addMimeTypesBytes

      public Camera.GetPropertiesResponse.Builder addMimeTypesBytes(com.google.protobuf.ByteString value)
       Supported MIME types by the camera
       
      repeated string mime_types = 4 [json_name = "mimeTypes"];
      Parameters:
      value - The bytes of the mimeTypes to add.
      Returns:
      This builder for chaining.
    • hasFrameRate

      public boolean hasFrameRate()
       Optional camera frame rate for image capture timing
       
      optional float frame_rate = 5 [json_name = "frameRate"];
      Specified by:
      hasFrameRate in interface Camera.GetPropertiesResponseOrBuilder
      Returns:
      Whether the frameRate field is set.
    • getFrameRate

      public float getFrameRate()
       Optional camera frame rate for image capture timing
       
      optional float frame_rate = 5 [json_name = "frameRate"];
      Specified by:
      getFrameRate in interface Camera.GetPropertiesResponseOrBuilder
      Returns:
      The frameRate.
    • setFrameRate

      public Camera.GetPropertiesResponse.Builder setFrameRate(float value)
       Optional camera frame rate for image capture timing
       
      optional float frame_rate = 5 [json_name = "frameRate"];
      Parameters:
      value - The frameRate to set.
      Returns:
      This builder for chaining.
    • clearFrameRate

      public Camera.GetPropertiesResponse.Builder clearFrameRate()
       Optional camera frame rate for image capture timing
       
      optional float frame_rate = 5 [json_name = "frameRate"];
      Returns:
      This builder for chaining.