Package viam.app.v1

Class App.RegistryItem.Builder

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

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

    • getMetadataCase

      public App.RegistryItem.MetadataCase getMetadataCase()
      Specified by:
      getMetadataCase in interface App.RegistryItemOrBuilder
    • clearMetadata

      public App.RegistryItem.Builder clearMetadata()
    • getItemId

      public String getItemId()
       The id of the item, containing either:
       namespace:item_name when a namespace exists on the org.
       org_id:item_name when a namespace does not exist.
       
      string item_id = 1 [json_name = "itemId"];
      Specified by:
      getItemId in interface App.RegistryItemOrBuilder
      Returns:
      The itemId.
    • getItemIdBytes

      public com.google.protobuf.ByteString getItemIdBytes()
       The id of the item, containing either:
       namespace:item_name when a namespace exists on the org.
       org_id:item_name when a namespace does not exist.
       
      string item_id = 1 [json_name = "itemId"];
      Specified by:
      getItemIdBytes in interface App.RegistryItemOrBuilder
      Returns:
      The bytes for itemId.
    • setItemId

      public App.RegistryItem.Builder setItemId(String value)
       The id of the item, containing either:
       namespace:item_name when a namespace exists on the org.
       org_id:item_name when a namespace does not exist.
       
      string item_id = 1 [json_name = "itemId"];
      Parameters:
      value - The itemId to set.
      Returns:
      This builder for chaining.
    • clearItemId

      public App.RegistryItem.Builder clearItemId()
       The id of the item, containing either:
       namespace:item_name when a namespace exists on the org.
       org_id:item_name when a namespace does not exist.
       
      string item_id = 1 [json_name = "itemId"];
      Returns:
      This builder for chaining.
    • setItemIdBytes

      public App.RegistryItem.Builder setItemIdBytes(com.google.protobuf.ByteString value)
       The id of the item, containing either:
       namespace:item_name when a namespace exists on the org.
       org_id:item_name when a namespace does not exist.
       
      string item_id = 1 [json_name = "itemId"];
      Parameters:
      value - The bytes for itemId to set.
      Returns:
      This builder for chaining.
    • getOrganizationId

      public String getOrganizationId()
       The id of the organization that owns the item
       
      string organization_id = 2 [json_name = "organizationId"];
      Specified by:
      getOrganizationId in interface App.RegistryItemOrBuilder
      Returns:
      The organizationId.
    • getOrganizationIdBytes

      public com.google.protobuf.ByteString getOrganizationIdBytes()
       The id of the organization that owns the item
       
      string organization_id = 2 [json_name = "organizationId"];
      Specified by:
      getOrganizationIdBytes in interface App.RegistryItemOrBuilder
      Returns:
      The bytes for organizationId.
    • setOrganizationId

      public App.RegistryItem.Builder setOrganizationId(String value)
       The id of the organization that owns the item
       
      string organization_id = 2 [json_name = "organizationId"];
      Parameters:
      value - The organizationId to set.
      Returns:
      This builder for chaining.
    • clearOrganizationId

      public App.RegistryItem.Builder clearOrganizationId()
       The id of the organization that owns the item
       
      string organization_id = 2 [json_name = "organizationId"];
      Returns:
      This builder for chaining.
    • setOrganizationIdBytes

      public App.RegistryItem.Builder setOrganizationIdBytes(com.google.protobuf.ByteString value)
       The id of the organization that owns the item
       
      string organization_id = 2 [json_name = "organizationId"];
      Parameters:
      value - The bytes for organizationId to set.
      Returns:
      This builder for chaining.
    • getPublicNamespace

      public String getPublicNamespace()
       The public namespace of the organization that owns the module
       This is empty if no public namespace is set
       
      string public_namespace = 3 [json_name = "publicNamespace"];
      Specified by:
      getPublicNamespace in interface App.RegistryItemOrBuilder
      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 = 3 [json_name = "publicNamespace"];
      Specified by:
      getPublicNamespaceBytes in interface App.RegistryItemOrBuilder
      Returns:
      The bytes for publicNamespace.
    • setPublicNamespace

      public App.RegistryItem.Builder setPublicNamespace(String value)
       The public namespace of the organization that owns the module
       This is empty if no public namespace is set
       
      string public_namespace = 3 [json_name = "publicNamespace"];
      Parameters:
      value - The publicNamespace to set.
      Returns:
      This builder for chaining.
    • clearPublicNamespace

      public App.RegistryItem.Builder clearPublicNamespace()
       The public namespace of the organization that owns the module
       This is empty if no public namespace is set
       
      string public_namespace = 3 [json_name = "publicNamespace"];
      Returns:
      This builder for chaining.
    • setPublicNamespaceBytes

      public App.RegistryItem.Builder setPublicNamespaceBytes(com.google.protobuf.ByteString value)
       The public namespace of the organization that owns the module
       This is empty if no public namespace is set
       
      string public_namespace = 3 [json_name = "publicNamespace"];
      Parameters:
      value - The bytes for publicNamespace to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       The name of the registry item
       
      string name = 4 [json_name = "name"];
      Specified by:
      getName in interface App.RegistryItemOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the registry item
       
      string name = 4 [json_name = "name"];
      Specified by:
      getNameBytes in interface App.RegistryItemOrBuilder
      Returns:
      The bytes for name.
    • setName

      public App.RegistryItem.Builder setName(String value)
       The name of the registry item
       
      string name = 4 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public App.RegistryItem.Builder clearName()
       The name of the registry item
       
      string name = 4 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public App.RegistryItem.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the registry item
       
      string name = 4 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       The type of the item in the registry
       
      .viam.app.packages.v1.PackageType type = 5 [json_name = "type"];
      Specified by:
      getTypeValue in interface App.RegistryItemOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public App.RegistryItem.Builder setTypeValue(int value)
       The type of the item in the registry
       
      .viam.app.packages.v1.PackageType type = 5 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • getType

      public Packages.PackageType getType()
       The type of the item in the registry
       
      .viam.app.packages.v1.PackageType type = 5 [json_name = "type"];
      Specified by:
      getType in interface App.RegistryItemOrBuilder
      Returns:
      The type.
    • setType

       The type of the item in the registry
       
      .viam.app.packages.v1.PackageType type = 5 [json_name = "type"];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • clearType

      public App.RegistryItem.Builder clearType()
       The type of the item in the registry
       
      .viam.app.packages.v1.PackageType type = 5 [json_name = "type"];
      Returns:
      This builder for chaining.
    • getVisibilityValue

      public int getVisibilityValue()
       The visibility of the registry item
       
      .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"];
      Specified by:
      getVisibilityValue in interface App.RegistryItemOrBuilder
      Returns:
      The enum numeric value on the wire for visibility.
    • setVisibilityValue

      public App.RegistryItem.Builder setVisibilityValue(int value)
       The visibility of the registry item
       
      .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"];
      Parameters:
      value - The visibility to set.
      Returns:
      This builder for chaining.
    • getVisibility

      public App.Visibility getVisibility()
       The visibility of the registry item
       
      .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"];
      Specified by:
      getVisibility in interface App.RegistryItemOrBuilder
      Returns:
      The visibility.
    • setVisibility

      public App.RegistryItem.Builder setVisibility(App.Visibility value)
       The visibility of the registry item
       
      .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"];
      Parameters:
      value - The enum numeric value on the wire for visibility to set.
      Returns:
      This builder for chaining.
    • clearVisibility

      public App.RegistryItem.Builder clearVisibility()
       The visibility of the registry item
       
      .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"];
      Returns:
      This builder for chaining.
    • getUrl

      public String getUrl()
       The url to reference for documentation, code, etc.
       
      string url = 7 [json_name = "url"];
      Specified by:
      getUrl in interface App.RegistryItemOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       The url to reference for documentation, code, etc.
       
      string url = 7 [json_name = "url"];
      Specified by:
      getUrlBytes in interface App.RegistryItemOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public App.RegistryItem.Builder setUrl(String value)
       The url to reference for documentation, code, etc.
       
      string url = 7 [json_name = "url"];
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public App.RegistryItem.Builder clearUrl()
       The url to reference for documentation, code, etc.
       
      string url = 7 [json_name = "url"];
      Returns:
      This builder for chaining.
    • setUrlBytes

      public App.RegistryItem.Builder setUrlBytes(com.google.protobuf.ByteString value)
       The url to reference for documentation, code, etc.
       
      string url = 7 [json_name = "url"];
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       A short description of the item that explains its purpose
       
      string description = 8 [json_name = "description"];
      Specified by:
      getDescription in interface App.RegistryItemOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A short description of the item that explains its purpose
       
      string description = 8 [json_name = "description"];
      Specified by:
      getDescriptionBytes in interface App.RegistryItemOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public App.RegistryItem.Builder setDescription(String value)
       A short description of the item that explains its purpose
       
      string description = 8 [json_name = "description"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public App.RegistryItem.Builder clearDescription()
       A short description of the item that explains its purpose
       
      string description = 8 [json_name = "description"];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public App.RegistryItem.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       A short description of the item that explains its purpose
       
      string description = 8 [json_name = "description"];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getTotalRobotUsage

      public long getTotalRobotUsage()
       The total number of robots using this item
       
      int64 total_robot_usage = 9 [json_name = "totalRobotUsage"];
      Specified by:
      getTotalRobotUsage in interface App.RegistryItemOrBuilder
      Returns:
      The totalRobotUsage.
    • setTotalRobotUsage

      public App.RegistryItem.Builder setTotalRobotUsage(long value)
       The total number of robots using this item
       
      int64 total_robot_usage = 9 [json_name = "totalRobotUsage"];
      Parameters:
      value - The totalRobotUsage to set.
      Returns:
      This builder for chaining.
    • clearTotalRobotUsage

      public App.RegistryItem.Builder clearTotalRobotUsage()
       The total number of robots using this item
       
      int64 total_robot_usage = 9 [json_name = "totalRobotUsage"];
      Returns:
      This builder for chaining.
    • getTotalExternalRobotUsage

      public long getTotalExternalRobotUsage()
       The total number of robots using this item outside of the owning org
       
      int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"];
      Specified by:
      getTotalExternalRobotUsage in interface App.RegistryItemOrBuilder
      Returns:
      The totalExternalRobotUsage.
    • setTotalExternalRobotUsage

      public App.RegistryItem.Builder setTotalExternalRobotUsage(long value)
       The total number of robots using this item outside of the owning org
       
      int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"];
      Parameters:
      value - The totalExternalRobotUsage to set.
      Returns:
      This builder for chaining.
    • clearTotalExternalRobotUsage

      public App.RegistryItem.Builder clearTotalExternalRobotUsage()
       The total number of robots using this item outside of the owning org
       
      int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"];
      Returns:
      This builder for chaining.
    • getTotalOrganizationUsage

      public long getTotalOrganizationUsage()
       The total number of organizations using this item
       
      int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"];
      Specified by:
      getTotalOrganizationUsage in interface App.RegistryItemOrBuilder
      Returns:
      The totalOrganizationUsage.
    • setTotalOrganizationUsage

      public App.RegistryItem.Builder setTotalOrganizationUsage(long value)
       The total number of organizations using this item
       
      int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"];
      Parameters:
      value - The totalOrganizationUsage to set.
      Returns:
      This builder for chaining.
    • clearTotalOrganizationUsage

      public App.RegistryItem.Builder clearTotalOrganizationUsage()
       The total number of organizations using this item
       
      int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"];
      Returns:
      This builder for chaining.
    • getTotalExternalOrganizationUsage

      public long getTotalExternalOrganizationUsage()
       The total number of organizations using this item outside of the owning org
       
      int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"];
      Specified by:
      getTotalExternalOrganizationUsage in interface App.RegistryItemOrBuilder
      Returns:
      The totalExternalOrganizationUsage.
    • setTotalExternalOrganizationUsage

      public App.RegistryItem.Builder setTotalExternalOrganizationUsage(long value)
       The total number of organizations using this item outside of the owning org
       
      int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"];
      Parameters:
      value - The totalExternalOrganizationUsage to set.
      Returns:
      This builder for chaining.
    • clearTotalExternalOrganizationUsage

      public App.RegistryItem.Builder clearTotalExternalOrganizationUsage()
       The total number of organizations using this item outside of the owning org
       
      int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"];
      Returns:
      This builder for chaining.
    • hasModuleMetadata

      public boolean hasModuleMetadata()
      .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"];
      Specified by:
      hasModuleMetadata in interface App.RegistryItemOrBuilder
      Returns:
      Whether the moduleMetadata field is set.
    • getModuleMetadata

      public App.ModuleMetadata getModuleMetadata()
      .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"];
      Specified by:
      getModuleMetadata in interface App.RegistryItemOrBuilder
      Returns:
      The moduleMetadata.
    • setModuleMetadata

      public App.RegistryItem.Builder setModuleMetadata(App.ModuleMetadata value)
      .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"];
    • setModuleMetadata

      public App.RegistryItem.Builder setModuleMetadata(App.ModuleMetadata.Builder builderForValue)
      .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"];
    • mergeModuleMetadata

      public App.RegistryItem.Builder mergeModuleMetadata(App.ModuleMetadata value)
      .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"];
    • clearModuleMetadata

      public App.RegistryItem.Builder clearModuleMetadata()
      .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"];
    • hasMlModelMetadata

      public boolean hasMlModelMetadata()
      .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"];
      Specified by:
      hasMlModelMetadata in interface App.RegistryItemOrBuilder
      Returns:
      Whether the mlModelMetadata field is set.
    • getMlModelMetadata

      public App.MLModelMetadata getMlModelMetadata()
      .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"];
      Specified by:
      getMlModelMetadata in interface App.RegistryItemOrBuilder
      Returns:
      The mlModelMetadata.
    • setMlModelMetadata

      public App.RegistryItem.Builder setMlModelMetadata(App.MLModelMetadata value)
      .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"];
    • setMlModelMetadata

      public App.RegistryItem.Builder setMlModelMetadata(App.MLModelMetadata.Builder builderForValue)
      .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"];
    • mergeMlModelMetadata

      public App.RegistryItem.Builder mergeMlModelMetadata(App.MLModelMetadata value)
      .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"];
    • clearMlModelMetadata

      public App.RegistryItem.Builder clearMlModelMetadata()
      .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"];
    • hasMlTrainingMetadata

      public boolean hasMlTrainingMetadata()
      .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"];
      Specified by:
      hasMlTrainingMetadata in interface App.RegistryItemOrBuilder
      Returns:
      Whether the mlTrainingMetadata field is set.
    • getMlTrainingMetadata

      public App.MLTrainingMetadata getMlTrainingMetadata()
      .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"];
      Specified by:
      getMlTrainingMetadata in interface App.RegistryItemOrBuilder
      Returns:
      The mlTrainingMetadata.
    • setMlTrainingMetadata

      public App.RegistryItem.Builder setMlTrainingMetadata(App.MLTrainingMetadata value)
      .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"];
    • setMlTrainingMetadata

      public App.RegistryItem.Builder setMlTrainingMetadata(App.MLTrainingMetadata.Builder builderForValue)
      .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"];
    • mergeMlTrainingMetadata

      public App.RegistryItem.Builder mergeMlTrainingMetadata(App.MLTrainingMetadata value)
      .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"];
    • clearMlTrainingMetadata

      public App.RegistryItem.Builder clearMlTrainingMetadata()
      .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"];
    • hasCreatedAt

      public boolean hasCreatedAt()
       When the item was created
       
      .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"];
      Specified by:
      hasCreatedAt in interface App.RegistryItemOrBuilder
      Returns:
      Whether the createdAt field is set.
    • getCreatedAt

      public com.google.protobuf.Timestamp getCreatedAt()
       When the item was created
       
      .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"];
      Specified by:
      getCreatedAt in interface App.RegistryItemOrBuilder
      Returns:
      The createdAt.
    • setCreatedAt

      public App.RegistryItem.Builder setCreatedAt(com.google.protobuf.Timestamp value)
       When the item was created
       
      .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"];
    • setCreatedAt

      public App.RegistryItem.Builder setCreatedAt(com.google.protobuf.Timestamp.Builder builderForValue)
       When the item was created
       
      .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"];
    • mergeCreatedAt

      public App.RegistryItem.Builder mergeCreatedAt(com.google.protobuf.Timestamp value)
       When the item was created
       
      .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"];
    • clearCreatedAt

      public App.RegistryItem.Builder clearCreatedAt()
       When the item was created
       
      .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"];
    • hasUpdatedAt

      public boolean hasUpdatedAt()
       When the item was last updated, either through an update or upload.
       
      .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"];
      Specified by:
      hasUpdatedAt in interface App.RegistryItemOrBuilder
      Returns:
      Whether the updatedAt field is set.
    • getUpdatedAt

      public com.google.protobuf.Timestamp getUpdatedAt()
       When the item was last updated, either through an update or upload.
       
      .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"];
      Specified by:
      getUpdatedAt in interface App.RegistryItemOrBuilder
      Returns:
      The updatedAt.
    • setUpdatedAt

      public App.RegistryItem.Builder setUpdatedAt(com.google.protobuf.Timestamp value)
       When the item was last updated, either through an update or upload.
       
      .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"];
    • setUpdatedAt

      public App.RegistryItem.Builder setUpdatedAt(com.google.protobuf.Timestamp.Builder builderForValue)
       When the item was last updated, either through an update or upload.
       
      .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"];
    • mergeUpdatedAt

      public App.RegistryItem.Builder mergeUpdatedAt(com.google.protobuf.Timestamp value)
       When the item was last updated, either through an update or upload.
       
      .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"];
    • clearUpdatedAt

      public App.RegistryItem.Builder clearUpdatedAt()
       When the item was last updated, either through an update or upload.
       
      .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"];