Package viam.app.v1

Class AppOuterClass.ModuleMetadata.Builder

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

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

    • getModelsList

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

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

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

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

       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • addModels

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

       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • addModels

      public AppOuterClass.ModuleMetadata.Builder addModels(int index, AppOuterClass.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 AppOuterClass.ModuleMetadata.Builder addAllModels(Iterable<? extends AppOuterClass.Model> values)
       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • clearModels

       A list of models that are available in the module
       
      repeated .viam.app.v1.Model models = 1 [json_name = "models"];
    • removeModels

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

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

      public AppOuterClass.ModuleMetadata.Builder setVersions(int index, AppOuterClass.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 AppOuterClass.ModuleMetadata.Builder setVersions(int index, AppOuterClass.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

       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 AppOuterClass.ModuleMetadata.Builder addVersions(int index, AppOuterClass.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

       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 AppOuterClass.ModuleMetadata.Builder addVersions(int index, AppOuterClass.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

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

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

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

      public boolean hasMarkdownDescription()
       markdown content for the entire module
       
      optional string markdown_description = 5 [json_name = "markdownDescription"];
      Specified by:
      hasMarkdownDescription in interface AppOuterClass.ModuleMetadataOrBuilder
      Returns:
      Whether the markdownDescription field is set.
    • getMarkdownDescription

      public String getMarkdownDescription()
       markdown content for the entire module
       
      optional string markdown_description = 5 [json_name = "markdownDescription"];
      Specified by:
      getMarkdownDescription in interface AppOuterClass.ModuleMetadataOrBuilder
      Returns:
      The markdownDescription.
    • getMarkdownDescriptionBytes

      public com.google.protobuf.ByteString getMarkdownDescriptionBytes()
       markdown content for the entire module
       
      optional string markdown_description = 5 [json_name = "markdownDescription"];
      Specified by:
      getMarkdownDescriptionBytes in interface AppOuterClass.ModuleMetadataOrBuilder
      Returns:
      The bytes for markdownDescription.
    • setMarkdownDescription

      public AppOuterClass.ModuleMetadata.Builder setMarkdownDescription(String value)
       markdown content for the entire module
       
      optional string markdown_description = 5 [json_name = "markdownDescription"];
      Parameters:
      value - The markdownDescription to set.
      Returns:
      This builder for chaining.
    • clearMarkdownDescription

      public AppOuterClass.ModuleMetadata.Builder clearMarkdownDescription()
       markdown content for the entire module
       
      optional string markdown_description = 5 [json_name = "markdownDescription"];
      Returns:
      This builder for chaining.
    • setMarkdownDescriptionBytes

      public AppOuterClass.ModuleMetadata.Builder setMarkdownDescriptionBytes(com.google.protobuf.ByteString value)
       markdown content for the entire module
       
      optional string markdown_description = 5 [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 = 6 [json_name = "apps"];
      Specified by:
      getAppsList in interface AppOuterClass.ModuleMetadataOrBuilder
    • getAppsCount

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

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

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

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

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

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

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

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

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

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

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

      public boolean hasSourceType()
       Determines the type of module, either a registry module or an inline module.
       
      optional .viam.app.v1.ModuleSourceType source_type = 7 [json_name = "sourceType"];
      Specified by:
      hasSourceType in interface AppOuterClass.ModuleMetadataOrBuilder
      Returns:
      Whether the sourceType field is set.
    • getSourceTypeValue

      public int getSourceTypeValue()
       Determines the type of module, either a registry module or an inline module.
       
      optional .viam.app.v1.ModuleSourceType source_type = 7 [json_name = "sourceType"];
      Specified by:
      getSourceTypeValue in interface AppOuterClass.ModuleMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for sourceType.
    • setSourceTypeValue

      public AppOuterClass.ModuleMetadata.Builder setSourceTypeValue(int value)
       Determines the type of module, either a registry module or an inline module.
       
      optional .viam.app.v1.ModuleSourceType source_type = 7 [json_name = "sourceType"];
      Parameters:
      value - The sourceType to set.
      Returns:
      This builder for chaining.
    • getSourceType

      public AppOuterClass.ModuleSourceType getSourceType()
       Determines the type of module, either a registry module or an inline module.
       
      optional .viam.app.v1.ModuleSourceType source_type = 7 [json_name = "sourceType"];
      Specified by:
      getSourceType in interface AppOuterClass.ModuleMetadataOrBuilder
      Returns:
      The sourceType.
    • setSourceType

       Determines the type of module, either a registry module or an inline module.
       
      optional .viam.app.v1.ModuleSourceType source_type = 7 [json_name = "sourceType"];
      Parameters:
      value - The enum numeric value on the wire for sourceType to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • clearSourceType

      public AppOuterClass.ModuleMetadata.Builder clearSourceType()
       Determines the type of module, either a registry module or an inline module.
       
      optional .viam.app.v1.ModuleSourceType source_type = 7 [json_name = "sourceType"];
      Returns:
      This builder for chaining.
    • hasLanguage

      public boolean hasLanguage()
       Specifies the language that the module is written in.
       
      optional .viam.app.v1.ModuleLanguage language = 8 [json_name = "language"];
      Specified by:
      hasLanguage in interface AppOuterClass.ModuleMetadataOrBuilder
      Returns:
      Whether the language field is set.
    • getLanguageValue

      public int getLanguageValue()
       Specifies the language that the module is written in.
       
      optional .viam.app.v1.ModuleLanguage language = 8 [json_name = "language"];
      Specified by:
      getLanguageValue in interface AppOuterClass.ModuleMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for language.
    • setLanguageValue

      public AppOuterClass.ModuleMetadata.Builder setLanguageValue(int value)
       Specifies the language that the module is written in.
       
      optional .viam.app.v1.ModuleLanguage language = 8 [json_name = "language"];
      Parameters:
      value - The language to set.
      Returns:
      This builder for chaining.
    • getLanguage

      public AppOuterClass.ModuleLanguage getLanguage()
       Specifies the language that the module is written in.
       
      optional .viam.app.v1.ModuleLanguage language = 8 [json_name = "language"];
      Specified by:
      getLanguage in interface AppOuterClass.ModuleMetadataOrBuilder
      Returns:
      The language.
    • setLanguage

       Specifies the language that the module is written in.
       
      optional .viam.app.v1.ModuleLanguage language = 8 [json_name = "language"];
      Parameters:
      value - The enum numeric value on the wire for language to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • clearLanguage

      public AppOuterClass.ModuleMetadata.Builder clearLanguage()
       Specifies the language that the module is written in.
       
      optional .viam.app.v1.ModuleLanguage language = 8 [json_name = "language"];
      Returns:
      This builder for chaining.