Package com.viam.component.camera.v1
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllMimeTypes
(Iterable<String> values) Supported MIME types by the cameraaddMimeTypes
(String value) Supported MIME types by the cameraaddMimeTypesBytes
(com.google.protobuf.ByteString value) Supported MIME types by the cameraParameters 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 errorOptional camera frame rate for image capture timingParameters 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 errorSupported MIME types by the cameraA boolean property determining whether the camera supports the return of pointcloud dataParameters 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 errorfloat
Optional camera frame rate for image capture timingParameters 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 errorgetMimeTypes
(int index) Supported MIME types by the cameracom.google.protobuf.ByteString
getMimeTypesBytes
(int index) Supported MIME types by the cameraint
Supported MIME types by the cameraSupported MIME types by the cameraboolean
A boolean property determining whether the camera supports the return of pointcloud databoolean
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 errorboolean
Optional camera frame rate for image capture timingboolean
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 errorParameters 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 errorParameters 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 errorParameters 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 errorsetDistortionParameters
(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 errorsetFrameRate
(float value) Optional camera frame rate for image capture timingParameters 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 errorsetIntrinsicParameters
(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 errorsetMimeTypes
(int index, String value) Supported MIME types by the camerasetSupportsPcd
(boolean value) A boolean property determining whether the camera supports the return of pointcloud dataMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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 interfaceCamera.GetPropertiesResponseOrBuilder
- Returns:
- The supportsPcd.
-
setSupportsPcd
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
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 interfaceCamera.GetPropertiesResponseOrBuilder
- Returns:
- Whether the intrinsicParameters field is set.
-
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 interfaceCamera.GetPropertiesResponseOrBuilder
- Returns:
- The intrinsicParameters.
-
setIntrinsicParameters
public Camera.GetPropertiesResponse.Builder setIntrinsicParameters(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"];
-
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
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 interfaceCamera.GetPropertiesResponseOrBuilder
- Returns:
- Whether the distortionParameters field is set.
-
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 interfaceCamera.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
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
Supported MIME types by the camera
repeated string mime_types = 4 [json_name = "mimeTypes"];
- Specified by:
getMimeTypesList
in interfaceCamera.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 interfaceCamera.GetPropertiesResponseOrBuilder
- Returns:
- The count of mimeTypes.
-
getMimeTypes
Supported MIME types by the camera
repeated string mime_types = 4 [json_name = "mimeTypes"];
- Specified by:
getMimeTypes
in interfaceCamera.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 interfaceCamera.GetPropertiesResponseOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the mimeTypes at the given index.
-
setMimeTypes
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
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
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
Supported MIME types by the camera
repeated string mime_types = 4 [json_name = "mimeTypes"];
- Returns:
- This builder for chaining.
-
addMimeTypesBytes
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 interfaceCamera.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 interfaceCamera.GetPropertiesResponseOrBuilder
- Returns:
- The frameRate.
-
setFrameRate
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
Optional camera frame rate for image capture timing
optional float frame_rate = 5 [json_name = "frameRate"];
- Returns:
- This builder for chaining.
-