viam.gen.app.dataset.v1.dataset_pb2
@generated by mypy-protobuf. Do not edit manually! isort:skip_file
Attributes
DATASET_TYPE_BINARY_DATA is a dataset whose members are individual binary data objects (frames). |
|
DATASET_TYPE_SEQUENCE_DATA is a dataset whose members are sequences. Binary-data writes |
|
PENDING — accepted, not yet picked up. |
|
COMPLETED — Parquet file is uploaded; download_url is set. |
|
FAILED — terminal; error_message describes the cause. |
|
Classes
DatasetType describes the kind of membership a dataset stores. |
|
SequenceDatasetExportStatus is the lifecycle state of an export job. |
|
Dataset stores the metadata of a dataset. |
|
CreateDatasetRequest defines the name and organization ID of a dataset. |
|
CreateDatasetResponse returns the dataset ID of the created dataset. |
|
DeleteDatasetRequest deletes the dataset specified by the dataset ID. |
|
Abstract base class for protocol messages. |
|
RenameDatasetRequest applies the new name to the dataset specified by the dataset ID. |
|
Abstract base class for protocol messages. |
|
ListDatasetsByOrganizationIDRequest requests all of the datasets for an organization, |
|
ListDatasetsByOrganizationIDResponse returns all the dataset metadata for the organization. |
|
ListDatasetsByIDsRequest requests all of the datasets by their dataset IDs. |
|
ListDatasetsByIDsResponse returns all the dataset metadata for the associated dataset IDs. |
|
MergeDatasetsRequest merges multiple datasets specified by their dataset IDs into a new dataset. |
|
MergeDatasetsResponse returns the dataset ID of the newly created merged dataset. |
|
StartSequenceDatasetExportRequest specifies the sequence dataset to export. |
|
StartSequenceDatasetExportResponse returns the job_id to poll with |
|
GetSequenceDatasetExportRequest looks up an export job by its job_id. |
|
GetSequenceDatasetExportResponse reports the current status of an export |
Module Contents
- viam.gen.app.dataset.v1.dataset_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class viam.gen.app.dataset.v1.dataset_pb2.DatasetType
Bases:
_DatasetTypeDatasetType describes the kind of membership a dataset stores. buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
- viam.gen.app.dataset.v1.dataset_pb2.DATASET_TYPE_BINARY_DATA: DatasetType
DATASET_TYPE_BINARY_DATA is a dataset whose members are individual binary data objects (frames). This is the default for datasets created without an explicit type, including all pre-existing datasets.
- viam.gen.app.dataset.v1.dataset_pb2.DATASET_TYPE_SEQUENCE_DATA: DatasetType
DATASET_TYPE_SEQUENCE_DATA is a dataset whose members are sequences. Binary-data writes (AddBinaryDataToDatasetByIDs, AddBinaryDataToDatasetByFilter) are rejected against datasets of this type; sequences are added/removed via AddSequencesToDataset / RemoveSequencesFromDataset.
- type viam.gen.app.dataset.v1.dataset_pb2.Global___DatasetType = DatasetType
- class viam.gen.app.dataset.v1.dataset_pb2.SequenceDatasetExportStatus
Bases:
_SequenceDatasetExportStatusSequenceDatasetExportStatus is the lifecycle state of an export job.
- viam.gen.app.dataset.v1.dataset_pb2.SEQUENCE_DATASET_EXPORT_STATUS_UNSPECIFIED: SequenceDatasetExportStatus
- viam.gen.app.dataset.v1.dataset_pb2.SEQUENCE_DATASET_EXPORT_STATUS_RUNNING: SequenceDatasetExportStatus
PENDING — accepted, not yet picked up.
- viam.gen.app.dataset.v1.dataset_pb2.SEQUENCE_DATASET_EXPORT_STATUS_COMPLETED: SequenceDatasetExportStatus
COMPLETED — Parquet file is uploaded; download_url is set.
- viam.gen.app.dataset.v1.dataset_pb2.SEQUENCE_DATASET_EXPORT_STATUS_FAILED: SequenceDatasetExportStatus
FAILED — terminal; error_message describes the cause.
- type viam.gen.app.dataset.v1.dataset_pb2.Global___SequenceDatasetExportStatus = SequenceDatasetExportStatus
- class viam.gen.app.dataset.v1.dataset_pb2.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.gen.app.dataset.v1.dataset_pb2.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
- type viam.gen.app.dataset.v1.dataset_pb2.Global___CreateDatasetRequest = CreateDatasetRequest
- class viam.gen.app.dataset.v1.dataset_pb2.CreateDatasetResponse(*, id: str = ...)
Bases:
google.protobuf.message.MessageCreateDatasetResponse returns the dataset ID of the created dataset.
- id: str
- type viam.gen.app.dataset.v1.dataset_pb2.Global___CreateDatasetResponse = CreateDatasetResponse
- class viam.gen.app.dataset.v1.dataset_pb2.DeleteDatasetRequest(*, id: str = ...)
Bases:
google.protobuf.message.MessageDeleteDatasetRequest deletes the dataset specified by the dataset ID.
- id: str
- type viam.gen.app.dataset.v1.dataset_pb2.Global___DeleteDatasetRequest = DeleteDatasetRequest
- class viam.gen.app.dataset.v1.dataset_pb2.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.
- type viam.gen.app.dataset.v1.dataset_pb2.Global___DeleteDatasetResponse = DeleteDatasetResponse
- class viam.gen.app.dataset.v1.dataset_pb2.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
- type viam.gen.app.dataset.v1.dataset_pb2.Global___RenameDatasetRequest = RenameDatasetRequest
- class viam.gen.app.dataset.v1.dataset_pb2.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.
- type viam.gen.app.dataset.v1.dataset_pb2.Global___RenameDatasetResponse = RenameDatasetResponse
- class viam.gen.app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDRequest(*, organization_id: str = ..., type: Global___DatasetType | None = ...)
Bases:
google.protobuf.message.MessageListDatasetsByOrganizationIDRequest requests all of the datasets for an organization, optionally filtering on DatasetType
- organization_id: str
- type: Global___DatasetType
Optional DataseType to filter on. If unset, will return all types.
- 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
- type viam.gen.app.dataset.v1.dataset_pb2.Global___ListDatasetsByOrganizationIDRequest = ListDatasetsByOrganizationIDRequest
- class viam.gen.app.dataset.v1.dataset_pb2.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]
- type viam.gen.app.dataset.v1.dataset_pb2.Global___ListDatasetsByOrganizationIDResponse = ListDatasetsByOrganizationIDResponse
- class viam.gen.app.dataset.v1.dataset_pb2.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]
- type viam.gen.app.dataset.v1.dataset_pb2.Global___ListDatasetsByIDsRequest = ListDatasetsByIDsRequest
- class viam.gen.app.dataset.v1.dataset_pb2.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]
- type viam.gen.app.dataset.v1.dataset_pb2.Global___ListDatasetsByIDsResponse = ListDatasetsByIDsResponse
- class viam.gen.app.dataset.v1.dataset_pb2.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]
- type viam.gen.app.dataset.v1.dataset_pb2.Global___MergeDatasetsRequest = MergeDatasetsRequest
- class viam.gen.app.dataset.v1.dataset_pb2.MergeDatasetsResponse(*, dataset_id: str = ...)
Bases:
google.protobuf.message.MessageMergeDatasetsResponse returns the dataset ID of the newly created merged dataset.
- dataset_id: str
- type viam.gen.app.dataset.v1.dataset_pb2.Global___MergeDatasetsResponse = MergeDatasetsResponse
- class viam.gen.app.dataset.v1.dataset_pb2.StartSequenceDatasetExportRequest(*, dataset_id: str = ...)
Bases:
google.protobuf.message.MessageStartSequenceDatasetExportRequest specifies the sequence dataset to export.
- dataset_id: str
- type viam.gen.app.dataset.v1.dataset_pb2.Global___StartSequenceDatasetExportRequest = StartSequenceDatasetExportRequest
- class viam.gen.app.dataset.v1.dataset_pb2.StartSequenceDatasetExportResponse(*, job_id: str = ...)
Bases:
google.protobuf.message.MessageStartSequenceDatasetExportResponse returns the job_id to poll with
- job_id: str
- type viam.gen.app.dataset.v1.dataset_pb2.Global___StartSequenceDatasetExportResponse = StartSequenceDatasetExportResponse
- class viam.gen.app.dataset.v1.dataset_pb2.GetSequenceDatasetExportRequest(*, job_id: str = ...)
Bases:
google.protobuf.message.MessageGetSequenceDatasetExportRequest looks up an export job by its job_id.
- job_id: str
- type viam.gen.app.dataset.v1.dataset_pb2.Global___GetSequenceDatasetExportRequest = GetSequenceDatasetExportRequest
- class viam.gen.app.dataset.v1.dataset_pb2.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.
- type viam.gen.app.dataset.v1.dataset_pb2.Global___GetSequenceDatasetExportResponse = GetSequenceDatasetExportResponse