Package com.viam.common.v1
Class Common.Geometry
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Common.Geometry,Common.Geometry.Builder>
com.viam.common.v1.Common.Geometry
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Common.GeometryOrBuilder
- Enclosing class:
- Common
public static final class Common.Geometry
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classGeometry contains the dimensions of a given geometry and the pose of its center.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) getBox().viam.common.v1.RectangularPrism box = 3 [json_name = "box"];.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];Pose of a geometries center pointstatic Common.GeometrygetLabel()Label of the geometry.com.google.protobuf.ByteStringLabel of the geometry.getMesh().viam.common.v1.Mesh mesh = 6 [json_name = "mesh"];.viam.common.v1.PointCloud pointcloud = 7 [json_name = "pointcloud"];.viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];booleanhasBox().viam.common.v1.RectangularPrism box = 3 [json_name = "box"];boolean.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];booleanPose of a geometries center pointbooleanhasMesh().viam.common.v1.Mesh mesh = 6 [json_name = "mesh"];boolean.viam.common.v1.PointCloud pointcloud = 7 [json_name = "pointcloud"];boolean.viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];static Common.Geometry.Builderstatic Common.Geometry.BuildernewBuilder(Common.Geometry prototype) static Common.GeometryparseDelimitedFrom(InputStream input) static Common.GeometryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.GeometryparseFrom(byte[] data) static Common.GeometryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.GeometryparseFrom(com.google.protobuf.ByteString data) static Common.GeometryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.GeometryparseFrom(com.google.protobuf.CodedInputStream input) static Common.GeometryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.GeometryparseFrom(InputStream input) static Common.GeometryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.GeometryparseFrom(ByteBuffer data) static Common.GeometryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Common.Geometry>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
CENTER_FIELD_NUMBER
public static final int CENTER_FIELD_NUMBER- See Also:
-
SPHERE_FIELD_NUMBER
public static final int SPHERE_FIELD_NUMBER- See Also:
-
BOX_FIELD_NUMBER
public static final int BOX_FIELD_NUMBER- See Also:
-
CAPSULE_FIELD_NUMBER
public static final int CAPSULE_FIELD_NUMBER- See Also:
-
MESH_FIELD_NUMBER
public static final int MESH_FIELD_NUMBER- See Also:
-
POINTCLOUD_FIELD_NUMBER
public static final int POINTCLOUD_FIELD_NUMBER- See Also:
-
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER- See Also:
-
-
Method Details
-
getGeometryTypeCase
- Specified by:
getGeometryTypeCasein interfaceCommon.GeometryOrBuilder
-
hasCenter
public boolean hasCenter()Pose of a geometries center point
.viam.common.v1.Pose center = 1 [json_name = "center"];- Specified by:
hasCenterin 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:
getCenterin interfaceCommon.GeometryOrBuilder- Returns:
- The center.
-
hasSphere
public boolean hasSphere().viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];- Specified by:
hasSpherein interfaceCommon.GeometryOrBuilder- Returns:
- Whether the sphere field is set.
-
getSphere
.viam.common.v1.Sphere sphere = 2 [json_name = "sphere"];- Specified by:
getSpherein interfaceCommon.GeometryOrBuilder- Returns:
- The sphere.
-
hasBox
public boolean hasBox().viam.common.v1.RectangularPrism box = 3 [json_name = "box"];- Specified by:
hasBoxin interfaceCommon.GeometryOrBuilder- Returns:
- Whether the box field is set.
-
getBox
.viam.common.v1.RectangularPrism box = 3 [json_name = "box"];- Specified by:
getBoxin interfaceCommon.GeometryOrBuilder- Returns:
- The box.
-
hasCapsule
public boolean hasCapsule().viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];- Specified by:
hasCapsulein interfaceCommon.GeometryOrBuilder- Returns:
- Whether the capsule field is set.
-
getCapsule
.viam.common.v1.Capsule capsule = 5 [json_name = "capsule"];- Specified by:
getCapsulein interfaceCommon.GeometryOrBuilder- Returns:
- The capsule.
-
hasMesh
public boolean hasMesh().viam.common.v1.Mesh mesh = 6 [json_name = "mesh"];- Specified by:
hasMeshin interfaceCommon.GeometryOrBuilder- Returns:
- Whether the mesh field is set.
-
getMesh
.viam.common.v1.Mesh mesh = 6 [json_name = "mesh"];- Specified by:
getMeshin interfaceCommon.GeometryOrBuilder- Returns:
- The mesh.
-
hasPointcloud
public boolean hasPointcloud().viam.common.v1.PointCloud pointcloud = 7 [json_name = "pointcloud"];- Specified by:
hasPointcloudin interfaceCommon.GeometryOrBuilder- Returns:
- Whether the pointcloud field is set.
-
getPointcloud
.viam.common.v1.PointCloud pointcloud = 7 [json_name = "pointcloud"];- Specified by:
getPointcloudin interfaceCommon.GeometryOrBuilder- Returns:
- The pointcloud.
-
getLabel
Label of the geometry. If none supplied, will be an empty string.
string label = 4 [json_name = "label"];- Specified by:
getLabelin 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:
getLabelBytesin interfaceCommon.GeometryOrBuilder- Returns:
- The bytes for label.
-
parseFrom
public static Common.Geometry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Geometry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Geometry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Geometry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Geometry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Geometry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Common.Geometry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Common.Geometry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Common.Geometry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Common.Geometry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Common.Geometry,Common.Geometry.Builder>
-
getDefaultInstance
-
parser
-