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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionin case method is "DoCommand", specifies the command argument of the gRPC request.the gRPC request of this job's resource.unique name of the job.the resource associated with this job.a unix-cron string or a Golang-parsable duration string, specifies the interval at which the job is run.com.google.protobuf.Structin case method is "DoCommand", specifies the command argument of the gRPC request.the gRPC request of this job's resource.com.google.protobuf.ByteStringthe gRPC request of this job's resource.getName()unique name of the job.com.google.protobuf.ByteStringunique name of the job.the resource associated with this job.com.google.protobuf.ByteStringthe resource associated with this job.a unix-cron string or a Golang-parsable duration string, specifies the interval at which the job is run.com.google.protobuf.ByteStringa unix-cron string or a Golang-parsable duration string, specifies the interval at which the job is run.booleanin case method is "DoCommand", specifies the command argument of the gRPC request.mergeCommand(com.google.protobuf.Struct value) in case method is "DoCommand", specifies the command argument of the gRPC request.setCommand(com.google.protobuf.Struct value) in case method is "DoCommand", specifies the command argument of the gRPC request.setCommand(com.google.protobuf.Struct.Builder builderForValue) in case method is "DoCommand", specifies the command argument of the gRPC request.the gRPC request of this job's resource.setMethodBytes(com.google.protobuf.ByteString value) the gRPC request of this job's resource.unique name of the job.setNameBytes(com.google.protobuf.ByteString value) unique name of the job.setResource(String value) the resource associated with this job.setResourceBytes(com.google.protobuf.ByteString value) the resource associated with this job.setSchedule(String value) a unix-cron string or a Golang-parsable duration string, specifies the interval at which the job is run.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.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
unique name of the job.
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceRobot.JobConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()unique name of the job.
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceRobot.JobConfigOrBuilder- Returns:
- The bytes for name.
-
setName
unique name of the job.
string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
unique name of the job.
string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
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
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:
getSchedulein interfaceRobot.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:
getScheduleBytesin interfaceRobot.JobConfigOrBuilder- Returns:
- The bytes for schedule.
-
setSchedule
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
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
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
the resource associated with this job.
string resource = 3 [json_name = "resource"];- Specified by:
getResourcein interfaceRobot.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:
getResourceBytesin interfaceRobot.JobConfigOrBuilder- Returns:
- The bytes for resource.
-
setResource
the resource associated with this job.
string resource = 3 [json_name = "resource"];- Parameters:
value- The resource to set.- Returns:
- This builder for chaining.
-
clearResource
the resource associated with this job.
string resource = 3 [json_name = "resource"];- Returns:
- This builder for chaining.
-
setResourceBytes
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
the gRPC request of this job's resource.
string method = 4 [json_name = "method"];- Specified by:
getMethodin interfaceRobot.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:
getMethodBytesin interfaceRobot.JobConfigOrBuilder- Returns:
- The bytes for method.
-
setMethod
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
the gRPC request of this job's resource.
string method = 4 [json_name = "method"];- Returns:
- This builder for chaining.
-
setMethodBytes
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:
hasCommandin interfaceRobot.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:
getCommandin interfaceRobot.JobConfigOrBuilder- Returns:
- The command.
-
setCommand
in case method is "DoCommand", specifies the command argument of the gRPC request.
.google.protobuf.Struct command = 5 [json_name = "command"]; -
setCommand
in case method is "DoCommand", specifies the command argument of the gRPC request.
.google.protobuf.Struct command = 5 [json_name = "command"]; -
mergeCommand
in case method is "DoCommand", specifies the command argument of the gRPC request.
.google.protobuf.Struct command = 5 [json_name = "command"]; -
clearCommand
in case method is "DoCommand", specifies the command argument of the gRPC request.
.google.protobuf.Struct command = 5 [json_name = "command"];
-