Class Navigation.Plan.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Navigation.Plan,Navigation.Plan.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Navigation.Plan,Navigation.Plan.Builder>
com.viam.service.navigation.v1.Navigation.Plan.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Navigation.PlanOrBuilder, Cloneable
Enclosing class:
Navigation.Plan

public static final class Navigation.Plan.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Navigation.Plan,Navigation.Plan.Builder> implements Navigation.PlanOrBuilder
 Plan is a path preview returned by PlanToPoint and PlanToLocation.
 
Protobuf type viam.service.navigation.v1.Plan
  • Method Details

    • getPathList

      public List<Navigation.Position> getPathList()
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
      Specified by:
      getPathList in interface Navigation.PlanOrBuilder
    • getPathCount

      public int getPathCount()
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
      Specified by:
      getPathCount in interface Navigation.PlanOrBuilder
    • getPath

      public Navigation.Position getPath(int index)
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
      Specified by:
      getPath in interface Navigation.PlanOrBuilder
    • setPath

      public Navigation.Plan.Builder setPath(int index, Navigation.Position value)
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
    • setPath

      public Navigation.Plan.Builder setPath(int index, Navigation.Position.Builder builderForValue)
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
    • addPath

      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
    • addPath

      public Navigation.Plan.Builder addPath(int index, Navigation.Position value)
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
    • addPath

      public Navigation.Plan.Builder addPath(Navigation.Position.Builder builderForValue)
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
    • addPath

      public Navigation.Plan.Builder addPath(int index, Navigation.Position.Builder builderForValue)
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
    • addAllPath

      public Navigation.Plan.Builder addAllPath(Iterable<? extends Navigation.Position> values)
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
    • clearPath

      public Navigation.Plan.Builder clearPath()
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
    • removePath

      public Navigation.Plan.Builder removePath(int index)
      repeated .viam.service.navigation.v1.Position path = 1 [json_name = "path"];
    • hasLocation

      public boolean hasLocation()
       Set by PlanToLocation
       
      optional string location = 2 [json_name = "location"];
      Specified by:
      hasLocation in interface Navigation.PlanOrBuilder
      Returns:
      Whether the location field is set.
    • getLocation

      public String getLocation()
       Set by PlanToLocation
       
      optional string location = 2 [json_name = "location"];
      Specified by:
      getLocation in interface Navigation.PlanOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Set by PlanToLocation
       
      optional string location = 2 [json_name = "location"];
      Specified by:
      getLocationBytes in interface Navigation.PlanOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Navigation.Plan.Builder setLocation(String value)
       Set by PlanToLocation
       
      optional string location = 2 [json_name = "location"];
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public Navigation.Plan.Builder clearLocation()
       Set by PlanToLocation
       
      optional string location = 2 [json_name = "location"];
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Navigation.Plan.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Set by PlanToLocation
       
      optional string location = 2 [json_name = "location"];
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getLengthM

      public double getLengthM()
      double length_m = 3 [json_name = "lengthM"];
      Specified by:
      getLengthM in interface Navigation.PlanOrBuilder
      Returns:
      The lengthM.
    • setLengthM

      public Navigation.Plan.Builder setLengthM(double value)
      double length_m = 3 [json_name = "lengthM"];
      Parameters:
      value - The lengthM to set.
      Returns:
      This builder for chaining.
    • clearLengthM

      public Navigation.Plan.Builder clearLengthM()
      double length_m = 3 [json_name = "lengthM"];
      Returns:
      This builder for chaining.