Package viam.app.v1
Class App.Module.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<App.Module,App.Module.Builder>
viam.app.v1.App.Module.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,App.ModuleOrBuilder
- Enclosing class:
- App.Module
public static final class App.Module.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<App.Module,App.Module.Builder>
implements App.ModuleOrBuilder
Protobuf type
viam.app.v1.Module
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllModels
(Iterable<? extends App.Model> values) A list of models that are available in the moduleaddAllVersions
(Iterable<? extends App.VersionHistory> values) The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionA list of models that are available in the moduleaddModels
(int index, App.Model.Builder builderForValue) A list of models that are available in the moduleA list of models that are available in the moduleaddModels
(App.Model.Builder builderForValue) A list of models that are available in the moduleaddVersions
(int index, App.VersionHistory value) The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionaddVersions
(int index, App.VersionHistory.Builder builderForValue) The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionaddVersions
(App.VersionHistory value) The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionaddVersions
(App.VersionHistory.Builder builderForValue) The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionA short description of the module that explains its purposeThe executable to run to start the module programThe path to a setup script that is run before a newly downloaded module starts.A list of models that are available in the moduleThe id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)The name of the moduleThe id of the organization that owns the moduleThe public namespace of the organization that owns the module This is empty if no public namespace is setThe total number of organizations using this moduleThe total number of robots using this moduleclearUrl()
The url to reference for documentation, code, etc.The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionThe visibility of the moduleA short description of the module that explains its purposecom.google.protobuf.ByteString
A short description of the module that explains its purposeThe executable to run to start the module programcom.google.protobuf.ByteString
The executable to run to start the module programThe path to a setup script that is run before a newly downloaded module starts.com.google.protobuf.ByteString
The path to a setup script that is run before a newly downloaded module starts.getModels
(int index) A list of models that are available in the moduleint
A list of models that are available in the moduleA list of models that are available in the moduleThe id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)com.google.protobuf.ByteString
The id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)getName()
The name of the modulecom.google.protobuf.ByteString
The name of the moduleThe id of the organization that owns the modulecom.google.protobuf.ByteString
The id of the organization that owns the moduleThe public namespace of the organization that owns the module This is empty if no public namespace is setcom.google.protobuf.ByteString
The public namespace of the organization that owns the module This is empty if no public namespace is setlong
The total number of organizations using this modulelong
The total number of robots using this modulegetUrl()
The url to reference for documentation, code, etc.com.google.protobuf.ByteString
The url to reference for documentation, code, etc.getVersions
(int index) The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionint
The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionThe versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionThe visibility of the moduleint
The visibility of the moduleboolean
The path to a setup script that is run before a newly downloaded module starts.removeModels
(int index) A list of models that are available in the moduleremoveVersions
(int index) The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionsetDescription
(String value) A short description of the module that explains its purposesetDescriptionBytes
(com.google.protobuf.ByteString value) A short description of the module that explains its purposesetEntrypoint
(String value) The executable to run to start the module programsetEntrypointBytes
(com.google.protobuf.ByteString value) The executable to run to start the module programsetFirstRun
(String value) The path to a setup script that is run before a newly downloaded module starts.setFirstRunBytes
(com.google.protobuf.ByteString value) The path to a setup script that is run before a newly downloaded module starts.A list of models that are available in the modulesetModels
(int index, App.Model.Builder builderForValue) A list of models that are available in the modulesetModuleId
(String value) The id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)setModuleIdBytes
(com.google.protobuf.ByteString value) The id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)The name of the modulesetNameBytes
(com.google.protobuf.ByteString value) The name of the modulesetOrganizationId
(String value) The id of the organization that owns the modulesetOrganizationIdBytes
(com.google.protobuf.ByteString value) The id of the organization that owns the modulesetPublicNamespace
(String value) The public namespace of the organization that owns the module This is empty if no public namespace is setsetPublicNamespaceBytes
(com.google.protobuf.ByteString value) The public namespace of the organization that owns the module This is empty if no public namespace is setsetTotalOrganizationUsage
(long value) The total number of organizations using this modulesetTotalRobotUsage
(long value) The total number of robots using this moduleThe url to reference for documentation, code, etc.setUrlBytes
(com.google.protobuf.ByteString value) The url to reference for documentation, code, etc.setVersions
(int index, App.VersionHistory value) The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionsetVersions
(int index, App.VersionHistory.Builder builderForValue) The versions of the module that are available When this is returned from the backend, the versions are sorted in ascending order by the semver versionsetVisibility
(App.Visibility value) The visibility of the modulesetVisibilityValue
(int value) The visibility of the moduleMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getModuleId
The id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)
string module_id = 1 [json_name = "moduleId"];
- Specified by:
getModuleId
in interfaceApp.ModuleOrBuilder
- Returns:
- The moduleId.
-
getModuleIdBytes
public com.google.protobuf.ByteString getModuleIdBytes()The id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)
string module_id = 1 [json_name = "moduleId"];
- Specified by:
getModuleIdBytes
in interfaceApp.ModuleOrBuilder
- Returns:
- The bytes for moduleId.
-
setModuleId
The id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)
string module_id = 1 [json_name = "moduleId"];
- Parameters:
value
- The moduleId to set.- Returns:
- This builder for chaining.
-
clearModuleId
The id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)
string module_id = 1 [json_name = "moduleId"];
- Returns:
- This builder for chaining.
-
setModuleIdBytes
The id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)
string module_id = 1 [json_name = "moduleId"];
- Parameters:
value
- The bytes for moduleId to set.- Returns:
- This builder for chaining.
-
getName
The name of the module
string name = 2 [json_name = "name"];
- Specified by:
getName
in interfaceApp.ModuleOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the module
string name = 2 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceApp.ModuleOrBuilder
- Returns:
- The bytes for name.
-
setName
The name of the module
string name = 2 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the module
string name = 2 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
The name of the module
string name = 2 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getVisibilityValue
public int getVisibilityValue()The visibility of the module
.viam.app.v1.Visibility visibility = 3 [json_name = "visibility"];
- Specified by:
getVisibilityValue
in interfaceApp.ModuleOrBuilder
- Returns:
- The enum numeric value on the wire for visibility.
-
setVisibilityValue
The visibility of the module
.viam.app.v1.Visibility visibility = 3 [json_name = "visibility"];
- Parameters:
value
- The visibility to set.- Returns:
- This builder for chaining.
-
getVisibility
The visibility of the module
.viam.app.v1.Visibility visibility = 3 [json_name = "visibility"];
- Specified by:
getVisibility
in interfaceApp.ModuleOrBuilder
- Returns:
- The visibility.
-
setVisibility
The visibility of the module
.viam.app.v1.Visibility visibility = 3 [json_name = "visibility"];
- Parameters:
value
- The enum numeric value on the wire for visibility to set.- Returns:
- This builder for chaining.
-
clearVisibility
The visibility of the module
.viam.app.v1.Visibility visibility = 3 [json_name = "visibility"];
- Returns:
- This builder for chaining.
-
getVersionsList
The 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.VersionHistory versions = 4 [json_name = "versions"];
- Specified by:
getVersionsList
in interfaceApp.ModuleOrBuilder
-
getVersionsCount
public int getVersionsCount()The 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.VersionHistory versions = 4 [json_name = "versions"];
- Specified by:
getVersionsCount
in interfaceApp.ModuleOrBuilder
-
getVersions
The 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.VersionHistory versions = 4 [json_name = "versions"];
- Specified by:
getVersions
in interfaceApp.ModuleOrBuilder
-
setVersions
The 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.VersionHistory versions = 4 [json_name = "versions"];
-
setVersions
The 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.VersionHistory versions = 4 [json_name = "versions"];
-
addVersions
The 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.VersionHistory versions = 4 [json_name = "versions"];
-
addVersions
The 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.VersionHistory versions = 4 [json_name = "versions"];
-
addVersions
The 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.VersionHistory versions = 4 [json_name = "versions"];
-
addVersions
The 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.VersionHistory versions = 4 [json_name = "versions"];
-
addAllVersions
The 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.VersionHistory versions = 4 [json_name = "versions"];
-
clearVersions
The 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.VersionHistory versions = 4 [json_name = "versions"];
-
removeVersions
The 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.VersionHistory versions = 4 [json_name = "versions"];
-
getUrl
The url to reference for documentation, code, etc.
string url = 5 [json_name = "url"];
- Specified by:
getUrl
in interfaceApp.ModuleOrBuilder
- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()The url to reference for documentation, code, etc.
string url = 5 [json_name = "url"];
- Specified by:
getUrlBytes
in interfaceApp.ModuleOrBuilder
- Returns:
- The bytes for url.
-
setUrl
The url to reference for documentation, code, etc.
string url = 5 [json_name = "url"];
- Parameters:
value
- The url to set.- Returns:
- This builder for chaining.
-
clearUrl
The url to reference for documentation, code, etc.
string url = 5 [json_name = "url"];
- Returns:
- This builder for chaining.
-
setUrlBytes
The url to reference for documentation, code, etc.
string url = 5 [json_name = "url"];
- Parameters:
value
- The bytes for url to set.- Returns:
- This builder for chaining.
-
getDescription
A short description of the module that explains its purpose
string description = 6 [json_name = "description"];
- Specified by:
getDescription
in interfaceApp.ModuleOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A short description of the module that explains its purpose
string description = 6 [json_name = "description"];
- Specified by:
getDescriptionBytes
in interfaceApp.ModuleOrBuilder
- Returns:
- The bytes for description.
-
setDescription
A short description of the module that explains its purpose
string description = 6 [json_name = "description"];
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A short description of the module that explains its purpose
string description = 6 [json_name = "description"];
- Returns:
- This builder for chaining.
-
setDescriptionBytes
A short description of the module that explains its purpose
string description = 6 [json_name = "description"];
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getModelsList
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
- Specified by:
getModelsList
in interfaceApp.ModuleOrBuilder
-
getModelsCount
public int getModelsCount()A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
- Specified by:
getModelsCount
in interfaceApp.ModuleOrBuilder
-
getModels
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
- Specified by:
getModels
in interfaceApp.ModuleOrBuilder
-
setModels
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
-
setModels
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
-
addModels
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
-
addModels
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
-
addModels
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
-
addModels
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
-
addAllModels
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
-
clearModels
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
-
removeModels
A list of models that are available in the module
repeated .viam.app.v1.Model models = 7 [json_name = "models"];
-
getTotalRobotUsage
public long getTotalRobotUsage()The total number of robots using this module
int64 total_robot_usage = 8 [json_name = "totalRobotUsage"];
- Specified by:
getTotalRobotUsage
in interfaceApp.ModuleOrBuilder
- Returns:
- The totalRobotUsage.
-
setTotalRobotUsage
The total number of robots using this module
int64 total_robot_usage = 8 [json_name = "totalRobotUsage"];
- Parameters:
value
- The totalRobotUsage to set.- Returns:
- This builder for chaining.
-
clearTotalRobotUsage
The total number of robots using this module
int64 total_robot_usage = 8 [json_name = "totalRobotUsage"];
- Returns:
- This builder for chaining.
-
getTotalOrganizationUsage
public long getTotalOrganizationUsage()The total number of organizations using this module
int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"];
- Specified by:
getTotalOrganizationUsage
in interfaceApp.ModuleOrBuilder
- Returns:
- The totalOrganizationUsage.
-
setTotalOrganizationUsage
The total number of organizations using this module
int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"];
- Parameters:
value
- The totalOrganizationUsage to set.- Returns:
- This builder for chaining.
-
clearTotalOrganizationUsage
The total number of organizations using this module
int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"];
- Returns:
- This builder for chaining.
-
getOrganizationId
The id of the organization that owns the module
string organization_id = 10 [json_name = "organizationId"];
- Specified by:
getOrganizationId
in interfaceApp.ModuleOrBuilder
- Returns:
- The organizationId.
-
getOrganizationIdBytes
public com.google.protobuf.ByteString getOrganizationIdBytes()The id of the organization that owns the module
string organization_id = 10 [json_name = "organizationId"];
- Specified by:
getOrganizationIdBytes
in interfaceApp.ModuleOrBuilder
- Returns:
- The bytes for organizationId.
-
setOrganizationId
The id of the organization that owns the module
string organization_id = 10 [json_name = "organizationId"];
- Parameters:
value
- The organizationId to set.- Returns:
- This builder for chaining.
-
clearOrganizationId
The id of the organization that owns the module
string organization_id = 10 [json_name = "organizationId"];
- Returns:
- This builder for chaining.
-
setOrganizationIdBytes
The id of the organization that owns the module
string organization_id = 10 [json_name = "organizationId"];
- Parameters:
value
- The bytes for organizationId to set.- Returns:
- This builder for chaining.
-
getEntrypoint
The executable to run to start the module program
string entrypoint = 11 [json_name = "entrypoint"];
- Specified by:
getEntrypoint
in interfaceApp.ModuleOrBuilder
- Returns:
- The entrypoint.
-
getEntrypointBytes
public com.google.protobuf.ByteString getEntrypointBytes()The executable to run to start the module program
string entrypoint = 11 [json_name = "entrypoint"];
- Specified by:
getEntrypointBytes
in interfaceApp.ModuleOrBuilder
- Returns:
- The bytes for entrypoint.
-
setEntrypoint
The executable to run to start the module program
string entrypoint = 11 [json_name = "entrypoint"];
- Parameters:
value
- The entrypoint to set.- Returns:
- This builder for chaining.
-
clearEntrypoint
The executable to run to start the module program
string entrypoint = 11 [json_name = "entrypoint"];
- Returns:
- This builder for chaining.
-
setEntrypointBytes
The executable to run to start the module program
string entrypoint = 11 [json_name = "entrypoint"];
- Parameters:
value
- The bytes for entrypoint to set.- Returns:
- This builder for chaining.
-
getPublicNamespace
The public namespace of the organization that owns the module This is empty if no public namespace is set
string public_namespace = 12 [json_name = "publicNamespace"];
- Specified by:
getPublicNamespace
in interfaceApp.ModuleOrBuilder
- Returns:
- The publicNamespace.
-
getPublicNamespaceBytes
public com.google.protobuf.ByteString getPublicNamespaceBytes()The public namespace of the organization that owns the module This is empty if no public namespace is set
string public_namespace = 12 [json_name = "publicNamespace"];
- Specified by:
getPublicNamespaceBytes
in interfaceApp.ModuleOrBuilder
- Returns:
- The bytes for publicNamespace.
-
setPublicNamespace
The public namespace of the organization that owns the module This is empty if no public namespace is set
string public_namespace = 12 [json_name = "publicNamespace"];
- Parameters:
value
- The publicNamespace to set.- Returns:
- This builder for chaining.
-
clearPublicNamespace
The public namespace of the organization that owns the module This is empty if no public namespace is set
string public_namespace = 12 [json_name = "publicNamespace"];
- Returns:
- This builder for chaining.
-
setPublicNamespaceBytes
The public namespace of the organization that owns the module This is empty if no public namespace is set
string public_namespace = 12 [json_name = "publicNamespace"];
- Parameters:
value
- The bytes for publicNamespace 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 = 13 [json_name = "firstRun"];
- Specified by:
hasFirstRun
in interfaceApp.ModuleOrBuilder
- Returns:
- Whether the firstRun field is set.
-
getFirstRun
The path to a setup script that is run before a newly downloaded module starts.
optional string first_run = 13 [json_name = "firstRun"];
- Specified by:
getFirstRun
in interfaceApp.ModuleOrBuilder
- 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 = 13 [json_name = "firstRun"];
- Specified by:
getFirstRunBytes
in interfaceApp.ModuleOrBuilder
- Returns:
- The bytes for firstRun.
-
setFirstRun
The path to a setup script that is run before a newly downloaded module starts.
optional string first_run = 13 [json_name = "firstRun"];
- Parameters:
value
- The firstRun to set.- Returns:
- This builder for chaining.
-
clearFirstRun
The path to a setup script that is run before a newly downloaded module starts.
optional string first_run = 13 [json_name = "firstRun"];
- Returns:
- This builder for chaining.
-
setFirstRunBytes
The path to a setup script that is run before a newly downloaded module starts.
optional string first_run = 13 [json_name = "firstRun"];
- Parameters:
value
- The bytes for firstRun to set.- Returns:
- This builder for chaining.
-