Class Robot.ResourceStatus.Builder

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

public static final class Robot.ResourceStatus.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.ResourceStatus,Robot.ResourceStatus.Builder> implements Robot.ResourceStatusOrBuilder
Protobuf type viam.robot.v1.ResourceStatus
  • Method Details

    • hasName

      public boolean hasName()
       resource name.
       
      .viam.common.v1.ResourceName name = 1 [json_name = "name"];
      Specified by:
      hasName in interface Robot.ResourceStatusOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public Common.ResourceName getName()
       resource name.
       
      .viam.common.v1.ResourceName name = 1 [json_name = "name"];
      Specified by:
      getName in interface Robot.ResourceStatusOrBuilder
      Returns:
      The name.
    • setName

       resource name.
       
      .viam.common.v1.ResourceName name = 1 [json_name = "name"];
    • setName

       resource name.
       
      .viam.common.v1.ResourceName name = 1 [json_name = "name"];
    • mergeName

       resource name.
       
      .viam.common.v1.ResourceName name = 1 [json_name = "name"];
    • clearName

      public Robot.ResourceStatus.Builder clearName()
       resource name.
       
      .viam.common.v1.ResourceName name = 1 [json_name = "name"];
    • getStateValue

      public int getStateValue()
       current state.
       
      .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];
      Specified by:
      getStateValue in interface Robot.ResourceStatusOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Robot.ResourceStatus.Builder setStateValue(int value)
       current state.
       
      .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • getState

      public Robot.ResourceStatus.State getState()
       current state.
       
      .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];
      Specified by:
      getState in interface Robot.ResourceStatusOrBuilder
      Returns:
      The state.
    • setState

       current state.
       
      .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Robot.ResourceStatus.Builder clearState()
       current state.
       
      .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];
      Returns:
      This builder for chaining.
    • hasLastUpdated

      public boolean hasLastUpdated()
       state transition timestamp.
       
      .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"];
      Specified by:
      hasLastUpdated in interface Robot.ResourceStatusOrBuilder
      Returns:
      Whether the lastUpdated field is set.
    • getLastUpdated

      public com.google.protobuf.Timestamp getLastUpdated()
       state transition timestamp.
       
      .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"];
      Specified by:
      getLastUpdated in interface Robot.ResourceStatusOrBuilder
      Returns:
      The lastUpdated.
    • setLastUpdated

      public Robot.ResourceStatus.Builder setLastUpdated(com.google.protobuf.Timestamp value)
       state transition timestamp.
       
      .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"];
    • setLastUpdated

      public Robot.ResourceStatus.Builder setLastUpdated(com.google.protobuf.Timestamp.Builder builderForValue)
       state transition timestamp.
       
      .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"];
    • mergeLastUpdated

      public Robot.ResourceStatus.Builder mergeLastUpdated(com.google.protobuf.Timestamp value)
       state transition timestamp.
       
      .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"];
    • clearLastUpdated

      public Robot.ResourceStatus.Builder clearLastUpdated()
       state transition timestamp.
       
      .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"];
    • getRevision

      public String getRevision()
       revision of the last config that successfully updated this resource.
       
      string revision = 4 [json_name = "revision"];
      Specified by:
      getRevision in interface Robot.ResourceStatusOrBuilder
      Returns:
      The revision.
    • getRevisionBytes

      public com.google.protobuf.ByteString getRevisionBytes()
       revision of the last config that successfully updated this resource.
       
      string revision = 4 [json_name = "revision"];
      Specified by:
      getRevisionBytes in interface Robot.ResourceStatusOrBuilder
      Returns:
      The bytes for revision.
    • setRevision

      public Robot.ResourceStatus.Builder setRevision(String value)
       revision of the last config that successfully updated this resource.
       
      string revision = 4 [json_name = "revision"];
      Parameters:
      value - The revision to set.
      Returns:
      This builder for chaining.
    • clearRevision

      public Robot.ResourceStatus.Builder clearRevision()
       revision of the last config that successfully updated this resource.
       
      string revision = 4 [json_name = "revision"];
      Returns:
      This builder for chaining.
    • setRevisionBytes

      public Robot.ResourceStatus.Builder setRevisionBytes(com.google.protobuf.ByteString value)
       revision of the last config that successfully updated this resource.
       
      string revision = 4 [json_name = "revision"];
      Parameters:
      value - The bytes for revision to set.
      Returns:
      This builder for chaining.
    • getError

      public String getError()
       error details for a resource. This is guaranteed to be null if the
       resource is ready and non-null if the resource unhealthy.
       
      string error = 5 [json_name = "error"];
      Specified by:
      getError in interface Robot.ResourceStatusOrBuilder
      Returns:
      The error.
    • getErrorBytes

      public com.google.protobuf.ByteString getErrorBytes()
       error details for a resource. This is guaranteed to be null if the
       resource is ready and non-null if the resource unhealthy.
       
      string error = 5 [json_name = "error"];
      Specified by:
      getErrorBytes in interface Robot.ResourceStatusOrBuilder
      Returns:
      The bytes for error.
    • setError

      public Robot.ResourceStatus.Builder setError(String value)
       error details for a resource. This is guaranteed to be null if the
       resource is ready and non-null if the resource unhealthy.
       
      string error = 5 [json_name = "error"];
      Parameters:
      value - The error to set.
      Returns:
      This builder for chaining.
    • clearError

      public Robot.ResourceStatus.Builder clearError()
       error details for a resource. This is guaranteed to be null if the
       resource is ready and non-null if the resource unhealthy.
       
      string error = 5 [json_name = "error"];
      Returns:
      This builder for chaining.
    • setErrorBytes

      public Robot.ResourceStatus.Builder setErrorBytes(com.google.protobuf.ByteString value)
       error details for a resource. This is guaranteed to be null if the
       resource is ready and non-null if the resource unhealthy.
       
      string error = 5 [json_name = "error"];
      Parameters:
      value - The bytes for error to set.
      Returns:
      This builder for chaining.
    • hasCloudMetadata

      public boolean hasCloudMetadata()
       infomation about resource orgID, locationID and partID
       
      optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"];
      Specified by:
      hasCloudMetadata in interface Robot.ResourceStatusOrBuilder
      Returns:
      Whether the cloudMetadata field is set.
    • getCloudMetadata

      public Robot.GetCloudMetadataResponse getCloudMetadata()
       infomation about resource orgID, locationID and partID
       
      optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"];
      Specified by:
      getCloudMetadata in interface Robot.ResourceStatusOrBuilder
      Returns:
      The cloudMetadata.
    • setCloudMetadata

       infomation about resource orgID, locationID and partID
       
      optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"];
    • setCloudMetadata

      public Robot.ResourceStatus.Builder setCloudMetadata(Robot.GetCloudMetadataResponse.Builder builderForValue)
       infomation about resource orgID, locationID and partID
       
      optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"];
    • mergeCloudMetadata

       infomation about resource orgID, locationID and partID
       
      optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"];
    • clearCloudMetadata

      public Robot.ResourceStatus.Builder clearCloudMetadata()
       infomation about resource orgID, locationID and partID
       
      optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"];