Package com.viam.common.v1
Class Common.KinematicModel.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Common.KinematicModel,Common.KinematicModel.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Common.KinematicModel,Common.KinematicModel.Builder>
com.viam.common.v1.Common.KinematicModel.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Common.KinematicModelOrBuilder,Cloneable
- Enclosing class:
Common.KinematicModel
public static final class Common.KinematicModel.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Common.KinematicModel,Common.KinematicModel.Builder>
implements Common.KinematicModelOrBuilder
KinematicModel describes a component's kinematics as a tree of links and joints. Its proto JSON encoding is also the on-disk kinematics file format.Protobuf type
viam.common.v1.KinematicModel-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllJoints(Iterable<? extends Common.KinematicJoint> values) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];addAllLinks(Iterable<? extends Common.KinematicLink> values) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];addAllOutputFrames(Iterable<String> values) Frames whose poses the model reportsaddJoints(int index, Common.KinematicJoint value) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];addJoints(int index, Common.KinematicJoint.Builder builderForValue) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];addJoints(Common.KinematicJoint value) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];addJoints(Common.KinematicJoint.Builder builderForValue) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];addLinks(int index, Common.KinematicLink value) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];addLinks(int index, Common.KinematicLink.Builder builderForValue) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];addLinks(Common.KinematicLink value) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];addLinks(Common.KinematicLink.Builder builderForValue) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];addOutputFrames(String value) Frames whose poses the model reportsaddOutputFramesBytes(com.google.protobuf.ByteString value) Frames whose poses the model reportsrepeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];Set to the resource name by the SDK when servedFrames whose poses the model reports.viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"];getJoints(int index) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];intrepeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];getLinks(int index) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];intrepeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];getName()Set to the resource name by the SDK when servedcom.google.protobuf.ByteStringSet to the resource name by the SDK when servedgetOutputFrames(int index) Frames whose poses the model reportscom.google.protobuf.ByteStringgetOutputFramesBytes(int index) Frames whose poses the model reportsintFrames whose poses the model reportsFrames whose poses the model reports.viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"];boolean.viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"];.viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"];removeJoints(int index) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];removeLinks(int index) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];setJoints(int index, Common.KinematicJoint value) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];setJoints(int index, Common.KinematicJoint.Builder builderForValue) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];setLinks(int index, Common.KinematicLink value) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];setLinks(int index, Common.KinematicLink.Builder builderForValue) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];Set to the resource name by the SDK when servedsetNameBytes(com.google.protobuf.ByteString value) Set to the resource name by the SDK when servedsetOutputFrames(int index, String value) Frames whose poses the model reports.viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"];setProperties(Common.KinematicProperties.Builder builderForValue) .viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"];Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
Set to the resource name by the SDK when served
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceCommon.KinematicModelOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Set to the resource name by the SDK when served
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceCommon.KinematicModelOrBuilder- Returns:
- The bytes for name.
-
setName
Set to the resource name by the SDK when served
string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Set to the resource name by the SDK when served
string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
Set to the resource name by the SDK when served
string name = 1 [json_name = "name"];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getLinksList
repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];- Specified by:
getLinksListin interfaceCommon.KinematicModelOrBuilder
-
getLinksCount
public int getLinksCount()repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];- Specified by:
getLinksCountin interfaceCommon.KinematicModelOrBuilder
-
getLinks
repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"];- Specified by:
getLinksin interfaceCommon.KinematicModelOrBuilder
-
setLinks
repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"]; -
setLinks
public Common.KinematicModel.Builder setLinks(int index, Common.KinematicLink.Builder builderForValue) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"]; -
addLinks
repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"]; -
addLinks
repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"]; -
addLinks
repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"]; -
addLinks
public Common.KinematicModel.Builder addLinks(int index, Common.KinematicLink.Builder builderForValue) repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"]; -
addAllLinks
repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"]; -
clearLinks
repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"]; -
removeLinks
repeated .viam.common.v1.KinematicLink links = 2 [json_name = "links"]; -
getJointsList
repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];- Specified by:
getJointsListin interfaceCommon.KinematicModelOrBuilder
-
getJointsCount
public int getJointsCount()repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];- Specified by:
getJointsCountin interfaceCommon.KinematicModelOrBuilder
-
getJoints
repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"];- Specified by:
getJointsin interfaceCommon.KinematicModelOrBuilder
-
setJoints
repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"]; -
setJoints
public Common.KinematicModel.Builder setJoints(int index, Common.KinematicJoint.Builder builderForValue) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"]; -
addJoints
repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"]; -
addJoints
repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"]; -
addJoints
repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"]; -
addJoints
public Common.KinematicModel.Builder addJoints(int index, Common.KinematicJoint.Builder builderForValue) repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"]; -
addAllJoints
repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"]; -
clearJoints
repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"]; -
removeJoints
repeated .viam.common.v1.KinematicJoint joints = 3 [json_name = "joints"]; -
getOutputFramesList
Frames whose poses the model reports
repeated string output_frames = 4 [json_name = "outputFrames"];- Specified by:
getOutputFramesListin interfaceCommon.KinematicModelOrBuilder- Returns:
- A list containing the outputFrames.
-
getOutputFramesCount
public int getOutputFramesCount()Frames whose poses the model reports
repeated string output_frames = 4 [json_name = "outputFrames"];- Specified by:
getOutputFramesCountin interfaceCommon.KinematicModelOrBuilder- Returns:
- The count of outputFrames.
-
getOutputFrames
Frames whose poses the model reports
repeated string output_frames = 4 [json_name = "outputFrames"];- Specified by:
getOutputFramesin interfaceCommon.KinematicModelOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The outputFrames at the given index.
-
getOutputFramesBytes
public com.google.protobuf.ByteString getOutputFramesBytes(int index) Frames whose poses the model reports
repeated string output_frames = 4 [json_name = "outputFrames"];- Specified by:
getOutputFramesBytesin interfaceCommon.KinematicModelOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the outputFrames at the given index.
-
setOutputFrames
Frames whose poses the model reports
repeated string output_frames = 4 [json_name = "outputFrames"];- Parameters:
index- The index to set the value at.value- The outputFrames to set.- Returns:
- This builder for chaining.
-
addOutputFrames
Frames whose poses the model reports
repeated string output_frames = 4 [json_name = "outputFrames"];- Parameters:
value- The outputFrames to add.- Returns:
- This builder for chaining.
-
addAllOutputFrames
Frames whose poses the model reports
repeated string output_frames = 4 [json_name = "outputFrames"];- Parameters:
values- The outputFrames to add.- Returns:
- This builder for chaining.
-
clearOutputFrames
Frames whose poses the model reports
repeated string output_frames = 4 [json_name = "outputFrames"];- Returns:
- This builder for chaining.
-
addOutputFramesBytes
Frames whose poses the model reports
repeated string output_frames = 4 [json_name = "outputFrames"];- Parameters:
value- The bytes of the outputFrames to add.- Returns:
- This builder for chaining.
-
hasProperties
public boolean hasProperties().viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"];- Specified by:
hasPropertiesin interfaceCommon.KinematicModelOrBuilder- Returns:
- Whether the properties field is set.
-
getProperties
.viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"];- Specified by:
getPropertiesin interfaceCommon.KinematicModelOrBuilder- Returns:
- The properties.
-
setProperties
.viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"]; -
setProperties
public Common.KinematicModel.Builder setProperties(Common.KinematicProperties.Builder builderForValue) .viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"]; -
mergeProperties
.viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"]; -
clearProperties
.viam.common.v1.KinematicProperties properties = 5 [json_name = "properties"];
-