viam.proto.app.dataset
@generated by Viam. Do not edit manually!
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
CreateDatasetRequest defines the name and organization ID of a dataset. |
|
CreateDatasetResponse returns the dataset ID of the created dataset. |
|
Dataset stores the metadata of a dataset. |
|
DatasetType describes the kind of membership a dataset stores. |
|
DeleteDatasetRequest deletes the dataset specified by the dataset ID. |
|
Abstract base class for protocol messages. |
|
GetSequenceDatasetExportRequest looks up an export job by its job_id. |
|
GetSequenceDatasetExportResponse reports the current status of an export |
|
ListDatasetsByIDsRequest requests all of the datasets by their dataset IDs. |
|
ListDatasetsByIDsResponse returns all the dataset metadata for the associated dataset IDs. |
|
ListDatasetsByOrganizationIDRequest requests all of the datasets for an organization. |
|
ListDatasetsByOrganizationIDResponse returns all the dataset metadata for the organization. |
|
MergeDatasetsRequest merges multiple datasets specified by their dataset IDs into a new dataset. |
|
MergeDatasetsResponse returns the dataset ID of the newly created merged dataset. |
|
RenameDatasetRequest applies the new name to the dataset specified by the dataset ID. |
|
Abstract base class for protocol messages. |
|
SequenceDatasetExportStatus is the lifecycle state of an export job. |
|
StartSequenceDatasetExportRequest specifies the sequence dataset to export. |
|
StartSequenceDatasetExportResponse returns the job_id to poll with |
Package Contents
- class viam.proto.app.dataset.DatasetServiceBase[source]
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- abstractmethod CreateDataset(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.CreateDatasetRequest, app.dataset.v1.dataset_pb2.CreateDatasetResponse]) None[source]
- Async:
- abstractmethod DeleteDataset(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.DeleteDatasetRequest, app.dataset.v1.dataset_pb2.DeleteDatasetResponse]) None[source]
- Async:
- abstractmethod RenameDataset(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.RenameDatasetRequest, app.dataset.v1.dataset_pb2.RenameDatasetResponse]) None[source]
- Async:
- abstractmethod ListDatasetsByOrganizationID(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDRequest, app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDResponse]) None[source]
- Async:
- abstractmethod ListDatasetsByIDs(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.ListDatasetsByIDsRequest, app.dataset.v1.dataset_pb2.ListDatasetsByIDsResponse]) None[source]
- Async:
- abstractmethod MergeDatasets(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.MergeDatasetsRequest, app.dataset.v1.dataset_pb2.MergeDatasetsResponse]) None[source]
- Async:
- abstractmethod StartSequenceDatasetExport(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.StartSequenceDatasetExportRequest, app.dataset.v1.dataset_pb2.StartSequenceDatasetExportResponse]) None[source]
- Async:
- abstractmethod GetSequenceDatasetExport(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.GetSequenceDatasetExportRequest, app.dataset.v1.dataset_pb2.GetSequenceDatasetExportResponse]) None[source]
- Async:
- class viam.proto.app.dataset.DatasetServiceStub(channel: grpclib.client.Channel)[source]
- CreateDataset
- DeleteDataset
- RenameDataset
- ListDatasetsByOrganizationID
- ListDatasetsByIDs
- MergeDatasets
- StartSequenceDatasetExport
- GetSequenceDatasetExport
- class viam.proto.app.dataset.UnimplementedDatasetServiceBase[source]
Bases:
DatasetServiceBaseHelper class that provides a standard way to create an ABC using inheritance.
- async CreateDataset(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.CreateDatasetRequest, app.dataset.v1.dataset_pb2.CreateDatasetResponse]) None[source]
- async DeleteDataset(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.DeleteDatasetRequest, app.dataset.v1.dataset_pb2.DeleteDatasetResponse]) None[source]
- async RenameDataset(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.RenameDatasetRequest, app.dataset.v1.dataset_pb2.RenameDatasetResponse]) None[source]
- async ListDatasetsByOrganizationID(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDRequest, app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDResponse]) None[source]
- async ListDatasetsByIDs(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.ListDatasetsByIDsRequest, app.dataset.v1.dataset_pb2.ListDatasetsByIDsResponse]) None[source]
- async MergeDatasets(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.MergeDatasetsRequest, app.dataset.v1.dataset_pb2.MergeDatasetsResponse]) None[source]
- async StartSequenceDatasetExport(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.StartSequenceDatasetExportRequest, app.dataset.v1.dataset_pb2.StartSequenceDatasetExportResponse]) None[source]
- async GetSequenceDatasetExport(stream: grpclib.server.Stream[app.dataset.v1.dataset_pb2.GetSequenceDatasetExportRequest, app.dataset.v1.dataset_pb2.GetSequenceDatasetExportResponse]) None[source]
- class viam.proto.app.dataset.CreateDatasetRequest(*, name: str = ..., organization_id: str = ..., type: Global___DatasetType | None = ...)
Bases:
google.protobuf.message.MessageCreateDatasetRequest defines the name and organization ID of a dataset.
- name: str
- organization_id: str
- type: Global___DatasetType
type is the membership kind for the new dataset. Defaults to DATASET_TYPE_BINARY_DATA when unset.
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- WhichOneof(oneof_group: _WhichOneofArgType__type) _WhichOneofReturnType__type | None
Returns the name of the field that is set inside a oneof group.
If no field is set, returns None.
- Parameters:
oneof_group (str) – the name of the oneof group to check.
- Returns:
The name of the group that is set, or None.
- Return type:
str or None
- Raises:
ValueError – no group with the given name exists
- class viam.proto.app.dataset.CreateDatasetResponse(*, id: str = ...)
Bases:
google.protobuf.message.MessageCreateDatasetResponse returns the dataset ID of the created dataset.
- id: str
- class viam.proto.app.dataset.Dataset(*, id: str = ..., name: str = ..., organization_id: str = ..., time_created: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: Global___DatasetType = ...)
Bases:
google.protobuf.message.MessageDataset stores the metadata of a dataset.
- id: str
- name: str
- organization_id: str
- type: Global___DatasetType
type is the membership kind of this dataset. Immutable after creation; defaults to DATASET_TYPE_BINARY_DATA when unset (including for pre-existing datasets).
- time_created() google.protobuf.timestamp_pb2.Timestamp
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- class viam.proto.app.dataset.DatasetType
Bases:
_DatasetTypeDatasetType describes the kind of membership a dataset stores. buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
- class viam.proto.app.dataset.DeleteDatasetRequest(*, id: str = ...)
Bases:
google.protobuf.message.MessageDeleteDatasetRequest deletes the dataset specified by the dataset ID.
- id: str
- class viam.proto.app.dataset.DeleteDatasetResponse
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- class viam.proto.app.dataset.GetSequenceDatasetExportRequest(*, job_id: str = ...)
Bases:
google.protobuf.message.MessageGetSequenceDatasetExportRequest looks up an export job by its job_id.
- job_id: str
- class viam.proto.app.dataset.GetSequenceDatasetExportResponse(*, job_id: str = ..., status: Global___SequenceDatasetExportStatus = ..., download_url: str = ..., expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., error_message: str = ..., created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., completed_at: google.protobuf.timestamp_pb2.Timestamp | None = ...)
Bases:
google.protobuf.message.MessageGetSequenceDatasetExportResponse reports the current status of an export job. download_url and expires_at are set only when status is COMPLETED; error_message is set only when status is FAILED.
- job_id: str
- download_url: str
Short-lived (e.g. 1h) signed URL for direct download from backing storage. Empty unless status is COMPLETED.
- error_message: str
Human-readable cause; empty unless status is FAILED.
- expires_at() google.protobuf.timestamp_pb2.Timestamp
When download_url stops working. Empty unless status is COMPLETED.
- created_at() google.protobuf.timestamp_pb2.Timestamp
- completed_at() google.protobuf.timestamp_pb2.Timestamp
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- class viam.proto.app.dataset.ListDatasetsByIDsRequest(*, ids: collections.abc.Iterable[str] | None = ...)
Bases:
google.protobuf.message.MessageListDatasetsByIDsRequest requests all of the datasets by their dataset IDs.
- ids() google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
- class viam.proto.app.dataset.ListDatasetsByIDsResponse(*, datasets: collections.abc.Iterable[Global___Dataset] | None = ...)
Bases:
google.protobuf.message.MessageListDatasetsByIDsResponse returns all the dataset metadata for the associated dataset IDs.
- datasets() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Dataset]
- class viam.proto.app.dataset.ListDatasetsByOrganizationIDRequest(*, organization_id: str = ...)
Bases:
google.protobuf.message.MessageListDatasetsByOrganizationIDRequest requests all of the datasets for an organization.
- organization_id: str
- class viam.proto.app.dataset.ListDatasetsByOrganizationIDResponse(*, datasets: collections.abc.Iterable[Global___Dataset] | None = ...)
Bases:
google.protobuf.message.MessageListDatasetsByOrganizationIDResponse returns all the dataset metadata for the organization.
- datasets() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Dataset]
- class viam.proto.app.dataset.MergeDatasetsRequest(*, dataset_ids: collections.abc.Iterable[str] | None = ..., name: str = ..., organization_id: str = ...)
Bases:
google.protobuf.message.MessageMergeDatasetsRequest merges multiple datasets specified by their dataset IDs into a new dataset.
- name: str
- organization_id: str
- dataset_ids() google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
- class viam.proto.app.dataset.MergeDatasetsResponse(*, dataset_id: str = ...)
Bases:
google.protobuf.message.MessageMergeDatasetsResponse returns the dataset ID of the newly created merged dataset.
- dataset_id: str
- class viam.proto.app.dataset.RenameDatasetRequest(*, id: str = ..., name: str = ...)
Bases:
google.protobuf.message.MessageRenameDatasetRequest applies the new name to the dataset specified by the dataset ID.
- id: str
- name: str
- class viam.proto.app.dataset.RenameDatasetResponse
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- class viam.proto.app.dataset.SequenceDatasetExportStatus
Bases:
_SequenceDatasetExportStatusSequenceDatasetExportStatus is the lifecycle state of an export job.