viam.gen.app.datasync.v1.data_sync_pb2 ====================================== .. py:module:: viam.gen.app.datasync.v1.data_sync_pb2 .. autoapi-nested-parse:: @generated by mypy-protobuf. Do not edit manually! isort:skip_file Attributes ---------- .. autoapisummary:: viam.gen.app.datasync.v1.data_sync_pb2.DESCRIPTOR viam.gen.app.datasync.v1.data_sync_pb2.MIME_TYPE_UNSPECIFIED viam.gen.app.datasync.v1.data_sync_pb2.MIME_TYPE_IMAGE_JPEG viam.gen.app.datasync.v1.data_sync_pb2.MIME_TYPE_IMAGE_PNG viam.gen.app.datasync.v1.data_sync_pb2.MIME_TYPE_APPLICATION_PCD viam.gen.app.datasync.v1.data_sync_pb2.MIME_TYPE_VIDEO_MP4 viam.gen.app.datasync.v1.data_sync_pb2.Global___MimeType viam.gen.app.datasync.v1.data_sync_pb2.DATA_TYPE_UNSPECIFIED viam.gen.app.datasync.v1.data_sync_pb2.DATA_TYPE_BINARY_SENSOR viam.gen.app.datasync.v1.data_sync_pb2.DATA_TYPE_TABULAR_SENSOR viam.gen.app.datasync.v1.data_sync_pb2.DATA_TYPE_FILE viam.gen.app.datasync.v1.data_sync_pb2.Global___DataType viam.gen.app.datasync.v1.data_sync_pb2.Global___DataCaptureUploadRequest viam.gen.app.datasync.v1.data_sync_pb2.Global___DataCaptureUploadResponse viam.gen.app.datasync.v1.data_sync_pb2.Global___FileUploadRequest viam.gen.app.datasync.v1.data_sync_pb2.Global___FileUploadResponse viam.gen.app.datasync.v1.data_sync_pb2.Global___StreamingDataCaptureUploadRequest viam.gen.app.datasync.v1.data_sync_pb2.Global___StreamingDataCaptureUploadResponse viam.gen.app.datasync.v1.data_sync_pb2.Global___SensorMetadata viam.gen.app.datasync.v1.data_sync_pb2.Global___SensorData viam.gen.app.datasync.v1.data_sync_pb2.Global___FileData viam.gen.app.datasync.v1.data_sync_pb2.Global___UploadMetadata viam.gen.app.datasync.v1.data_sync_pb2.Global___CaptureInterval viam.gen.app.datasync.v1.data_sync_pb2.Global___DataCaptureMetadata viam.gen.app.datasync.v1.data_sync_pb2.Global___DataCaptureUploadMetadata Classes ------- .. autoapisummary:: viam.gen.app.datasync.v1.data_sync_pb2.MimeType viam.gen.app.datasync.v1.data_sync_pb2.DataType viam.gen.app.datasync.v1.data_sync_pb2.DataCaptureUploadRequest viam.gen.app.datasync.v1.data_sync_pb2.DataCaptureUploadResponse viam.gen.app.datasync.v1.data_sync_pb2.FileUploadRequest viam.gen.app.datasync.v1.data_sync_pb2.FileUploadResponse viam.gen.app.datasync.v1.data_sync_pb2.StreamingDataCaptureUploadRequest viam.gen.app.datasync.v1.data_sync_pb2.StreamingDataCaptureUploadResponse viam.gen.app.datasync.v1.data_sync_pb2.SensorMetadata viam.gen.app.datasync.v1.data_sync_pb2.SensorData viam.gen.app.datasync.v1.data_sync_pb2.FileData viam.gen.app.datasync.v1.data_sync_pb2.UploadMetadata viam.gen.app.datasync.v1.data_sync_pb2.CaptureInterval viam.gen.app.datasync.v1.data_sync_pb2.DataCaptureMetadata viam.gen.app.datasync.v1.data_sync_pb2.DataCaptureUploadMetadata Module Contents --------------- .. py:data:: DESCRIPTOR :type: google.protobuf.descriptor.FileDescriptor .. py:class:: MimeType Bases: :py:obj:`_MimeType` .. py:data:: MIME_TYPE_UNSPECIFIED :type: MimeType .. py:data:: MIME_TYPE_IMAGE_JPEG :type: MimeType .. py:data:: MIME_TYPE_IMAGE_PNG :type: MimeType .. py:data:: MIME_TYPE_APPLICATION_PCD :type: MimeType .. py:data:: MIME_TYPE_VIDEO_MP4 :type: MimeType .. py:type:: Global___MimeType :canonical: MimeType .. py:class:: DataType Bases: :py:obj:`_DataType` DataType specifies the type of data uploaded. .. py:data:: DATA_TYPE_UNSPECIFIED :type: DataType .. py:data:: DATA_TYPE_BINARY_SENSOR :type: DataType .. py:data:: DATA_TYPE_TABULAR_SENSOR :type: DataType .. py:data:: DATA_TYPE_FILE :type: DataType .. py:type:: Global___DataType :canonical: DataType .. py:class:: DataCaptureUploadRequest(*, metadata: Global___UploadMetadata | None = ..., sensor_contents: collections.abc.Iterable[Global___SensorData] | None = ...) Bases: :py:obj:`google.protobuf.message.Message` DataCaptureUploadRequest requests to upload the contents and metadata for tabular data. .. py:method:: metadata() -> Global___UploadMetadata .. py:method:: sensor_contents() -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___SensorData] .. py:method:: 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:type:: Global___DataCaptureUploadRequest :canonical: DataCaptureUploadRequest .. py:class:: DataCaptureUploadResponse(*, file_id: str = ..., binary_data_id: str = ...) Bases: :py:obj:`google.protobuf.message.Message` DataCaptureUploadResponse returns the file id of the uploaded contents and metadata for tabular data. .. py:attribute:: file_id :type: str .. py:attribute:: binary_data_id :type: str .. py:type:: Global___DataCaptureUploadResponse :canonical: DataCaptureUploadResponse .. py:class:: FileUploadRequest(*, metadata: Global___UploadMetadata | None = ..., file_contents: Global___FileData | None = ...) Bases: :py:obj:`google.protobuf.message.Message` FileUploadRequest requests to upload the contents and metadata for binary (image + file) data. The first packet must be the UploadMetadata associated with the binary data. .. py:method:: metadata() -> Global___UploadMetadata .. py:method:: file_contents() -> Global___FileData .. py:method:: 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:method:: WhichOneof(oneof_group: _WhichOneofArgType_upload_packet) -> _WhichOneofReturnType_upload_packet | None Returns the name of the field that is set inside a oneof group. If no field is set, returns None. :param oneof_group: the name of the oneof group to check. :type oneof_group: str :returns: The name of the group that is set, or None. :rtype: str or None :raises ValueError: no group with the given name exists .. py:type:: Global___FileUploadRequest :canonical: FileUploadRequest .. py:class:: FileUploadResponse(*, file_id: str = ..., binary_data_id: str = ...) Bases: :py:obj:`google.protobuf.message.Message` FileUploadResponse returns the file id of the uploaded contents and metadata for binary (image + file) data. .. py:method:: file_id() -> str .. py:attribute:: binary_data_id :type: str .. py:type:: Global___FileUploadResponse :canonical: FileUploadResponse .. py:class:: StreamingDataCaptureUploadRequest(*, metadata: Global___DataCaptureUploadMetadata | None = ..., data: bytes = ...) Bases: :py:obj:`google.protobuf.message.Message` StreamingDataCaptureUploadRequest requests to upload the contents and metadata for streaming binary (image + file) data. The first packet must be the DataCaptureUploadMetadata associated with the data. .. py:attribute:: data :type: bytes .. py:method:: metadata() -> Global___DataCaptureUploadMetadata .. py:method:: 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:method:: WhichOneof(oneof_group: _WhichOneofArgType_upload_packet) -> _WhichOneofReturnType_upload_packet | None Returns the name of the field that is set inside a oneof group. If no field is set, returns None. :param oneof_group: the name of the oneof group to check. :type oneof_group: str :returns: The name of the group that is set, or None. :rtype: str or None :raises ValueError: no group with the given name exists .. py:type:: Global___StreamingDataCaptureUploadRequest :canonical: StreamingDataCaptureUploadRequest .. py:class:: StreamingDataCaptureUploadResponse(*, file_id: str = ..., binary_data_id: str = ...) Bases: :py:obj:`google.protobuf.message.Message` StreamingDataCaptureUploadResponse returns the file id of the uploaded contents and metadata for streaming binary (image + file) data. .. py:method:: file_id() -> str .. py:attribute:: binary_data_id :type: str .. py:type:: Global___StreamingDataCaptureUploadResponse :canonical: StreamingDataCaptureUploadResponse .. py:class:: SensorMetadata(*, time_requested: google.protobuf.timestamp_pb2.Timestamp | None = ..., time_received: google.protobuf.timestamp_pb2.Timestamp | None = ..., mime_type: Global___MimeType = ..., annotations: app.data.v1.data_pb2.Annotations | None = ...) Bases: :py:obj:`google.protobuf.message.Message` SensorMetadata contains the time the sensor data was requested and was received. .. py:method:: mime_type() -> Global___MimeType .. py:method:: time_requested() -> google.protobuf.timestamp_pb2.Timestamp .. py:method:: time_received() -> google.protobuf.timestamp_pb2.Timestamp .. py:method:: annotations() -> app.data.v1.data_pb2.Annotations .. py:method:: 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:type:: Global___SensorMetadata :canonical: SensorMetadata .. py:class:: SensorData(*, metadata: Global___SensorMetadata | None = ..., struct: google.protobuf.struct_pb2.Struct | None = ..., binary: bytes = ...) Bases: :py:obj:`google.protobuf.message.Message` SensorData contains the contents and metadata for tabular data. .. py:attribute:: binary :type: bytes .. py:method:: metadata() -> Global___SensorMetadata .. py:method:: struct() -> google.protobuf.struct_pb2.Struct .. py:method:: 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:method:: WhichOneof(oneof_group: _WhichOneofArgType_data) -> _WhichOneofReturnType_data | None Returns the name of the field that is set inside a oneof group. If no field is set, returns None. :param oneof_group: the name of the oneof group to check. :type oneof_group: str :returns: The name of the group that is set, or None. :rtype: str or None :raises ValueError: no group with the given name exists .. py:type:: Global___SensorData :canonical: SensorData .. py:class:: FileData(*, data: bytes = ...) Bases: :py:obj:`google.protobuf.message.Message` FileData contains the contents of binary (image + file) data. .. py:attribute:: data :type: bytes .. py:type:: Global___FileData :canonical: FileData .. py:class:: UploadMetadata(*, part_id: str = ..., component_type: str = ..., component_name: str = ..., method_name: str = ..., type: Global___DataType = ..., method_parameters: collections.abc.Mapping[str, google.protobuf.any_pb2.Any] | None = ..., file_name: str = ..., file_extension: str = ..., file_create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., file_modify_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., tags: collections.abc.Iterable[str] | None = ..., dataset_ids: collections.abc.Iterable[str] | None = ..., mime_type: str = ...) Bases: :py:obj:`google.protobuf.message.Message` UploadMetadata contains the metadata for binary (image + file) data. .. py:class:: MethodParametersEntry(*, key: str = ..., value: google.protobuf.any_pb2.Any | None = ...) Bases: :py:obj:`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. .. py:attribute:: key :type: str .. py:method:: value() -> google.protobuf.any_pb2.Any .. py:method:: 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:attribute:: part_id :type: str .. py:attribute:: component_type :type: str .. py:attribute:: component_name :type: str .. py:attribute:: method_name :type: str .. py:attribute:: type :type: Global___DataType .. py:attribute:: file_name :type: str .. py:attribute:: file_extension :type: str .. py:attribute:: mime_type :type: str .. py:method:: method_parameters() -> google.protobuf.internal.containers.MessageMap[str, google.protobuf.any_pb2.Any] .. py:method:: file_create_time() -> google.protobuf.timestamp_pb2.Timestamp .. py:method:: file_modify_time() -> google.protobuf.timestamp_pb2.Timestamp .. py:method:: tags() -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[str] .. py:method:: dataset_ids() -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[str] .. py:method:: 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:type:: Global___UploadMetadata :canonical: UploadMetadata .. py:class:: CaptureInterval(*, start: google.protobuf.timestamp_pb2.Timestamp | None = ..., end: google.protobuf.timestamp_pb2.Timestamp | None = ...) Bases: :py:obj:`google.protobuf.message.Message` CaptureInterval specifies the start and end times of the data capture. .. py:method:: start() -> google.protobuf.timestamp_pb2.Timestamp .. py:method:: end() -> google.protobuf.timestamp_pb2.Timestamp .. py:method:: 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:type:: Global___CaptureInterval :canonical: CaptureInterval .. py:class:: DataCaptureMetadata(*, component_type: str = ..., component_name: str = ..., method_name: str = ..., type: Global___DataType = ..., method_parameters: collections.abc.Mapping[str, google.protobuf.any_pb2.Any] | None = ..., file_extension: str = ..., tags: collections.abc.Iterable[str] | None = ..., mime_type: str = ...) Bases: :py:obj:`google.protobuf.message.Message` DataCaptureMetadata contains the metadata for data captured by collectors. .. py:class:: MethodParametersEntry(*, key: str = ..., value: google.protobuf.any_pb2.Any | None = ...) Bases: :py:obj:`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. .. py:attribute:: key :type: str .. py:method:: value() -> google.protobuf.any_pb2.Any .. py:method:: 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:attribute:: component_type :type: str .. py:attribute:: component_name :type: str .. py:attribute:: method_name :type: str .. py:attribute:: type :type: Global___DataType .. py:attribute:: file_extension :type: str .. py:attribute:: mime_type :type: str .. py:method:: method_parameters() -> google.protobuf.internal.containers.MessageMap[str, google.protobuf.any_pb2.Any] .. py:method:: tags() -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[str] .. py:type:: Global___DataCaptureMetadata :canonical: DataCaptureMetadata .. py:class:: DataCaptureUploadMetadata(*, upload_metadata: Global___UploadMetadata | None = ..., sensor_metadata: Global___SensorMetadata | None = ...) Bases: :py:obj:`google.protobuf.message.Message` DataCaptureUploadMetadata contains the metadata for streaming binary (image + file) data. .. py:method:: upload_metadata() -> Global___UploadMetadata .. py:method:: sensor_metadata() -> Global___SensorMetadata .. py:method:: 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:type:: Global___DataCaptureUploadMetadata :canonical: DataCaptureUploadMetadata