Package com.viam.common.v1
Class Common.Geometry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Common.Geometry,Common.Geometry.Builder>
com.viam.common.v1.Common.Geometry.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Common.GeometryOrBuilder
,Cloneable
- Enclosing class:
- Common.Geometry
public static final class Common.Geometry.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Common.Geometry,Common.Geometry.Builder>
implements Common.GeometryOrBuilder
Geometry contains the dimensions of a given geometry and the pose of its center. The geometry is one of either a sphere or a box.Protobuf type
viam.common.v1.Geometry
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionclearBox()
.viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
Pose of a geometries center pointLabel of the geometry..viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
getBox()
.viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
Pose of a geometries center pointgetLabel()
Label of the geometry.com.google.protobuf.ByteString
Label of the geometry..viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
boolean
hasBox()
.viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
boolean
.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
boolean
Pose of a geometries center pointboolean
.viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
mergeBox
(Common.RectangularPrism value) .viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
mergeCapsule
(Common.Capsule value) .viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
mergeCenter
(Common.Pose value) Pose of a geometries center pointmergeSphere
(Common.Sphere value) .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
setBox
(Common.RectangularPrism value) .viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
setBox
(Common.RectangularPrism.Builder builderForValue) .viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
setCapsule
(Common.Capsule value) .viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
setCapsule
(Common.Capsule.Builder builderForValue) .viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
setCenter
(Common.Pose value) Pose of a geometries center pointsetCenter
(Common.Pose.Builder builderForValue) Pose of a geometries center pointLabel of the geometry.setLabelBytes
(com.google.protobuf.ByteString value) Label of the geometry.setSphere
(Common.Sphere value) .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
setSphere
(Common.Sphere.Builder builderForValue) .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
Methods 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
-
getGeometryTypeCase
- Specified by:
getGeometryTypeCase
in interfaceCommon.GeometryOrBuilder
-
clearGeometryType
-
hasCenter
public boolean hasCenter()Pose of a geometries center point
.viam.common.v1.Pose center = 1 [json_name = "center"];
- Specified by:
hasCenter
in interfaceCommon.GeometryOrBuilder
- Returns:
- Whether the center field is set.
-
getCenter
Pose of a geometries center point
.viam.common.v1.Pose center = 1 [json_name = "center"];
- Specified by:
getCenter
in interfaceCommon.GeometryOrBuilder
- Returns:
- The center.
-
setCenter
Pose of a geometries center point
.viam.common.v1.Pose center = 1 [json_name = "center"];
-
setCenter
Pose of a geometries center point
.viam.common.v1.Pose center = 1 [json_name = "center"];
-
mergeCenter
Pose of a geometries center point
.viam.common.v1.Pose center = 1 [json_name = "center"];
-
clearCenter
Pose of a geometries center point
.viam.common.v1.Pose center = 1 [json_name = "center"];
-
hasSphere
public boolean hasSphere().viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
- Specified by:
hasSphere
in interfaceCommon.GeometryOrBuilder
- Returns:
- Whether the sphere field is set.
-
getSphere
.viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
- Specified by:
getSphere
in interfaceCommon.GeometryOrBuilder
- Returns:
- The sphere.
-
setSphere
.viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
-
setSphere
.viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
-
mergeSphere
.viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
-
clearSphere
.viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];
-
hasBox
public boolean hasBox().viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
- Specified by:
hasBox
in interfaceCommon.GeometryOrBuilder
- Returns:
- Whether the box field is set.
-
getBox
.viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
- Specified by:
getBox
in interfaceCommon.GeometryOrBuilder
- Returns:
- The box.
-
setBox
.viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
-
setBox
.viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
-
mergeBox
.viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
-
clearBox
.viam.common.v1.RectangularPrism box = 3 [json_name = "box"];
-
hasCapsule
public boolean hasCapsule().viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
- Specified by:
hasCapsule
in interfaceCommon.GeometryOrBuilder
- Returns:
- Whether the capsule field is set.
-
getCapsule
.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
- Specified by:
getCapsule
in interfaceCommon.GeometryOrBuilder
- Returns:
- The capsule.
-
setCapsule
.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
-
setCapsule
.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
-
mergeCapsule
.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
-
clearCapsule
.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];
-
getLabel
Label of the geometry. If none supplied, will be an empty string.
string label = 4 [json_name = "label"];
- Specified by:
getLabel
in interfaceCommon.GeometryOrBuilder
- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()Label of the geometry. If none supplied, will be an empty string.
string label = 4 [json_name = "label"];
- Specified by:
getLabelBytes
in interfaceCommon.GeometryOrBuilder
- Returns:
- The bytes for label.
-
setLabel
Label of the geometry. If none supplied, will be an empty string.
string label = 4 [json_name = "label"];
- Parameters:
value
- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
Label of the geometry. If none supplied, will be an empty string.
string label = 4 [json_name = "label"];
- Returns:
- This builder for chaining.
-
setLabelBytes
Label of the geometry. If none supplied, will be an empty string.
string label = 4 [json_name = "label"];
- Parameters:
value
- The bytes for label to set.- Returns:
- This builder for chaining.
-