Package viam.app.v1

Class App.ModuleVersion.Builder

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

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

    • getVersion

      public String getVersion()
       The semver string that represents the major/minor/patch version of the module
       
      string version = 1 [json_name = "version"];
      Specified by:
      getVersion in interface App.ModuleVersionOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       The semver string that represents the major/minor/patch version of the module
       
      string version = 1 [json_name = "version"];
      Specified by:
      getVersionBytes in interface App.ModuleVersionOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public App.ModuleVersion.Builder setVersion(String value)
       The semver string that represents the major/minor/patch version of the module
       
      string version = 1 [json_name = "version"];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public App.ModuleVersion.Builder clearVersion()
       The semver string that represents the major/minor/patch version of the module
       
      string version = 1 [json_name = "version"];
      Returns:
      This builder for chaining.
    • setVersionBytes

      public App.ModuleVersion.Builder setVersionBytes(com.google.protobuf.ByteString value)
       The semver string that represents the major/minor/patch version of the module
       
      string version = 1 [json_name = "version"];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getFilesList

      public List<App.Uploads> getFilesList()
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
      Specified by:
      getFilesList in interface App.ModuleVersionOrBuilder
    • getFilesCount

      public int getFilesCount()
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
      Specified by:
      getFilesCount in interface App.ModuleVersionOrBuilder
    • getFiles

      public App.Uploads getFiles(int index)
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
      Specified by:
      getFiles in interface App.ModuleVersionOrBuilder
    • setFiles

      public App.ModuleVersion.Builder setFiles(int index, App.Uploads value)
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • setFiles

      public App.ModuleVersion.Builder setFiles(int index, App.Uploads.Builder builderForValue)
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • addFiles

      public App.ModuleVersion.Builder addFiles(App.Uploads value)
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • addFiles

      public App.ModuleVersion.Builder addFiles(int index, App.Uploads value)
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • addFiles

      public App.ModuleVersion.Builder addFiles(App.Uploads.Builder builderForValue)
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • addFiles

      public App.ModuleVersion.Builder addFiles(int index, App.Uploads.Builder builderForValue)
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • addAllFiles

      public App.ModuleVersion.Builder addAllFiles(Iterable<? extends App.Uploads> values)
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • clearFiles

      public App.ModuleVersion.Builder clearFiles()
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • removeFiles

      public App.ModuleVersion.Builder removeFiles(int index)
       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • getModelsList

      public List<App.Model> getModelsList()
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
      Specified by:
      getModelsList in interface App.ModuleVersionOrBuilder
    • getModelsCount

      public int getModelsCount()
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
      Specified by:
      getModelsCount in interface App.ModuleVersionOrBuilder
    • getModels

      public App.Model getModels(int index)
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
      Specified by:
      getModels in interface App.ModuleVersionOrBuilder
    • setModels

      public App.ModuleVersion.Builder setModels(int index, App.Model value)
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • setModels

      public App.ModuleVersion.Builder setModels(int index, App.Model.Builder builderForValue)
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • addModels

      public App.ModuleVersion.Builder addModels(App.Model value)
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • addModels

      public App.ModuleVersion.Builder addModels(int index, App.Model value)
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • addModels

      public App.ModuleVersion.Builder addModels(App.Model.Builder builderForValue)
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • addModels

      public App.ModuleVersion.Builder addModels(int index, App.Model.Builder builderForValue)
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • addAllModels

      public App.ModuleVersion.Builder addAllModels(Iterable<? extends App.Model> values)
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • clearModels

      public App.ModuleVersion.Builder clearModels()
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • removeModels

      public App.ModuleVersion.Builder removeModels(int index)
       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • getEntrypoint

      public String getEntrypoint()
       The entrypoint for this version of the module
       
      string entrypoint = 4 [json_name = "entrypoint"];
      Specified by:
      getEntrypoint in interface App.ModuleVersionOrBuilder
      Returns:
      The entrypoint.
    • getEntrypointBytes

      public com.google.protobuf.ByteString getEntrypointBytes()
       The entrypoint for this version of the module
       
      string entrypoint = 4 [json_name = "entrypoint"];
      Specified by:
      getEntrypointBytes in interface App.ModuleVersionOrBuilder
      Returns:
      The bytes for entrypoint.
    • setEntrypoint

      public App.ModuleVersion.Builder setEntrypoint(String value)
       The entrypoint for this version of the module
       
      string entrypoint = 4 [json_name = "entrypoint"];
      Parameters:
      value - The entrypoint to set.
      Returns:
      This builder for chaining.
    • clearEntrypoint

      public App.ModuleVersion.Builder clearEntrypoint()
       The entrypoint for this version of the module
       
      string entrypoint = 4 [json_name = "entrypoint"];
      Returns:
      This builder for chaining.
    • setEntrypointBytes

      public App.ModuleVersion.Builder setEntrypointBytes(com.google.protobuf.ByteString value)
       The entrypoint for this version of the module
       
      string entrypoint = 4 [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 = 5 [json_name = "firstRun"];
      Specified by:
      hasFirstRun in interface App.ModuleVersionOrBuilder
      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 = 5 [json_name = "firstRun"];
      Specified by:
      getFirstRun in interface App.ModuleVersionOrBuilder
      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 = 5 [json_name = "firstRun"];
      Specified by:
      getFirstRunBytes in interface App.ModuleVersionOrBuilder
      Returns:
      The bytes for firstRun.
    • setFirstRun

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

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

      public App.ModuleVersion.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 = 5 [json_name = "firstRun"];
      Parameters:
      value - The bytes for firstRun to set.
      Returns:
      This builder for chaining.