Package viam.app.v1

Class Robot.PackageConfig.Builder

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

public static final class Robot.PackageConfig.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.PackageConfig,Robot.PackageConfig.Builder> implements Robot.PackageConfigOrBuilder
 PackageConfig is the configration for deployed Packages.
 
Protobuf type viam.app.v1.PackageConfig
  • Method Details

    • getName

      public String getName()
       Name is the local name of the package on the RDK. Must be unique across Packages. Must not be empty.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Robot.PackageConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name is the local name of the package on the RDK. Must be unique across Packages. Must not be empty.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface Robot.PackageConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Robot.PackageConfig.Builder setName(String value)
       Name is the local name of the package on the RDK. Must be unique across Packages. Must not be empty.
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Robot.PackageConfig.Builder clearName()
       Name is the local name of the package on the RDK. Must be unique across Packages. Must not be empty.
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Robot.PackageConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name is the local name of the package on the RDK. Must be unique across Packages. Must not be empty.
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getPackage

      public String getPackage()
       Package is the unique package name hosted by Viam. Must not be empty.
       
      string package = 2 [json_name = "package"];
      Specified by:
      getPackage in interface Robot.PackageConfigOrBuilder
      Returns:
      The package.
    • getPackageBytes

      public com.google.protobuf.ByteString getPackageBytes()
       Package is the unique package name hosted by Viam. Must not be empty.
       
      string package = 2 [json_name = "package"];
      Specified by:
      getPackageBytes in interface Robot.PackageConfigOrBuilder
      Returns:
      The bytes for package.
    • setPackage

      public Robot.PackageConfig.Builder setPackage(String value)
       Package is the unique package name hosted by Viam. Must not be empty.
       
      string package = 2 [json_name = "package"];
      Parameters:
      value - The package to set.
      Returns:
      This builder for chaining.
    • clearPackage

      public Robot.PackageConfig.Builder clearPackage()
       Package is the unique package name hosted by Viam. Must not be empty.
       
      string package = 2 [json_name = "package"];
      Returns:
      This builder for chaining.
    • setPackageBytes

      public Robot.PackageConfig.Builder setPackageBytes(com.google.protobuf.ByteString value)
       Package is the unique package name hosted by Viam. Must not be empty.
       
      string package = 2 [json_name = "package"];
      Parameters:
      value - The bytes for package to set.
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       version of the package ID hosted by Viam. If not specified "latest" is assumed.
       
      string version = 3 [json_name = "version"];
      Specified by:
      getVersion in interface Robot.PackageConfigOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       version of the package ID hosted by Viam. If not specified "latest" is assumed.
       
      string version = 3 [json_name = "version"];
      Specified by:
      getVersionBytes in interface Robot.PackageConfigOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public Robot.PackageConfig.Builder setVersion(String value)
       version of the package ID hosted by Viam. If not specified "latest" is assumed.
       
      string version = 3 [json_name = "version"];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public Robot.PackageConfig.Builder clearVersion()
       version of the package ID hosted by Viam. If not specified "latest" is assumed.
       
      string version = 3 [json_name = "version"];
      Returns:
      This builder for chaining.
    • setVersionBytes

      public Robot.PackageConfig.Builder setVersionBytes(com.google.protobuf.ByteString value)
       version of the package ID hosted by Viam. If not specified "latest" is assumed.
       
      string version = 3 [json_name = "version"];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       type of the package
       
      string type = 4 [json_name = "type"];
      Specified by:
      getType in interface Robot.PackageConfigOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       type of the package
       
      string type = 4 [json_name = "type"];
      Specified by:
      getTypeBytes in interface Robot.PackageConfigOrBuilder
      Returns:
      The bytes for type.
    • setType

      public Robot.PackageConfig.Builder setType(String value)
       type of the package
       
      string type = 4 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Robot.PackageConfig.Builder clearType()
       type of the package
       
      string type = 4 [json_name = "type"];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public Robot.PackageConfig.Builder setTypeBytes(com.google.protobuf.ByteString value)
       type of the package
       
      string type = 4 [json_name = "type"];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       info about the validity of the package
       
      .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"];
      Specified by:
      hasStatus in interface Robot.PackageConfigOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Robot.AppValidationStatus getStatus()
       info about the validity of the package
       
      .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"];
      Specified by:
      getStatus in interface Robot.PackageConfigOrBuilder
      Returns:
      The status.
    • setStatus

       info about the validity of the package
       
      .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"];
    • setStatus

       info about the validity of the package
       
      .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"];
    • mergeStatus

       info about the validity of the package
       
      .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"];
    • clearStatus

      public Robot.PackageConfig.Builder clearStatus()
       info about the validity of the package
       
      .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"];