Class Motion.Constraints.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Motion.Constraints,Motion.Constraints.Builder>
com.viam.service.motion.v1.Motion.Constraints.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Motion.ConstraintsOrBuilder, Cloneable
Enclosing class:
Motion.Constraints

public static final class Motion.Constraints.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Motion.Constraints,Motion.Constraints.Builder> implements Motion.ConstraintsOrBuilder
 Constraints specifies all enumerated constraints to be passed to Viam's motion planning, along with any optional parameters
 
Protobuf type viam.service.motion.v1.Constraints
  • Method Details

    • getLinearConstraintList

      public List<Motion.LinearConstraint> getLinearConstraintList()
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
      Specified by:
      getLinearConstraintList in interface Motion.ConstraintsOrBuilder
    • getLinearConstraintCount

      public int getLinearConstraintCount()
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
      Specified by:
      getLinearConstraintCount in interface Motion.ConstraintsOrBuilder
    • getLinearConstraint

      public Motion.LinearConstraint getLinearConstraint(int index)
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
      Specified by:
      getLinearConstraint in interface Motion.ConstraintsOrBuilder
    • setLinearConstraint

      public Motion.Constraints.Builder setLinearConstraint(int index, Motion.LinearConstraint value)
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
    • setLinearConstraint

      public Motion.Constraints.Builder setLinearConstraint(int index, Motion.LinearConstraint.Builder builderForValue)
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
    • addLinearConstraint

      public Motion.Constraints.Builder addLinearConstraint(Motion.LinearConstraint value)
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
    • addLinearConstraint

      public Motion.Constraints.Builder addLinearConstraint(int index, Motion.LinearConstraint value)
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
    • addLinearConstraint

      public Motion.Constraints.Builder addLinearConstraint(Motion.LinearConstraint.Builder builderForValue)
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
    • addLinearConstraint

      public Motion.Constraints.Builder addLinearConstraint(int index, Motion.LinearConstraint.Builder builderForValue)
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
    • addAllLinearConstraint

      public Motion.Constraints.Builder addAllLinearConstraint(Iterable<? extends Motion.LinearConstraint> values)
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
    • clearLinearConstraint

      public Motion.Constraints.Builder clearLinearConstraint()
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
    • removeLinearConstraint

      public Motion.Constraints.Builder removeLinearConstraint(int index)
       Typed message for a specific constraint
       
      repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"];
    • getOrientationConstraintList

      public List<Motion.OrientationConstraint> getOrientationConstraintList()
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
      Specified by:
      getOrientationConstraintList in interface Motion.ConstraintsOrBuilder
    • getOrientationConstraintCount

      public int getOrientationConstraintCount()
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
      Specified by:
      getOrientationConstraintCount in interface Motion.ConstraintsOrBuilder
    • getOrientationConstraint

      public Motion.OrientationConstraint getOrientationConstraint(int index)
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
      Specified by:
      getOrientationConstraint in interface Motion.ConstraintsOrBuilder
    • setOrientationConstraint

      public Motion.Constraints.Builder setOrientationConstraint(int index, Motion.OrientationConstraint value)
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
    • setOrientationConstraint

      public Motion.Constraints.Builder setOrientationConstraint(int index, Motion.OrientationConstraint.Builder builderForValue)
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
    • addOrientationConstraint

      public Motion.Constraints.Builder addOrientationConstraint(Motion.OrientationConstraint value)
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
    • addOrientationConstraint

      public Motion.Constraints.Builder addOrientationConstraint(int index, Motion.OrientationConstraint value)
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
    • addOrientationConstraint

      public Motion.Constraints.Builder addOrientationConstraint(Motion.OrientationConstraint.Builder builderForValue)
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
    • addOrientationConstraint

      public Motion.Constraints.Builder addOrientationConstraint(int index, Motion.OrientationConstraint.Builder builderForValue)
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
    • addAllOrientationConstraint

      public Motion.Constraints.Builder addAllOrientationConstraint(Iterable<? extends Motion.OrientationConstraint> values)
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
    • clearOrientationConstraint

      public Motion.Constraints.Builder clearOrientationConstraint()
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
    • removeOrientationConstraint

      public Motion.Constraints.Builder removeOrientationConstraint(int index)
      repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"];
    • getCollisionSpecificationList

      public List<Motion.CollisionSpecification> getCollisionSpecificationList()
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
      Specified by:
      getCollisionSpecificationList in interface Motion.ConstraintsOrBuilder
    • getCollisionSpecificationCount

      public int getCollisionSpecificationCount()
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
      Specified by:
      getCollisionSpecificationCount in interface Motion.ConstraintsOrBuilder
    • getCollisionSpecification

      public Motion.CollisionSpecification getCollisionSpecification(int index)
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
      Specified by:
      getCollisionSpecification in interface Motion.ConstraintsOrBuilder
    • setCollisionSpecification

      public Motion.Constraints.Builder setCollisionSpecification(int index, Motion.CollisionSpecification value)
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
    • setCollisionSpecification

      public Motion.Constraints.Builder setCollisionSpecification(int index, Motion.CollisionSpecification.Builder builderForValue)
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
    • addCollisionSpecification

      public Motion.Constraints.Builder addCollisionSpecification(Motion.CollisionSpecification value)
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
    • addCollisionSpecification

      public Motion.Constraints.Builder addCollisionSpecification(int index, Motion.CollisionSpecification value)
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
    • addCollisionSpecification

      public Motion.Constraints.Builder addCollisionSpecification(Motion.CollisionSpecification.Builder builderForValue)
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
    • addCollisionSpecification

      public Motion.Constraints.Builder addCollisionSpecification(int index, Motion.CollisionSpecification.Builder builderForValue)
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
    • addAllCollisionSpecification

      public Motion.Constraints.Builder addAllCollisionSpecification(Iterable<? extends Motion.CollisionSpecification> values)
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
    • clearCollisionSpecification

      public Motion.Constraints.Builder clearCollisionSpecification()
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];
    • removeCollisionSpecification

      public Motion.Constraints.Builder removeCollisionSpecification(int index)
       Arc constraint, Time constraint, and others will be added here when they are supported
       
      repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"];