viam.gen.app.dataset.v1.dataset_pb2

@generated by mypy-protobuf. Do not edit manually! isort:skip_file

Attributes

DESCRIPTOR

DATASET_TYPE_BINARY_DATA

DATASET_TYPE_BINARY_DATA is a dataset whose members are individual binary data objects (frames).

DATASET_TYPE_SEQUENCE_DATA

DATASET_TYPE_SEQUENCE_DATA is a dataset whose members are sequences. Binary-data writes

Global___DatasetType

Global___Dataset

Global___CreateDatasetRequest

Global___CreateDatasetResponse

Global___DeleteDatasetRequest

Global___DeleteDatasetResponse

Global___RenameDatasetRequest

Global___RenameDatasetResponse

Global___ListDatasetsByOrganizationIDRequest

Global___ListDatasetsByOrganizationIDResponse

Global___ListDatasetsByIDsRequest

Global___ListDatasetsByIDsResponse

Global___MergeDatasetsRequest

Global___MergeDatasetsResponse

Classes

DatasetType

DatasetType describes the kind of membership a dataset stores.

Dataset

Dataset stores the metadata of a dataset.

CreateDatasetRequest

CreateDatasetRequest defines the name and organization ID of a dataset.

CreateDatasetResponse

CreateDatasetResponse returns the dataset ID of the created dataset.

DeleteDatasetRequest

DeleteDatasetRequest deletes the dataset specified by the dataset ID.

DeleteDatasetResponse

Abstract base class for protocol messages.

RenameDatasetRequest

RenameDatasetRequest applies the new name to the dataset specified by the dataset ID.

RenameDatasetResponse

Abstract base class for protocol messages.

ListDatasetsByOrganizationIDRequest

ListDatasetsByOrganizationIDRequest requests all of the datasets for an organization.

ListDatasetsByOrganizationIDResponse

ListDatasetsByOrganizationIDResponse returns all the dataset metadata for the organization.

ListDatasetsByIDsRequest

ListDatasetsByIDsRequest requests all of the datasets by their dataset IDs.

ListDatasetsByIDsResponse

ListDatasetsByIDsResponse returns all the dataset metadata for the associated dataset IDs.

MergeDatasetsRequest

MergeDatasetsRequest merges multiple datasets specified by their dataset IDs into a new dataset.

MergeDatasetsResponse

MergeDatasetsResponse returns the dataset ID of the newly created merged dataset.

Module Contents

viam.gen.app.dataset.v1.dataset_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
class viam.gen.app.dataset.v1.dataset_pb2.DatasetType

Bases: _DatasetType

DatasetType 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.Dataset(*, id: str = ..., name: str = ..., organization_id: str = ..., time_created: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: Global___DatasetType = ...)

Bases: google.protobuf.message.Message

Dataset 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, ValueError will 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___Dataset = Dataset
class viam.gen.app.dataset.v1.dataset_pb2.CreateDatasetRequest(*, name: str = ..., organization_id: str = ..., type: Global___DatasetType | None = ...)

Bases: google.protobuf.message.Message

CreateDatasetRequest 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, ValueError will 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.Message

CreateDatasetResponse 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.Message

DeleteDatasetRequest 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.Message

Abstract 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.Message

RenameDatasetRequest 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.Message

Abstract 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 = ...)

Bases: google.protobuf.message.Message

ListDatasetsByOrganizationIDRequest requests all of the datasets for an organization.

organization_id: str
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.Message

ListDatasetsByOrganizationIDResponse 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.Message

ListDatasetsByIDsRequest 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.Message

ListDatasetsByIDsResponse 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.Message

MergeDatasetsRequest 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.Message

MergeDatasetsResponse returns the dataset ID of the newly created merged dataset.

dataset_id: str
type viam.gen.app.dataset.v1.dataset_pb2.Global___MergeDatasetsResponse = MergeDatasetsResponse