Package viam.app.v1

Class Robot.JobConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.JobConfig,Robot.JobConfig.Builder>
viam.app.v1.Robot.JobConfig.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Robot.JobConfigOrBuilder
Enclosing class:
Robot.JobConfig

public static final class Robot.JobConfig.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.JobConfig,Robot.JobConfig.Builder> implements Robot.JobConfigOrBuilder
Protobuf type viam.app.v1.JobConfig
  • Method Details

    • getName

      public String getName()
       unique name of the job.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Robot.JobConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       unique name of the job.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface Robot.JobConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Robot.JobConfig.Builder setName(String value)
       unique name of the job.
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Robot.JobConfig.Builder clearName()
       unique name of the job.
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Robot.JobConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       unique name of the job.
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getSchedule

      public String getSchedule()
       a unix-cron string or a Golang-parsable duration string,
       specifies the interval at which the job is run.
       
      string schedule = 2 [json_name = "schedule"];
      Specified by:
      getSchedule in interface Robot.JobConfigOrBuilder
      Returns:
      The schedule.
    • getScheduleBytes

      public com.google.protobuf.ByteString getScheduleBytes()
       a unix-cron string or a Golang-parsable duration string,
       specifies the interval at which the job is run.
       
      string schedule = 2 [json_name = "schedule"];
      Specified by:
      getScheduleBytes in interface Robot.JobConfigOrBuilder
      Returns:
      The bytes for schedule.
    • setSchedule

      public Robot.JobConfig.Builder setSchedule(String value)
       a unix-cron string or a Golang-parsable duration string,
       specifies the interval at which the job is run.
       
      string schedule = 2 [json_name = "schedule"];
      Parameters:
      value - The schedule to set.
      Returns:
      This builder for chaining.
    • clearSchedule

      public Robot.JobConfig.Builder clearSchedule()
       a unix-cron string or a Golang-parsable duration string,
       specifies the interval at which the job is run.
       
      string schedule = 2 [json_name = "schedule"];
      Returns:
      This builder for chaining.
    • setScheduleBytes

      public Robot.JobConfig.Builder setScheduleBytes(com.google.protobuf.ByteString value)
       a unix-cron string or a Golang-parsable duration string,
       specifies the interval at which the job is run.
       
      string schedule = 2 [json_name = "schedule"];
      Parameters:
      value - The bytes for schedule to set.
      Returns:
      This builder for chaining.
    • getResource

      public String getResource()
       the resource associated with this job.
       
      string resource = 3 [json_name = "resource"];
      Specified by:
      getResource in interface Robot.JobConfigOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       the resource associated with this job.
       
      string resource = 3 [json_name = "resource"];
      Specified by:
      getResourceBytes in interface Robot.JobConfigOrBuilder
      Returns:
      The bytes for resource.
    • setResource

      public Robot.JobConfig.Builder setResource(String value)
       the resource associated with this job.
       
      string resource = 3 [json_name = "resource"];
      Parameters:
      value - The resource to set.
      Returns:
      This builder for chaining.
    • clearResource

      public Robot.JobConfig.Builder clearResource()
       the resource associated with this job.
       
      string resource = 3 [json_name = "resource"];
      Returns:
      This builder for chaining.
    • setResourceBytes

      public Robot.JobConfig.Builder setResourceBytes(com.google.protobuf.ByteString value)
       the resource associated with this job.
       
      string resource = 3 [json_name = "resource"];
      Parameters:
      value - The bytes for resource to set.
      Returns:
      This builder for chaining.
    • getMethod

      public String getMethod()
       the gRPC request of this job's resource.
       
      string method = 4 [json_name = "method"];
      Specified by:
      getMethod in interface Robot.JobConfigOrBuilder
      Returns:
      The method.
    • getMethodBytes

      public com.google.protobuf.ByteString getMethodBytes()
       the gRPC request of this job's resource.
       
      string method = 4 [json_name = "method"];
      Specified by:
      getMethodBytes in interface Robot.JobConfigOrBuilder
      Returns:
      The bytes for method.
    • setMethod

      public Robot.JobConfig.Builder setMethod(String value)
       the gRPC request of this job's resource.
       
      string method = 4 [json_name = "method"];
      Parameters:
      value - The method to set.
      Returns:
      This builder for chaining.
    • clearMethod

      public Robot.JobConfig.Builder clearMethod()
       the gRPC request of this job's resource.
       
      string method = 4 [json_name = "method"];
      Returns:
      This builder for chaining.
    • setMethodBytes

      public Robot.JobConfig.Builder setMethodBytes(com.google.protobuf.ByteString value)
       the gRPC request of this job's resource.
       
      string method = 4 [json_name = "method"];
      Parameters:
      value - The bytes for method to set.
      Returns:
      This builder for chaining.
    • hasCommand

      public boolean hasCommand()
       in case method is "DoCommand", specifies the
       command argument of the gRPC request.
       
      .google.protobuf.Struct command = 5 [json_name = "command"];
      Specified by:
      hasCommand in interface Robot.JobConfigOrBuilder
      Returns:
      Whether the command field is set.
    • getCommand

      public com.google.protobuf.Struct getCommand()
       in case method is "DoCommand", specifies the
       command argument of the gRPC request.
       
      .google.protobuf.Struct command = 5 [json_name = "command"];
      Specified by:
      getCommand in interface Robot.JobConfigOrBuilder
      Returns:
      The command.
    • setCommand

      public Robot.JobConfig.Builder setCommand(com.google.protobuf.Struct value)
       in case method is "DoCommand", specifies the
       command argument of the gRPC request.
       
      .google.protobuf.Struct command = 5 [json_name = "command"];
    • setCommand

      public Robot.JobConfig.Builder setCommand(com.google.protobuf.Struct.Builder builderForValue)
       in case method is "DoCommand", specifies the
       command argument of the gRPC request.
       
      .google.protobuf.Struct command = 5 [json_name = "command"];
    • mergeCommand

      public Robot.JobConfig.Builder mergeCommand(com.google.protobuf.Struct value)
       in case method is "DoCommand", specifies the
       command argument of the gRPC request.
       
      .google.protobuf.Struct command = 5 [json_name = "command"];
    • clearCommand

      public Robot.JobConfig.Builder clearCommand()
       in case method is "DoCommand", specifies the
       command argument of the gRPC request.
       
      .google.protobuf.Struct command = 5 [json_name = "command"];