Package viam.app.v1

Class App.ModuleMetadata.Builder

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

public static final class App.ModuleMetadata.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<App.ModuleMetadata,App.ModuleMetadata.Builder> implements App.ModuleMetadataOrBuilder
Protobuf type viam.app.v1.ModuleMetadata
  • Method Details

    • getModelsList

      public List<App.Model> getModelsList()
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
      Specified by:
      getModelsList in interface App.ModuleMetadataOrBuilder
    • getModelsCount

      public int getModelsCount()
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
      Specified by:
      getModelsCount in interface App.ModuleMetadataOrBuilder
    • getModels

      public App.Model getModels(int index)
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
      Specified by:
      getModels in interface App.ModuleMetadataOrBuilder
    • setModels

      public App.ModuleMetadata.Builder setModels(int index, App.Model value)
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • setModels

      public App.ModuleMetadata.Builder setModels(int index, App.Model.Builder builderForValue)
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • addModels

      public App.ModuleMetadata.Builder addModels(App.Model value)
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • addModels

      public App.ModuleMetadata.Builder addModels(int index, App.Model value)
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • addModels

      public App.ModuleMetadata.Builder addModels(App.Model.Builder builderForValue)
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • addModels

      public App.ModuleMetadata.Builder addModels(int index, App.Model.Builder builderForValue)
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • addAllModels

      public App.ModuleMetadata.Builder addAllModels(Iterable<? extends App.Model> values)
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • clearModels

      public App.ModuleMetadata.Builder clearModels()
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • removeModels

      public App.ModuleMetadata.Builder removeModels(int index)
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • getVersionsList

      public List<App.ModuleVersion> getVersionsList()
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
      Specified by:
      getVersionsList in interface App.ModuleMetadataOrBuilder
    • getVersionsCount

      public int getVersionsCount()
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
      Specified by:
      getVersionsCount in interface App.ModuleMetadataOrBuilder
    • getVersions

      public App.ModuleVersion getVersions(int index)
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
      Specified by:
      getVersions in interface App.ModuleMetadataOrBuilder
    • setVersions

      public App.ModuleMetadata.Builder setVersions(int index, App.ModuleVersion value)
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
    • setVersions

      public App.ModuleMetadata.Builder setVersions(int index, App.ModuleVersion.Builder builderForValue)
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
    • addVersions

      public App.ModuleMetadata.Builder addVersions(App.ModuleVersion value)
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
    • addVersions

      public App.ModuleMetadata.Builder addVersions(int index, App.ModuleVersion value)
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
    • addVersions

      public App.ModuleMetadata.Builder addVersions(App.ModuleVersion.Builder builderForValue)
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
    • addVersions

      public App.ModuleMetadata.Builder addVersions(int index, App.ModuleVersion.Builder builderForValue)
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
    • addAllVersions

      public App.ModuleMetadata.Builder addAllVersions(Iterable<? extends App.ModuleVersion> values)
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
    • clearVersions

      public App.ModuleMetadata.Builder clearVersions()
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
    • removeVersions

      public App.ModuleMetadata.Builder removeVersions(int index)
       A list of versions of the module that are available
       When this is returned from the backend, the versions are sorted in ascending order by the semver version
       
      repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"];
    • getEntrypoint

      public String getEntrypoint()
       The executable to run to start the module program
       
      string entrypoint = 3 [json_name = "entrypoint"];
      Specified by:
      getEntrypoint in interface App.ModuleMetadataOrBuilder
      Returns:
      The entrypoint.
    • getEntrypointBytes

      public com.google.protobuf.ByteString getEntrypointBytes()
       The executable to run to start the module program
       
      string entrypoint = 3 [json_name = "entrypoint"];
      Specified by:
      getEntrypointBytes in interface App.ModuleMetadataOrBuilder
      Returns:
      The bytes for entrypoint.
    • setEntrypoint

      public App.ModuleMetadata.Builder setEntrypoint(String value)
       The executable to run to start the module program
       
      string entrypoint = 3 [json_name = "entrypoint"];
      Parameters:
      value - The entrypoint to set.
      Returns:
      This builder for chaining.
    • clearEntrypoint

      public App.ModuleMetadata.Builder clearEntrypoint()
       The executable to run to start the module program
       
      string entrypoint = 3 [json_name = "entrypoint"];
      Returns:
      This builder for chaining.
    • setEntrypointBytes

      public App.ModuleMetadata.Builder setEntrypointBytes(com.google.protobuf.ByteString value)
       The executable to run to start the module program
       
      string entrypoint = 3 [json_name = "entrypoint"];
      Parameters:
      value - The bytes for entrypoint to set.
      Returns:
      This builder for chaining.
    • hasFirstRun

      public boolean hasFirstRun()
       The path to a setup script that is run before a newly downloaded module starts.
       
      optional string first_run = 4 [json_name = "firstRun"];
      Specified by:
      hasFirstRun in interface App.ModuleMetadataOrBuilder
      Returns:
      Whether the firstRun field is set.
    • getFirstRun

      public String getFirstRun()
       The path to a setup script that is run before a newly downloaded module starts.
       
      optional string first_run = 4 [json_name = "firstRun"];
      Specified by:
      getFirstRun in interface App.ModuleMetadataOrBuilder
      Returns:
      The firstRun.
    • getFirstRunBytes

      public com.google.protobuf.ByteString getFirstRunBytes()
       The path to a setup script that is run before a newly downloaded module starts.
       
      optional string first_run = 4 [json_name = "firstRun"];
      Specified by:
      getFirstRunBytes in interface App.ModuleMetadataOrBuilder
      Returns:
      The bytes for firstRun.
    • setFirstRun

      public App.ModuleMetadata.Builder setFirstRun(String value)
       The path to a setup script that is run before a newly downloaded module starts.
       
      optional string first_run = 4 [json_name = "firstRun"];
      Parameters:
      value - The firstRun to set.
      Returns:
      This builder for chaining.
    • clearFirstRun

      public App.ModuleMetadata.Builder clearFirstRun()
       The path to a setup script that is run before a newly downloaded module starts.
       
      optional string first_run = 4 [json_name = "firstRun"];
      Returns:
      This builder for chaining.
    • setFirstRunBytes

      public App.ModuleMetadata.Builder setFirstRunBytes(com.google.protobuf.ByteString value)
       The path to a setup script that is run before a newly downloaded module starts.
       
      optional string first_run = 4 [json_name = "firstRun"];
      Parameters:
      value - The bytes for firstRun to set.
      Returns:
      This builder for chaining.