Package viam.app.v1

Class AppOuterClass.ModuleVersion.Builder

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

public static final class AppOuterClass.ModuleVersion.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<AppOuterClass.ModuleVersion,AppOuterClass.ModuleVersion.Builder> implements AppOuterClass.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 AppOuterClass.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 AppOuterClass.ModuleVersionOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public AppOuterClass.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 AppOuterClass.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 AppOuterClass.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<AppOuterClass.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 AppOuterClass.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 AppOuterClass.ModuleVersionOrBuilder
    • getFiles

      public AppOuterClass.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 AppOuterClass.ModuleVersionOrBuilder
    • setFiles

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

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

       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • addFiles

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

       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • addFiles

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

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

       The uploads that are available for this module version
       
      repeated .viam.app.v1.Uploads files = 2 [json_name = "files"];
    • removeFiles

      public AppOuterClass.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<AppOuterClass.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 AppOuterClass.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 AppOuterClass.ModuleVersionOrBuilder
    • getModels

      public AppOuterClass.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 AppOuterClass.ModuleVersionOrBuilder
    • setModels

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

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

       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • addModels

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

       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • addModels

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

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

       The models that this verion of the module provides
       
      repeated .viam.app.v1.Model models = 3 [json_name = "models"];
    • removeModels

      public AppOuterClass.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 AppOuterClass.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 AppOuterClass.ModuleVersionOrBuilder
      Returns:
      The bytes for entrypoint.
    • setEntrypoint

      public AppOuterClass.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 AppOuterClass.ModuleVersion.Builder clearEntrypoint()
       The entrypoint for this version of the module
       
      string entrypoint = 4 [json_name = "entrypoint"];
      Returns:
      This builder for chaining.
    • setEntrypointBytes

      public AppOuterClass.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 AppOuterClass.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 AppOuterClass.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 AppOuterClass.ModuleVersionOrBuilder
      Returns:
      The bytes for firstRun.
    • setFirstRun

      public AppOuterClass.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 AppOuterClass.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 AppOuterClass.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.
    • hasMarkdownDescription

      public boolean hasMarkdownDescription()
       The markdown documentation for this version of the module
       
      optional string markdown_description = 6 [json_name = "markdownDescription"];
      Specified by:
      hasMarkdownDescription in interface AppOuterClass.ModuleVersionOrBuilder
      Returns:
      Whether the markdownDescription field is set.
    • getMarkdownDescription

      public String getMarkdownDescription()
       The markdown documentation for this version of the module
       
      optional string markdown_description = 6 [json_name = "markdownDescription"];
      Specified by:
      getMarkdownDescription in interface AppOuterClass.ModuleVersionOrBuilder
      Returns:
      The markdownDescription.
    • getMarkdownDescriptionBytes

      public com.google.protobuf.ByteString getMarkdownDescriptionBytes()
       The markdown documentation for this version of the module
       
      optional string markdown_description = 6 [json_name = "markdownDescription"];
      Specified by:
      getMarkdownDescriptionBytes in interface AppOuterClass.ModuleVersionOrBuilder
      Returns:
      The bytes for markdownDescription.
    • setMarkdownDescription

      public AppOuterClass.ModuleVersion.Builder setMarkdownDescription(String value)
       The markdown documentation for this version of the module
       
      optional string markdown_description = 6 [json_name = "markdownDescription"];
      Parameters:
      value - The markdownDescription to set.
      Returns:
      This builder for chaining.
    • clearMarkdownDescription

      public AppOuterClass.ModuleVersion.Builder clearMarkdownDescription()
       The markdown documentation for this version of the module
       
      optional string markdown_description = 6 [json_name = "markdownDescription"];
      Returns:
      This builder for chaining.
    • setMarkdownDescriptionBytes

      public AppOuterClass.ModuleVersion.Builder setMarkdownDescriptionBytes(com.google.protobuf.ByteString value)
       The markdown documentation for this version of the module
       
      optional string markdown_description = 6 [json_name = "markdownDescription"];
      Parameters:
      value - The bytes for markdownDescription to set.
      Returns:
      This builder for chaining.
    • getAppsList

      public List<AppOuterClass.App> getAppsList()
       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
      Specified by:
      getAppsList in interface AppOuterClass.ModuleVersionOrBuilder
    • getAppsCount

      public int getAppsCount()
       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
      Specified by:
      getAppsCount in interface AppOuterClass.ModuleVersionOrBuilder
    • getApps

      public AppOuterClass.App getApps(int index)
       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
      Specified by:
      getApps in interface AppOuterClass.ModuleVersionOrBuilder
    • setApps

      public AppOuterClass.ModuleVersion.Builder setApps(int index, AppOuterClass.App value)
       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
    • setApps

      public AppOuterClass.ModuleVersion.Builder setApps(int index, AppOuterClass.App.Builder builderForValue)
       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
    • addApps

       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
    • addApps

      public AppOuterClass.ModuleVersion.Builder addApps(int index, AppOuterClass.App value)
       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
    • addApps

       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
    • addApps

      public AppOuterClass.ModuleVersion.Builder addApps(int index, AppOuterClass.App.Builder builderForValue)
       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
    • addAllApps

      public AppOuterClass.ModuleVersion.Builder addAllApps(Iterable<? extends AppOuterClass.App> values)
       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
    • clearApps

       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
    • removeApps

      public AppOuterClass.ModuleVersion.Builder removeApps(int index)
       A list of applications associated with the module
       
      repeated .viam.app.v1.App apps = 7 [json_name = "apps"];
    • hasDeprecatedStatus

      public boolean hasDeprecatedStatus()
       When set, marks this specific version as deprecated
       
      optional .viam.app.v1.DeprecatedStatus deprecated_status = 8 [json_name = "deprecatedStatus"];
      Specified by:
      hasDeprecatedStatus in interface AppOuterClass.ModuleVersionOrBuilder
      Returns:
      Whether the deprecatedStatus field is set.
    • getDeprecatedStatus

      public AppOuterClass.DeprecatedStatus getDeprecatedStatus()
       When set, marks this specific version as deprecated
       
      optional .viam.app.v1.DeprecatedStatus deprecated_status = 8 [json_name = "deprecatedStatus"];
      Specified by:
      getDeprecatedStatus in interface AppOuterClass.ModuleVersionOrBuilder
      Returns:
      The deprecatedStatus.
    • setDeprecatedStatus

       When set, marks this specific version as deprecated
       
      optional .viam.app.v1.DeprecatedStatus deprecated_status = 8 [json_name = "deprecatedStatus"];
    • setDeprecatedStatus

       When set, marks this specific version as deprecated
       
      optional .viam.app.v1.DeprecatedStatus deprecated_status = 8 [json_name = "deprecatedStatus"];
    • mergeDeprecatedStatus

       When set, marks this specific version as deprecated
       
      optional .viam.app.v1.DeprecatedStatus deprecated_status = 8 [json_name = "deprecatedStatus"];
    • clearDeprecatedStatus

      public AppOuterClass.ModuleVersion.Builder clearDeprecatedStatus()
       When set, marks this specific version as deprecated
       
      optional .viam.app.v1.DeprecatedStatus deprecated_status = 8 [json_name = "deprecatedStatus"];
    • hasMinViamServerVersion

      public boolean hasMinViamServerVersion()
       The minimum version of viam-server required to run this version of the module.
       
      optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
      Specified by:
      hasMinViamServerVersion in interface AppOuterClass.ModuleVersionOrBuilder
      Returns:
      Whether the minViamServerVersion field is set.
    • getMinViamServerVersion

      public String getMinViamServerVersion()
       The minimum version of viam-server required to run this version of the module.
       
      optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
      Specified by:
      getMinViamServerVersion in interface AppOuterClass.ModuleVersionOrBuilder
      Returns:
      The minViamServerVersion.
    • getMinViamServerVersionBytes

      public com.google.protobuf.ByteString getMinViamServerVersionBytes()
       The minimum version of viam-server required to run this version of the module.
       
      optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
      Specified by:
      getMinViamServerVersionBytes in interface AppOuterClass.ModuleVersionOrBuilder
      Returns:
      The bytes for minViamServerVersion.
    • setMinViamServerVersion

      public AppOuterClass.ModuleVersion.Builder setMinViamServerVersion(String value)
       The minimum version of viam-server required to run this version of the module.
       
      optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
      Parameters:
      value - The minViamServerVersion to set.
      Returns:
      This builder for chaining.
    • clearMinViamServerVersion

      public AppOuterClass.ModuleVersion.Builder clearMinViamServerVersion()
       The minimum version of viam-server required to run this version of the module.
       
      optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
      Returns:
      This builder for chaining.
    • setMinViamServerVersionBytes

      public AppOuterClass.ModuleVersion.Builder setMinViamServerVersionBytes(com.google.protobuf.ByteString value)
       The minimum version of viam-server required to run this version of the module.
       
      optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
      Parameters:
      value - The bytes for minViamServerVersion to set.
      Returns:
      This builder for chaining.