Package com.viam.component.camera.v1
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionformat of the response image bytesimage in bytesthe name of the sensor where the image came fromformat of the response image bytesint
format of the response image bytescom.google.protobuf.ByteString
getImage()
image in bytesthe name of the sensor where the image came fromcom.google.protobuf.ByteString
the name of the sensor where the image came fromsetFormat
(Camera.Format value) format of the response image bytessetFormatValue
(int value) format of the response image bytessetImage
(com.google.protobuf.ByteString value) image in bytessetSourceName
(String value) the name of the sensor where the image came fromsetSourceNameBytes
(com.google.protobuf.ByteString value) the name of the sensor where the image came fromMethods 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
-
getSourceName
the name of the sensor where the image came from
string source_name = 1 [json_name = "sourceName"];
- Specified by:
getSourceName
in interfaceCamera.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 interfaceCamera.ImageOrBuilder
- Returns:
- The bytes for sourceName.
-
setSourceName
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
the name of the sensor where the image came from
string source_name = 1 [json_name = "sourceName"];
- Returns:
- This builder for chaining.
-
setSourceNameBytes
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 interfaceCamera.ImageOrBuilder
- Returns:
- The enum numeric value on the wire for format.
-
setFormatValue
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
format of the response image bytes
.viam.component.camera.v1.Format format = 2 [json_name = "format"];
- Specified by:
getFormat
in interfaceCamera.ImageOrBuilder
- Returns:
- The format.
-
setFormat
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
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 interfaceCamera.ImageOrBuilder
- Returns:
- The image.
-
setImage
image in bytes
bytes image = 3 [json_name = "image"];
- Parameters:
value
- The image to set.- Returns:
- This builder for chaining.
-
clearImage
image in bytes
bytes image = 3 [json_name = "image"];
- Returns:
- This builder for chaining.
-