viam-sdk 0.50.0__py3-none-linux_armv6l.whl → 0.52.0__py3-none-linux_armv6l.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of viam-sdk might be problematic. Click here for more details.
- viam/app/data_client.py +38 -6
- viam/app/viam_client.py +1 -1
- viam/gen/app/datapipelines/v1/data_pipelines_grpc.py +4 -4
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.py +27 -27
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.pyi +8 -27
- viam/gen/app/datasync/v1/data_sync_pb2.py +18 -18
- viam/gen/app/datasync/v1/data_sync_pb2.pyi +7 -2
- viam/gen/app/v1/app_pb2.py +77 -75
- viam/gen/app/v1/app_pb2.pyi +21 -2
- viam/gen/app/v1/billing_pb2.py +6 -6
- viam/gen/app/v1/billing_pb2.pyi +2 -0
- viam/gen/app/v1/robot_pb2.py +34 -34
- viam/gen/app/v1/robot_pb2.pyi +5 -2
- viam/gen/component/camera/v1/camera_pb2.py +30 -30
- viam/gen/component/camera/v1/camera_pb2.pyi +10 -2
- viam/proto/app/__init__.py +2 -0
- viam/proto/app/datapipelines/__init__.py +4 -4
- viam/robot/client.py +28 -0
- viam/version_metadata.py +2 -2
- {viam_sdk-0.50.0.dist-info → viam_sdk-0.52.0.dist-info}/METADATA +1 -1
- {viam_sdk-0.50.0.dist-info → viam_sdk-0.52.0.dist-info}/RECORD +23 -23
- {viam_sdk-0.50.0.dist-info → viam_sdk-0.52.0.dist-info}/WHEEL +0 -0
- {viam_sdk-0.50.0.dist-info → viam_sdk-0.52.0.dist-info}/licenses/LICENSE +0 -0
viam/app/data_client.py
CHANGED
|
@@ -72,6 +72,7 @@ from viam.proto.app.datapipelines import (
|
|
|
72
72
|
ListDataPipelineRunsResponse,
|
|
73
73
|
ListDataPipelinesRequest,
|
|
74
74
|
ListDataPipelinesResponse,
|
|
75
|
+
RenameDataPipelineRequest,
|
|
75
76
|
)
|
|
76
77
|
from viam.proto.app.datapipelines import (
|
|
77
78
|
DataPipeline as ProtoDataPipeline,
|
|
@@ -588,7 +589,7 @@ class DataClient:
|
|
|
588
589
|
resource_name=resource_name,
|
|
589
590
|
resource_subtype=resource_api,
|
|
590
591
|
method_name=method_name,
|
|
591
|
-
additional_parameters=dict_to_struct(additional_params),
|
|
592
|
+
additional_parameters=dict_to_struct(additional_params) if additional_params is not None else None,
|
|
592
593
|
)
|
|
593
594
|
response: GetLatestTabularDataResponse = await self._data_client.GetLatestTabularData(request, metadata=self._metadata)
|
|
594
595
|
if not response.payload:
|
|
@@ -644,7 +645,7 @@ class DataClient:
|
|
|
644
645
|
resource_subtype=resource_api,
|
|
645
646
|
method_name=method_name,
|
|
646
647
|
interval=interval,
|
|
647
|
-
additional_parameters=dict_to_struct(additional_params),
|
|
648
|
+
additional_parameters=dict_to_struct(additional_params) if additional_params is not None else None,
|
|
648
649
|
)
|
|
649
650
|
response: List[ExportTabularDataResponse] = await self._data_client.ExportTabularData(request, metadata=self._metadata)
|
|
650
651
|
|
|
@@ -1484,6 +1485,7 @@ class DataClient:
|
|
|
1484
1485
|
file_extension: str,
|
|
1485
1486
|
method_parameters: Optional[Mapping[str, Any]] = None,
|
|
1486
1487
|
tags: Optional[List[str]] = None,
|
|
1488
|
+
dataset_ids: Optional[List[str]] = None,
|
|
1487
1489
|
data_request_times: Optional[Tuple[datetime, datetime]] = None,
|
|
1488
1490
|
) -> str:
|
|
1489
1491
|
"""Upload binary sensor data.
|
|
@@ -1505,7 +1507,8 @@ class DataClient:
|
|
|
1505
1507
|
tags=["tag_1", "tag_2"],
|
|
1506
1508
|
data_request_times=[time_requested, time_received],
|
|
1507
1509
|
file_extension=".jpg",
|
|
1508
|
-
binary_data=b"Encoded image bytes"
|
|
1510
|
+
binary_data=b"Encoded image bytes",
|
|
1511
|
+
dataset_ids=["dataset_1", "dataset_2"]
|
|
1509
1512
|
)
|
|
1510
1513
|
|
|
1511
1514
|
Args:
|
|
@@ -1519,6 +1522,7 @@ class DataClient:
|
|
|
1519
1522
|
or ``.png`` extension will appear in the **Images** tab.
|
|
1520
1523
|
method_parameters (Optional[Mapping[str, Any]]): Optional dictionary of method parameters. No longer in active use.
|
|
1521
1524
|
tags (Optional[List[str]]): Optional list of tags to allow for tag-based data filtering when retrieving data.
|
|
1525
|
+
dataset_ids (Optional[List[str]]): Optional list of datasets to add the data to.
|
|
1522
1526
|
data_request_times (Optional[Tuple[datetime.datetime, datetime.datetime]]): Optional tuple containing datetime objects
|
|
1523
1527
|
denoting the times this data was requested ``[0]`` by the robot and received ``[1]`` from the appropriate sensor.
|
|
1524
1528
|
|
|
@@ -1550,6 +1554,7 @@ class DataClient:
|
|
|
1550
1554
|
type=DataType.DATA_TYPE_BINARY_SENSOR,
|
|
1551
1555
|
method_parameters=method_parameters,
|
|
1552
1556
|
tags=tags,
|
|
1557
|
+
dataset_ids=dataset_ids,
|
|
1553
1558
|
)
|
|
1554
1559
|
if file_extension:
|
|
1555
1560
|
metadata.file_extension = file_extension if file_extension[0] == "." else f".{file_extension}"
|
|
@@ -1667,6 +1672,7 @@ class DataClient:
|
|
|
1667
1672
|
method_parameters: Optional[Mapping[str, Any]] = None,
|
|
1668
1673
|
data_request_times: Optional[Tuple[datetime, datetime]] = None,
|
|
1669
1674
|
tags: Optional[List[str]] = None,
|
|
1675
|
+
dataset_ids: Optional[List[str]] = None,
|
|
1670
1676
|
) -> str:
|
|
1671
1677
|
"""Uploads the metadata and contents of streaming binary data.
|
|
1672
1678
|
|
|
@@ -1683,7 +1689,8 @@ class DataClient:
|
|
|
1683
1689
|
component_name='left_motor',
|
|
1684
1690
|
method_name='IsPowered',
|
|
1685
1691
|
data_request_times=[time_requested, time_received],
|
|
1686
|
-
tags=["tag_1", "tag_2"]
|
|
1692
|
+
tags=["tag_1", "tag_2"],
|
|
1693
|
+
dataset_ids=["dataset_1", "dataset_2"]
|
|
1687
1694
|
)
|
|
1688
1695
|
|
|
1689
1696
|
Args:
|
|
@@ -1697,6 +1704,7 @@ class DataClient:
|
|
|
1697
1704
|
data_request_times (Optional[Tuple[datetime.datetime, datetime.datetime]]): Optional tuple containing datetime objects
|
|
1698
1705
|
denoting the times this data was requested ``[0]`` by the robot and received ``[1]`` from the appropriate sensor.
|
|
1699
1706
|
tags (Optional[List[str]]): Optional list of tags to allow for tag-based filtering when retrieving data.
|
|
1707
|
+
dataset_ids (Optional[List[str]]): Optional list of datasets to add the data to.
|
|
1700
1708
|
|
|
1701
1709
|
Raises:
|
|
1702
1710
|
GRPCError: If an invalid part ID is passed.
|
|
@@ -1716,6 +1724,7 @@ class DataClient:
|
|
|
1716
1724
|
type=DataType.DATA_TYPE_BINARY_SENSOR,
|
|
1717
1725
|
file_extension=file_ext if file_ext[0] == "." else f".{file_ext}",
|
|
1718
1726
|
tags=tags,
|
|
1727
|
+
dataset_ids=dataset_ids,
|
|
1719
1728
|
)
|
|
1720
1729
|
sensor_metadata = SensorMetadata(
|
|
1721
1730
|
time_requested=datetime_to_timestamp(data_request_times[0]) if data_request_times else None,
|
|
@@ -1744,6 +1753,7 @@ class DataClient:
|
|
|
1744
1753
|
method_parameters: Optional[Mapping[str, Any]] = None,
|
|
1745
1754
|
file_extension: Optional[str] = None,
|
|
1746
1755
|
tags: Optional[List[str]] = None,
|
|
1756
|
+
dataset_ids: Optional[List[str]] = None,
|
|
1747
1757
|
) -> str:
|
|
1748
1758
|
"""Upload arbitrary file data.
|
|
1749
1759
|
|
|
@@ -1757,7 +1767,8 @@ class DataClient:
|
|
|
1757
1767
|
part_id="INSERT YOUR PART ID",
|
|
1758
1768
|
tags=["tag_1", "tag_2"],
|
|
1759
1769
|
file_name="your-file",
|
|
1760
|
-
file_extension=".txt"
|
|
1770
|
+
file_extension=".txt",
|
|
1771
|
+
dataset_ids=["dataset_1", "dataset_2"]
|
|
1761
1772
|
)
|
|
1762
1773
|
|
|
1763
1774
|
Args:
|
|
@@ -1772,6 +1783,7 @@ class DataClient:
|
|
|
1772
1783
|
file_extension (Optional[str]): Optional file extension. The empty string ``""`` will be assigned as the file extension if one
|
|
1773
1784
|
isn't provided. Files with a ``.jpeg``, ``.jpg``, or ``.png`` extension will be saved to the **Images** tab.
|
|
1774
1785
|
tags (Optional[List[str]]): Optional list of tags to allow for tag-based filtering when retrieving data.
|
|
1786
|
+
dataset_ids (Optional[List[str]]): Optional list of datasets to add the data to.
|
|
1775
1787
|
|
|
1776
1788
|
Raises:
|
|
1777
1789
|
GRPCError: If an invalid part ID is passed.
|
|
@@ -1791,6 +1803,7 @@ class DataClient:
|
|
|
1791
1803
|
method_parameters=method_parameters,
|
|
1792
1804
|
file_extension=file_extension if file_extension else "",
|
|
1793
1805
|
tags=tags,
|
|
1806
|
+
dataset_ids=dataset_ids,
|
|
1794
1807
|
)
|
|
1795
1808
|
response: FileUploadResponse = await self._file_upload(metadata=metadata, file_contents=FileData(data=data))
|
|
1796
1809
|
return response.binary_data_id
|
|
@@ -1804,6 +1817,7 @@ class DataClient:
|
|
|
1804
1817
|
method_name: Optional[str] = None,
|
|
1805
1818
|
method_parameters: Optional[Mapping[str, Any]] = None,
|
|
1806
1819
|
tags: Optional[List[str]] = None,
|
|
1820
|
+
dataset_ids: Optional[List[str]] = None,
|
|
1807
1821
|
) -> str:
|
|
1808
1822
|
"""Upload arbitrary file data.
|
|
1809
1823
|
|
|
@@ -1815,6 +1829,7 @@ class DataClient:
|
|
|
1815
1829
|
file_id = await data_client.file_upload_from_path(
|
|
1816
1830
|
part_id="INSERT YOUR PART ID",
|
|
1817
1831
|
tags=["tag_1", "tag_2"],
|
|
1832
|
+
dataset_ids=["dataset_1", "dataset_2"],
|
|
1818
1833
|
filepath="/Users/<your-username>/<your-directory>/<your-file.txt>"
|
|
1819
1834
|
)
|
|
1820
1835
|
|
|
@@ -1826,7 +1841,7 @@ class DataClient:
|
|
|
1826
1841
|
method_name (Optional[str]): Optional name of the method associated with the file.
|
|
1827
1842
|
method_parameters (Optional[str]): Optional dictionary of the method parameters. No longer in active use.
|
|
1828
1843
|
tags (Optional[List[str]]): Optional list of tags to allow for tag-based filtering when retrieving data.
|
|
1829
|
-
|
|
1844
|
+
dataset_ids (Optional[List[str]]): Optional list of datasets to add the data to.
|
|
1830
1845
|
|
|
1831
1846
|
Raises:
|
|
1832
1847
|
GRPCError: If an invalid part ID is passed.
|
|
@@ -1854,6 +1869,7 @@ class DataClient:
|
|
|
1854
1869
|
method_parameters=method_parameters,
|
|
1855
1870
|
file_extension=file_extension if file_extension else "",
|
|
1856
1871
|
tags=tags,
|
|
1872
|
+
dataset_ids=dataset_ids,
|
|
1857
1873
|
)
|
|
1858
1874
|
response: FileUploadResponse = await self._file_upload(metadata=metadata, file_contents=FileData(data=data if data else bytes()))
|
|
1859
1875
|
return response.binary_data_id
|
|
@@ -1924,6 +1940,7 @@ class DataClient:
|
|
|
1924
1940
|
name="<YOUR-PIPELINE-NAME>",
|
|
1925
1941
|
mql_binary=[<YOUR-MQL-PIPELINE-AGGREGATION>],
|
|
1926
1942
|
schedule="<YOUR-SCHEDULE>",
|
|
1943
|
+
enable_backfill=False,
|
|
1927
1944
|
data_source_type=TabularDataSourceType.TABULAR_DATA_SOURCE_TYPE_STANDARD,
|
|
1928
1945
|
)
|
|
1929
1946
|
|
|
@@ -1953,6 +1970,21 @@ class DataClient:
|
|
|
1953
1970
|
response: CreateDataPipelineResponse = await self._data_pipelines_client.CreateDataPipeline(request, metadata=self._metadata)
|
|
1954
1971
|
return response.id
|
|
1955
1972
|
|
|
1973
|
+
async def rename_data_pipeline(self, id: str, name: str) -> None:
|
|
1974
|
+
"""Rename a data pipeline by its ID.
|
|
1975
|
+
::
|
|
1976
|
+
|
|
1977
|
+
await data_client.rename_data_pipeline(id="<YOUR-DATA-PIPELINE-ID>", name="<YOUR-NEW-NAME>")
|
|
1978
|
+
|
|
1979
|
+
Args:
|
|
1980
|
+
id (str): The ID of the data pipeline to rename.
|
|
1981
|
+
name (str): The new name of the data pipeline.
|
|
1982
|
+
"""
|
|
1983
|
+
if not id or not name:
|
|
1984
|
+
raise ValueError("id and name are required")
|
|
1985
|
+
request = RenameDataPipelineRequest(id=id, name=name)
|
|
1986
|
+
await self._data_pipelines_client.RenameDataPipeline(request, metadata=self._metadata)
|
|
1987
|
+
|
|
1956
1988
|
async def delete_data_pipeline(self, id: str) -> None:
|
|
1957
1989
|
"""Delete a data pipeline by its ID.
|
|
1958
1990
|
|
viam/app/viam_client.py
CHANGED
|
@@ -206,7 +206,7 @@ class ViamClient:
|
|
|
206
206
|
"""
|
|
207
207
|
return ProvisioningClient(self._channel, self._metadata)
|
|
208
208
|
|
|
209
|
-
def close(self):
|
|
209
|
+
def close(self) -> None:
|
|
210
210
|
"""Close opened channels used for the various service stubs initialized."""
|
|
211
211
|
if self._closed:
|
|
212
212
|
LOGGER.debug("ViamClient is already closed.")
|
|
@@ -23,7 +23,7 @@ class DataPipelinesServiceBase(abc.ABC):
|
|
|
23
23
|
pass
|
|
24
24
|
|
|
25
25
|
@abc.abstractmethod
|
|
26
|
-
async def
|
|
26
|
+
async def RenameDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineResponse]') -> None:
|
|
27
27
|
pass
|
|
28
28
|
|
|
29
29
|
@abc.abstractmethod
|
|
@@ -43,7 +43,7 @@ class DataPipelinesServiceBase(abc.ABC):
|
|
|
43
43
|
pass
|
|
44
44
|
|
|
45
45
|
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
46
|
-
return {'/viam.app.datapipelines.v1.DataPipelinesService/GetDataPipeline': grpclib.const.Handler(self.GetDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/ListDataPipelines': grpclib.const.Handler(self.ListDataPipelines, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesResponse), '/viam.app.datapipelines.v1.DataPipelinesService/CreateDataPipeline': grpclib.const.Handler(self.CreateDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/
|
|
46
|
+
return {'/viam.app.datapipelines.v1.DataPipelinesService/GetDataPipeline': grpclib.const.Handler(self.GetDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/ListDataPipelines': grpclib.const.Handler(self.ListDataPipelines, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesResponse), '/viam.app.datapipelines.v1.DataPipelinesService/CreateDataPipeline': grpclib.const.Handler(self.CreateDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/RenameDataPipeline': grpclib.const.Handler(self.RenameDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/DeleteDataPipeline': grpclib.const.Handler(self.DeleteDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/EnableDataPipeline': grpclib.const.Handler(self.EnableDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/DisableDataPipeline': grpclib.const.Handler(self.DisableDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/ListDataPipelineRuns': grpclib.const.Handler(self.ListDataPipelineRuns, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelineRunsRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelineRunsResponse)}
|
|
47
47
|
|
|
48
48
|
class UnimplementedDataPipelinesServiceBase(DataPipelinesServiceBase):
|
|
49
49
|
|
|
@@ -56,7 +56,7 @@ class UnimplementedDataPipelinesServiceBase(DataPipelinesServiceBase):
|
|
|
56
56
|
async def CreateDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineResponse]') -> None:
|
|
57
57
|
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
58
58
|
|
|
59
|
-
async def
|
|
59
|
+
async def RenameDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineResponse]') -> None:
|
|
60
60
|
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
61
61
|
|
|
62
62
|
async def DeleteDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineResponse]') -> None:
|
|
@@ -77,7 +77,7 @@ class DataPipelinesServiceStub:
|
|
|
77
77
|
self.GetDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/GetDataPipeline', app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineResponse)
|
|
78
78
|
self.ListDataPipelines = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/ListDataPipelines', app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesResponse)
|
|
79
79
|
self.CreateDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/CreateDataPipeline', app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineResponse)
|
|
80
|
-
self.
|
|
80
|
+
self.RenameDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/RenameDataPipeline', app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineResponse)
|
|
81
81
|
self.DeleteDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/DeleteDataPipeline', app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineResponse)
|
|
82
82
|
self.EnableDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/EnableDataPipeline', app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineResponse)
|
|
83
83
|
self.DisableDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/DisableDataPipeline', app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineResponse)
|
|
@@ -8,15 +8,15 @@ _runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC,
|
|
|
8
8
|
_sym_db = _symbol_database.Default()
|
|
9
9
|
from ....app.data.v1 import data_pb2 as app_dot_data_dot_v1_dot_data__pb2
|
|
10
10
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
11
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)app/datapipelines/v1/data_pipelines.proto\x12\x19viam.app.datapipelines.v1\x1a\x16app/data/v1/data.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x93\x03\n\x0cDataPipeline\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x1d\n\nmql_binary\x18\x04 \x03(\x0cR\tmqlBinary\x12\x1a\n\x08schedule\x18\x05 \x01(\tR\x08schedule\x12\x18\n\x07enabled\x18\x06 \x01(\x08R\x07enabled\x129\n\ncreated_on\x18\x07 \x01(\x0b2\x1a.google.protobuf.TimestampR\tcreatedOn\x129\n\nupdated_at\x18\x08 \x01(\x0b2\x1a.google.protobuf.TimestampR\tupdatedAt\x12V\n\x10data_source_type\x18\t \x01(\x0e2\'.viam.app.data.v1.TabularDataSourceTypeH\x00R\x0edataSourceType\x88\x01\x01B\x13\n\x11_data_source_type"(\n\x16GetDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"g\n\x17GetDataPipelineResponse\x12L\n\rdata_pipeline\x18\x01 \x01(\x0b2\'.viam.app.datapipelines.v1.DataPipelineR\x0cdataPipeline"C\n\x18ListDataPipelinesRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId"k\n\x19ListDataPipelinesResponse\x12N\n\x0edata_pipelines\x18\x01 \x03(\x0b2\'.viam.app.datapipelines.v1.DataPipelineR\rdataPipelines"\xc2\x02\n\x19CreateDataPipelineRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x1d\n\nmql_binary\x18\x03 \x03(\x0cR\tmqlBinary\x12\x1a\n\x08schedule\x18\x04 \x01(\tR\x08schedule\x12,\n\x0fenable_backfill\x18\x05 \x01(\x08H\x00R\x0eenableBackfill\x88\x01\x01\x12V\n\x10data_source_type\x18\x06 \x01(\x0e2\'.viam.app.data.v1.TabularDataSourceTypeH\x01R\x0edataSourceType\x88\x01\x01B\x12\n\x10_enable_backfillB\x13\n\x11_data_source_type",\n\x1aCreateDataPipelineResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"
|
|
11
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)app/datapipelines/v1/data_pipelines.proto\x12\x19viam.app.datapipelines.v1\x1a\x16app/data/v1/data.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x93\x03\n\x0cDataPipeline\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x1d\n\nmql_binary\x18\x04 \x03(\x0cR\tmqlBinary\x12\x1a\n\x08schedule\x18\x05 \x01(\tR\x08schedule\x12\x18\n\x07enabled\x18\x06 \x01(\x08R\x07enabled\x129\n\ncreated_on\x18\x07 \x01(\x0b2\x1a.google.protobuf.TimestampR\tcreatedOn\x129\n\nupdated_at\x18\x08 \x01(\x0b2\x1a.google.protobuf.TimestampR\tupdatedAt\x12V\n\x10data_source_type\x18\t \x01(\x0e2\'.viam.app.data.v1.TabularDataSourceTypeH\x00R\x0edataSourceType\x88\x01\x01B\x13\n\x11_data_source_type"(\n\x16GetDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"g\n\x17GetDataPipelineResponse\x12L\n\rdata_pipeline\x18\x01 \x01(\x0b2\'.viam.app.datapipelines.v1.DataPipelineR\x0cdataPipeline"C\n\x18ListDataPipelinesRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId"k\n\x19ListDataPipelinesResponse\x12N\n\x0edata_pipelines\x18\x01 \x03(\x0b2\'.viam.app.datapipelines.v1.DataPipelineR\rdataPipelines"\xc2\x02\n\x19CreateDataPipelineRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x1d\n\nmql_binary\x18\x03 \x03(\x0cR\tmqlBinary\x12\x1a\n\x08schedule\x18\x04 \x01(\tR\x08schedule\x12,\n\x0fenable_backfill\x18\x05 \x01(\x08H\x00R\x0eenableBackfill\x88\x01\x01\x12V\n\x10data_source_type\x18\x06 \x01(\x0e2\'.viam.app.data.v1.TabularDataSourceTypeH\x01R\x0edataSourceType\x88\x01\x01B\x12\n\x10_enable_backfillB\x13\n\x11_data_source_type",\n\x1aCreateDataPipelineResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"?\n\x19RenameDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name"\x1c\n\x1aRenameDataPipelineResponse"+\n\x19DeleteDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1c\n\x1aDeleteDataPipelineResponse"+\n\x19EnableDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1c\n\x1aEnableDataPipelineResponse",\n\x1aDisableDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1d\n\x1bDisableDataPipelineResponse"i\n\x1bListDataPipelineRunsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tpage_size\x18\x02 \x01(\rR\x08pageSize\x12\x1d\n\npage_token\x18\x03 \x01(\tR\tpageToken"\xa7\x01\n\x1cListDataPipelineRunsResponse\x12\x1f\n\x0bpipeline_id\x18\x01 \x01(\tR\npipelineId\x12>\n\x04runs\x18\x02 \x03(\x0b2*.viam.app.datapipelines.v1.DataPipelineRunR\x04runs\x12&\n\x0fnext_page_token\x18\x03 \x01(\tR\rnextPageToken"\xe1\x02\n\x0fDataPipelineRun\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x129\n\nstart_time\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTime\x125\n\x08end_time\x18\x03 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\x12B\n\x0fdata_start_time\x18\x04 \x01(\x0b2\x1a.google.protobuf.TimestampR\rdataStartTime\x12>\n\rdata_end_time\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0bdataEndTime\x12H\n\x06status\x18\x06 \x01(\x0e20.viam.app.datapipelines.v1.DataPipelineRunStatusR\x06status*\xdc\x01\n\x15DataPipelineRunStatus\x12(\n$DATA_PIPELINE_RUN_STATUS_UNSPECIFIED\x10\x00\x12&\n"DATA_PIPELINE_RUN_STATUS_SCHEDULED\x10\x01\x12$\n DATA_PIPELINE_RUN_STATUS_STARTED\x10\x02\x12&\n"DATA_PIPELINE_RUN_STATUS_COMPLETED\x10\x03\x12#\n\x1fDATA_PIPELINE_RUN_STATUS_FAILED\x10\x042\xb1\x08\n\x14DataPipelinesService\x12x\n\x0fGetDataPipeline\x121.viam.app.datapipelines.v1.GetDataPipelineRequest\x1a2.viam.app.datapipelines.v1.GetDataPipelineResponse\x12~\n\x11ListDataPipelines\x123.viam.app.datapipelines.v1.ListDataPipelinesRequest\x1a4.viam.app.datapipelines.v1.ListDataPipelinesResponse\x12\x81\x01\n\x12CreateDataPipeline\x124.viam.app.datapipelines.v1.CreateDataPipelineRequest\x1a5.viam.app.datapipelines.v1.CreateDataPipelineResponse\x12\x81\x01\n\x12RenameDataPipeline\x124.viam.app.datapipelines.v1.RenameDataPipelineRequest\x1a5.viam.app.datapipelines.v1.RenameDataPipelineResponse\x12\x81\x01\n\x12DeleteDataPipeline\x124.viam.app.datapipelines.v1.DeleteDataPipelineRequest\x1a5.viam.app.datapipelines.v1.DeleteDataPipelineResponse\x12\x81\x01\n\x12EnableDataPipeline\x124.viam.app.datapipelines.v1.EnableDataPipelineRequest\x1a5.viam.app.datapipelines.v1.EnableDataPipelineResponse\x12\x84\x01\n\x13DisableDataPipeline\x125.viam.app.datapipelines.v1.DisableDataPipelineRequest\x1a6.viam.app.datapipelines.v1.DisableDataPipelineResponse\x12\x87\x01\n\x14ListDataPipelineRuns\x126.viam.app.datapipelines.v1.ListDataPipelineRunsRequest\x1a7.viam.app.datapipelines.v1.ListDataPipelineRunsResponseB&Z$go.viam.com/api/app/datapipelines/v1b\x06proto3')
|
|
12
12
|
_globals = globals()
|
|
13
13
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
14
14
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.datapipelines.v1.data_pipelines_pb2', _globals)
|
|
15
15
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
16
16
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
17
17
|
_globals['DESCRIPTOR']._serialized_options = b'Z$go.viam.com/api/app/datapipelines/v1'
|
|
18
|
-
_globals['_DATAPIPELINERUNSTATUS']._serialized_start =
|
|
19
|
-
_globals['_DATAPIPELINERUNSTATUS']._serialized_end =
|
|
18
|
+
_globals['_DATAPIPELINERUNSTATUS']._serialized_start = 2187
|
|
19
|
+
_globals['_DATAPIPELINERUNSTATUS']._serialized_end = 2407
|
|
20
20
|
_globals['_DATAPIPELINE']._serialized_start = 130
|
|
21
21
|
_globals['_DATAPIPELINE']._serialized_end = 533
|
|
22
22
|
_globals['_GETDATAPIPELINEREQUEST']._serialized_start = 535
|
|
@@ -31,27 +31,27 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
31
31
|
_globals['_CREATEDATAPIPELINEREQUEST']._serialized_end = 1183
|
|
32
32
|
_globals['_CREATEDATAPIPELINERESPONSE']._serialized_start = 1185
|
|
33
33
|
_globals['_CREATEDATAPIPELINERESPONSE']._serialized_end = 1229
|
|
34
|
-
_globals['
|
|
35
|
-
_globals['
|
|
36
|
-
_globals['
|
|
37
|
-
_globals['
|
|
38
|
-
_globals['_DELETEDATAPIPELINEREQUEST']._serialized_start =
|
|
39
|
-
_globals['_DELETEDATAPIPELINEREQUEST']._serialized_end =
|
|
40
|
-
_globals['_DELETEDATAPIPELINERESPONSE']._serialized_start =
|
|
41
|
-
_globals['_DELETEDATAPIPELINERESPONSE']._serialized_end =
|
|
42
|
-
_globals['_ENABLEDATAPIPELINEREQUEST']._serialized_start =
|
|
43
|
-
_globals['_ENABLEDATAPIPELINEREQUEST']._serialized_end =
|
|
44
|
-
_globals['_ENABLEDATAPIPELINERESPONSE']._serialized_start =
|
|
45
|
-
_globals['_ENABLEDATAPIPELINERESPONSE']._serialized_end =
|
|
46
|
-
_globals['_DISABLEDATAPIPELINEREQUEST']._serialized_start =
|
|
47
|
-
_globals['_DISABLEDATAPIPELINEREQUEST']._serialized_end =
|
|
48
|
-
_globals['_DISABLEDATAPIPELINERESPONSE']._serialized_start =
|
|
49
|
-
_globals['_DISABLEDATAPIPELINERESPONSE']._serialized_end =
|
|
50
|
-
_globals['_LISTDATAPIPELINERUNSREQUEST']._serialized_start =
|
|
51
|
-
_globals['_LISTDATAPIPELINERUNSREQUEST']._serialized_end =
|
|
52
|
-
_globals['_LISTDATAPIPELINERUNSRESPONSE']._serialized_start =
|
|
53
|
-
_globals['_LISTDATAPIPELINERUNSRESPONSE']._serialized_end =
|
|
54
|
-
_globals['_DATAPIPELINERUN']._serialized_start =
|
|
55
|
-
_globals['_DATAPIPELINERUN']._serialized_end =
|
|
56
|
-
_globals['_DATAPIPELINESSERVICE']._serialized_start =
|
|
57
|
-
_globals['_DATAPIPELINESSERVICE']._serialized_end =
|
|
34
|
+
_globals['_RENAMEDATAPIPELINEREQUEST']._serialized_start = 1231
|
|
35
|
+
_globals['_RENAMEDATAPIPELINEREQUEST']._serialized_end = 1294
|
|
36
|
+
_globals['_RENAMEDATAPIPELINERESPONSE']._serialized_start = 1296
|
|
37
|
+
_globals['_RENAMEDATAPIPELINERESPONSE']._serialized_end = 1324
|
|
38
|
+
_globals['_DELETEDATAPIPELINEREQUEST']._serialized_start = 1326
|
|
39
|
+
_globals['_DELETEDATAPIPELINEREQUEST']._serialized_end = 1369
|
|
40
|
+
_globals['_DELETEDATAPIPELINERESPONSE']._serialized_start = 1371
|
|
41
|
+
_globals['_DELETEDATAPIPELINERESPONSE']._serialized_end = 1399
|
|
42
|
+
_globals['_ENABLEDATAPIPELINEREQUEST']._serialized_start = 1401
|
|
43
|
+
_globals['_ENABLEDATAPIPELINEREQUEST']._serialized_end = 1444
|
|
44
|
+
_globals['_ENABLEDATAPIPELINERESPONSE']._serialized_start = 1446
|
|
45
|
+
_globals['_ENABLEDATAPIPELINERESPONSE']._serialized_end = 1474
|
|
46
|
+
_globals['_DISABLEDATAPIPELINEREQUEST']._serialized_start = 1476
|
|
47
|
+
_globals['_DISABLEDATAPIPELINEREQUEST']._serialized_end = 1520
|
|
48
|
+
_globals['_DISABLEDATAPIPELINERESPONSE']._serialized_start = 1522
|
|
49
|
+
_globals['_DISABLEDATAPIPELINERESPONSE']._serialized_end = 1551
|
|
50
|
+
_globals['_LISTDATAPIPELINERUNSREQUEST']._serialized_start = 1553
|
|
51
|
+
_globals['_LISTDATAPIPELINERUNSREQUEST']._serialized_end = 1658
|
|
52
|
+
_globals['_LISTDATAPIPELINERUNSRESPONSE']._serialized_start = 1661
|
|
53
|
+
_globals['_LISTDATAPIPELINERUNSRESPONSE']._serialized_end = 1828
|
|
54
|
+
_globals['_DATAPIPELINERUN']._serialized_start = 1831
|
|
55
|
+
_globals['_DATAPIPELINERUN']._serialized_end = 2184
|
|
56
|
+
_globals['_DATAPIPELINESSERVICE']._serialized_start = 2410
|
|
57
|
+
_globals['_DATAPIPELINESSERVICE']._serialized_end = 3483
|
|
@@ -212,48 +212,29 @@ class CreateDataPipelineResponse(google.protobuf.message.Message):
|
|
|
212
212
|
global___CreateDataPipelineResponse = CreateDataPipelineResponse
|
|
213
213
|
|
|
214
214
|
@typing.final
|
|
215
|
-
class
|
|
215
|
+
class RenameDataPipelineRequest(google.protobuf.message.Message):
|
|
216
216
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
217
217
|
ID_FIELD_NUMBER: builtins.int
|
|
218
218
|
NAME_FIELD_NUMBER: builtins.int
|
|
219
|
-
MQL_BINARY_FIELD_NUMBER: builtins.int
|
|
220
|
-
SCHEDULE_FIELD_NUMBER: builtins.int
|
|
221
|
-
DATA_SOURCE_TYPE_FIELD_NUMBER: builtins.int
|
|
222
219
|
id: builtins.str
|
|
223
|
-
'The ID of the data pipeline to
|
|
220
|
+
'The ID of the data pipeline to rename.'
|
|
224
221
|
name: builtins.str
|
|
225
|
-
'A unique identifier at the
|
|
226
|
-
schedule: builtins.str
|
|
227
|
-
'A cron expression representing the expected execution schedule in UTC (note this also\n defines the input time window; an hourly schedule would process 1 hour of data at a time).\n '
|
|
228
|
-
data_source_type: app.data.v1.data_pb2.TabularDataSourceType.ValueType
|
|
229
|
-
'The type of data source for the pipeline. If not specified, default is standard data storage.'
|
|
222
|
+
'A unique identifier at the organization level.'
|
|
230
223
|
|
|
231
|
-
|
|
232
|
-
def mql_binary(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]:
|
|
233
|
-
"""A MongoDB aggregation pipeline as a list of BSON documents, where
|
|
234
|
-
each document is one stage in the pipeline.
|
|
235
|
-
"""
|
|
236
|
-
|
|
237
|
-
def __init__(self, *, id: builtins.str=..., name: builtins.str=..., mql_binary: collections.abc.Iterable[builtins.bytes] | None=..., schedule: builtins.str=..., data_source_type: app.data.v1.data_pb2.TabularDataSourceType.ValueType | None=...) -> None:
|
|
224
|
+
def __init__(self, *, id: builtins.str=..., name: builtins.str=...) -> None:
|
|
238
225
|
...
|
|
239
226
|
|
|
240
|
-
def
|
|
241
|
-
...
|
|
242
|
-
|
|
243
|
-
def ClearField(self, field_name: typing.Literal['_data_source_type', b'_data_source_type', 'data_source_type', b'data_source_type', 'id', b'id', 'mql_binary', b'mql_binary', 'name', b'name', 'schedule', b'schedule']) -> None:
|
|
244
|
-
...
|
|
245
|
-
|
|
246
|
-
def WhichOneof(self, oneof_group: typing.Literal['_data_source_type', b'_data_source_type']) -> typing.Literal['data_source_type'] | None:
|
|
227
|
+
def ClearField(self, field_name: typing.Literal['id', b'id', 'name', b'name']) -> None:
|
|
247
228
|
...
|
|
248
|
-
|
|
229
|
+
global___RenameDataPipelineRequest = RenameDataPipelineRequest
|
|
249
230
|
|
|
250
231
|
@typing.final
|
|
251
|
-
class
|
|
232
|
+
class RenameDataPipelineResponse(google.protobuf.message.Message):
|
|
252
233
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
253
234
|
|
|
254
235
|
def __init__(self) -> None:
|
|
255
236
|
...
|
|
256
|
-
|
|
237
|
+
global___RenameDataPipelineResponse = RenameDataPipelineResponse
|
|
257
238
|
|
|
258
239
|
@typing.final
|
|
259
240
|
class DeleteDataPipelineRequest(google.protobuf.message.Message):
|
|
@@ -11,7 +11,7 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
|
11
11
|
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
|
12
12
|
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
13
13
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
14
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fapp/datasync/v1/data_sync.proto\x12\x14viam.app.datasync.v1\x1a\x16app/data/v1/data.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xa7\x01\n\x18DataCaptureUploadRequest\x12@\n\x08metadata\x18\x01 \x01(\x0b2$.viam.app.datasync.v1.UploadMetadataR\x08metadata\x12I\n\x0fsensor_contents\x18\x02 \x03(\x0b2 .viam.app.datasync.v1.SensorDataR\x0esensorContents"Z\n\x19DataCaptureUploadResponse\x12\x17\n\x07file_id\x18\x01 \x01(\tR\x06fileId\x12$\n\x0ebinary_data_id\x18\x02 \x01(\tR\x0cbinaryDataId"\xaf\x01\n\x11FileUploadRequest\x12B\n\x08metadata\x18\x01 \x01(\x0b2$.viam.app.datasync.v1.UploadMetadataH\x00R\x08metadata\x12E\n\rfile_contents\x18\x02 \x01(\x0b2\x1e.viam.app.datasync.v1.FileDataH\x00R\x0cfileContentsB\x0f\n\rupload_packet"W\n\x12FileUploadResponse\x12\x1b\n\x07file_id\x18\x01 \x01(\tB\x02\x18\x01R\x06fileId\x12$\n\x0ebinary_data_id\x18\x02 \x01(\tR\x0cbinaryDataId"\x99\x01\n!StreamingDataCaptureUploadRequest\x12M\n\x08metadata\x18\x01 \x01(\x0b2/.viam.app.datasync.v1.DataCaptureUploadMetadataH\x00R\x08metadata\x12\x14\n\x04data\x18\x02 \x01(\x0cH\x00R\x04dataB\x0f\n\rupload_packet"g\n"StreamingDataCaptureUploadResponse\x12\x1b\n\x07file_id\x18\x01 \x01(\tB\x02\x18\x01R\x06fileId\x12$\n\x0ebinary_data_id\x18\x02 \x01(\tR\x0cbinaryDataId"\x92\x02\n\x0eSensorMetadata\x12A\n\x0etime_requested\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampR\rtimeRequested\x12?\n\rtime_received\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0ctimeReceived\x12;\n\tmime_type\x18\x03 \x01(\x0e2\x1e.viam.app.datasync.v1.MimeTypeR\x08mimeType\x12?\n\x0bannotations\x18\x04 \x01(\x0b2\x1d.viam.app.data.v1.AnnotationsR\x0bannotations"\xa3\x01\n\nSensorData\x12@\n\x08metadata\x18\x01 \x01(\x0b2$.viam.app.datasync.v1.SensorMetadataR\x08metadata\x121\n\x06struct\x18\x02 \x01(\x0b2\x17.google.protobuf.StructH\x00R\x06struct\x12\x18\n\x06binary\x18\x03 \x01(\x0cH\x00R\x06binaryB\x06\n\x04data"\x1e\n\x08FileData\x12\x12\n\x04data\x18\x01 \x01(\x0cR\x04data"\
|
|
14
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fapp/datasync/v1/data_sync.proto\x12\x14viam.app.datasync.v1\x1a\x16app/data/v1/data.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xa7\x01\n\x18DataCaptureUploadRequest\x12@\n\x08metadata\x18\x01 \x01(\x0b2$.viam.app.datasync.v1.UploadMetadataR\x08metadata\x12I\n\x0fsensor_contents\x18\x02 \x03(\x0b2 .viam.app.datasync.v1.SensorDataR\x0esensorContents"Z\n\x19DataCaptureUploadResponse\x12\x17\n\x07file_id\x18\x01 \x01(\tR\x06fileId\x12$\n\x0ebinary_data_id\x18\x02 \x01(\tR\x0cbinaryDataId"\xaf\x01\n\x11FileUploadRequest\x12B\n\x08metadata\x18\x01 \x01(\x0b2$.viam.app.datasync.v1.UploadMetadataH\x00R\x08metadata\x12E\n\rfile_contents\x18\x02 \x01(\x0b2\x1e.viam.app.datasync.v1.FileDataH\x00R\x0cfileContentsB\x0f\n\rupload_packet"W\n\x12FileUploadResponse\x12\x1b\n\x07file_id\x18\x01 \x01(\tB\x02\x18\x01R\x06fileId\x12$\n\x0ebinary_data_id\x18\x02 \x01(\tR\x0cbinaryDataId"\x99\x01\n!StreamingDataCaptureUploadRequest\x12M\n\x08metadata\x18\x01 \x01(\x0b2/.viam.app.datasync.v1.DataCaptureUploadMetadataH\x00R\x08metadata\x12\x14\n\x04data\x18\x02 \x01(\x0cH\x00R\x04dataB\x0f\n\rupload_packet"g\n"StreamingDataCaptureUploadResponse\x12\x1b\n\x07file_id\x18\x01 \x01(\tB\x02\x18\x01R\x06fileId\x12$\n\x0ebinary_data_id\x18\x02 \x01(\tR\x0cbinaryDataId"\x92\x02\n\x0eSensorMetadata\x12A\n\x0etime_requested\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampR\rtimeRequested\x12?\n\rtime_received\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0ctimeReceived\x12;\n\tmime_type\x18\x03 \x01(\x0e2\x1e.viam.app.datasync.v1.MimeTypeR\x08mimeType\x12?\n\x0bannotations\x18\x04 \x01(\x0b2\x1d.viam.app.data.v1.AnnotationsR\x0bannotations"\xa3\x01\n\nSensorData\x12@\n\x08metadata\x18\x01 \x01(\x0b2$.viam.app.datasync.v1.SensorMetadataR\x08metadata\x121\n\x06struct\x18\x02 \x01(\x0b2\x17.google.protobuf.StructH\x00R\x06struct\x12\x18\n\x06binary\x18\x03 \x01(\x0cH\x00R\x06binaryB\x06\n\x04data"\x1e\n\x08FileData\x12\x12\n\x04data\x18\x01 \x01(\x0cR\x04data"\xb2\x04\n\x0eUploadMetadata\x12\x17\n\x07part_id\x18\x01 \x01(\tR\x06partId\x12%\n\x0ecomponent_type\x18\x02 \x01(\tR\rcomponentType\x12%\n\x0ecomponent_name\x18\x03 \x01(\tR\rcomponentName\x12\x1f\n\x0bmethod_name\x18\x05 \x01(\tR\nmethodName\x122\n\x04type\x18\x06 \x01(\x0e2\x1e.viam.app.datasync.v1.DataTypeR\x04type\x12\x1b\n\tfile_name\x18\x07 \x01(\tR\x08fileName\x12g\n\x11method_parameters\x18\x08 \x03(\x0b2:.viam.app.datasync.v1.UploadMetadata.MethodParametersEntryR\x10methodParameters\x12%\n\x0efile_extension\x18\t \x01(\tR\rfileExtension\x12\x12\n\x04tags\x18\n \x03(\tR\x04tags\x12\x1f\n\x0bdataset_ids\x18\x0c \x03(\tR\ndatasetIds\x1aY\n\x15MethodParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12*\n\x05value\x18\x02 \x01(\x0b2\x14.google.protobuf.AnyR\x05value:\x028\x01J\x04\x08\x04\x10\x05J\x04\x08\x0b\x10\x0cR\x0fcomponent_modelR\nsession_id"q\n\x0fCaptureInterval\x120\n\x05start\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampR\x05start\x12,\n\x03end\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x03end"\xe5\x03\n\x13DataCaptureMetadata\x12%\n\x0ecomponent_type\x18\x01 \x01(\tR\rcomponentType\x12%\n\x0ecomponent_name\x18\x02 \x01(\tR\rcomponentName\x12\x1f\n\x0bmethod_name\x18\x04 \x01(\tR\nmethodName\x122\n\x04type\x18\x05 \x01(\x0e2\x1e.viam.app.datasync.v1.DataTypeR\x04type\x12l\n\x11method_parameters\x18\x06 \x03(\x0b2?.viam.app.datasync.v1.DataCaptureMetadata.MethodParametersEntryR\x10methodParameters\x12%\n\x0efile_extension\x18\x07 \x01(\tR\rfileExtension\x12\x12\n\x04tags\x18\x08 \x03(\tR\x04tags\x1aY\n\x15MethodParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12*\n\x05value\x18\x02 \x01(\x0b2\x14.google.protobuf.AnyR\x05value:\x028\x01J\x04\x08\x03\x10\x04J\x04\x08\t\x10\nR\x0fcomponent_modelR\nsession_id"\xb9\x01\n\x19DataCaptureUploadMetadata\x12M\n\x0fupload_metadata\x18\x01 \x01(\x0b2$.viam.app.datasync.v1.UploadMetadataR\x0euploadMetadata\x12M\n\x0fsensor_metadata\x18\x02 \x01(\x0b2$.viam.app.datasync.v1.SensorMetadataR\x0esensorMetadata*w\n\x08MimeType\x12\x19\n\x15MIME_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14MIME_TYPE_IMAGE_JPEG\x10\x01\x12\x17\n\x13MIME_TYPE_IMAGE_PNG\x10\x02\x12\x1d\n\x19MIME_TYPE_APPLICATION_PCD\x10\x03*t\n\x08DataType\x12\x19\n\x15DATA_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17DATA_TYPE_BINARY_SENSOR\x10\x01\x12\x1c\n\x18DATA_TYPE_TABULAR_SENSOR\x10\x02\x12\x12\n\x0eDATA_TYPE_FILE\x10\x032\x80\x04\n\x0fDataSyncService\x12\x9e\x01\n\x11DataCaptureUpload\x12..viam.app.datasync.v1.DataCaptureUploadRequest\x1a/.viam.app.datasync.v1.DataCaptureUploadResponse"(\x82\xd3\xe4\x93\x02"" /datasync/v1/data_capture_upload\x12\x83\x01\n\nFileUpload\x12\'.viam.app.datasync.v1.FileUploadRequest\x1a(.viam.app.datasync.v1.FileUploadResponse" \x82\xd3\xe4\x93\x02\x1a"\x18/datasync/v1/file_upload(\x01\x12\xc5\x01\n\x1aStreamingDataCaptureUpload\x127.viam.app.datasync.v1.StreamingDataCaptureUploadRequest\x1a8.viam.app.datasync.v1.StreamingDataCaptureUploadResponse"2\x82\xd3\xe4\x93\x02,"*/datasync/v1/streaming_data_capture_upload(\x01B!Z\x1fgo.viam.com/api/app/datasync/v1b\x06proto3')
|
|
15
15
|
_globals = globals()
|
|
16
16
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
17
17
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.datasync.v1.data_sync_pb2', _globals)
|
|
@@ -32,10 +32,10 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
32
32
|
_globals['_DATASYNCSERVICE'].methods_by_name['FileUpload']._serialized_options = b'\x82\xd3\xe4\x93\x02\x1a"\x18/datasync/v1/file_upload'
|
|
33
33
|
_globals['_DATASYNCSERVICE'].methods_by_name['StreamingDataCaptureUpload']._loaded_options = None
|
|
34
34
|
_globals['_DATASYNCSERVICE'].methods_by_name['StreamingDataCaptureUpload']._serialized_options = b'\x82\xd3\xe4\x93\x02,"*/datasync/v1/streaming_data_capture_upload'
|
|
35
|
-
_globals['_MIMETYPE']._serialized_start =
|
|
36
|
-
_globals['_MIMETYPE']._serialized_end =
|
|
37
|
-
_globals['_DATATYPE']._serialized_start =
|
|
38
|
-
_globals['_DATATYPE']._serialized_end =
|
|
35
|
+
_globals['_MIMETYPE']._serialized_start = 2822
|
|
36
|
+
_globals['_MIMETYPE']._serialized_end = 2941
|
|
37
|
+
_globals['_DATATYPE']._serialized_start = 2943
|
|
38
|
+
_globals['_DATATYPE']._serialized_end = 3059
|
|
39
39
|
_globals['_DATACAPTUREUPLOADREQUEST']._serialized_start = 202
|
|
40
40
|
_globals['_DATACAPTUREUPLOADREQUEST']._serialized_end = 369
|
|
41
41
|
_globals['_DATACAPTUREUPLOADRESPONSE']._serialized_start = 371
|
|
@@ -55,16 +55,16 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
55
55
|
_globals['_FILEDATA']._serialized_start = 1434
|
|
56
56
|
_globals['_FILEDATA']._serialized_end = 1464
|
|
57
57
|
_globals['_UPLOADMETADATA']._serialized_start = 1467
|
|
58
|
-
_globals['_UPLOADMETADATA']._serialized_end =
|
|
59
|
-
_globals['_UPLOADMETADATA_METHODPARAMETERSENTRY']._serialized_start =
|
|
60
|
-
_globals['_UPLOADMETADATA_METHODPARAMETERSENTRY']._serialized_end =
|
|
61
|
-
_globals['_CAPTUREINTERVAL']._serialized_start =
|
|
62
|
-
_globals['_CAPTUREINTERVAL']._serialized_end =
|
|
63
|
-
_globals['_DATACAPTUREMETADATA']._serialized_start =
|
|
64
|
-
_globals['_DATACAPTUREMETADATA']._serialized_end =
|
|
65
|
-
_globals['_DATACAPTUREMETADATA_METHODPARAMETERSENTRY']._serialized_start =
|
|
66
|
-
_globals['_DATACAPTUREMETADATA_METHODPARAMETERSENTRY']._serialized_end =
|
|
67
|
-
_globals['_DATACAPTUREUPLOADMETADATA']._serialized_start =
|
|
68
|
-
_globals['_DATACAPTUREUPLOADMETADATA']._serialized_end =
|
|
69
|
-
_globals['_DATASYNCSERVICE']._serialized_start =
|
|
70
|
-
_globals['_DATASYNCSERVICE']._serialized_end =
|
|
58
|
+
_globals['_UPLOADMETADATA']._serialized_end = 2029
|
|
59
|
+
_globals['_UPLOADMETADATA_METHODPARAMETERSENTRY']._serialized_start = 1899
|
|
60
|
+
_globals['_UPLOADMETADATA_METHODPARAMETERSENTRY']._serialized_end = 1988
|
|
61
|
+
_globals['_CAPTUREINTERVAL']._serialized_start = 2031
|
|
62
|
+
_globals['_CAPTUREINTERVAL']._serialized_end = 2144
|
|
63
|
+
_globals['_DATACAPTUREMETADATA']._serialized_start = 2147
|
|
64
|
+
_globals['_DATACAPTUREMETADATA']._serialized_end = 2632
|
|
65
|
+
_globals['_DATACAPTUREMETADATA_METHODPARAMETERSENTRY']._serialized_start = 1899
|
|
66
|
+
_globals['_DATACAPTUREMETADATA_METHODPARAMETERSENTRY']._serialized_end = 1988
|
|
67
|
+
_globals['_DATACAPTUREUPLOADMETADATA']._serialized_start = 2635
|
|
68
|
+
_globals['_DATACAPTUREUPLOADMETADATA']._serialized_end = 2820
|
|
69
|
+
_globals['_DATASYNCSERVICE']._serialized_start = 3062
|
|
70
|
+
_globals['_DATASYNCSERVICE']._serialized_end = 3574
|
|
@@ -299,6 +299,7 @@ class UploadMetadata(google.protobuf.message.Message):
|
|
|
299
299
|
METHOD_PARAMETERS_FIELD_NUMBER: builtins.int
|
|
300
300
|
FILE_EXTENSION_FIELD_NUMBER: builtins.int
|
|
301
301
|
TAGS_FIELD_NUMBER: builtins.int
|
|
302
|
+
DATASET_IDS_FIELD_NUMBER: builtins.int
|
|
302
303
|
part_id: builtins.str
|
|
303
304
|
component_type: builtins.str
|
|
304
305
|
component_name: builtins.str
|
|
@@ -315,10 +316,14 @@ class UploadMetadata(google.protobuf.message.Message):
|
|
|
315
316
|
def tags(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
316
317
|
...
|
|
317
318
|
|
|
318
|
-
|
|
319
|
+
@property
|
|
320
|
+
def dataset_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
321
|
+
...
|
|
322
|
+
|
|
323
|
+
def __init__(self, *, part_id: builtins.str=..., component_type: builtins.str=..., component_name: builtins.str=..., method_name: builtins.str=..., type: global___DataType.ValueType=..., file_name: builtins.str=..., method_parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=..., file_extension: builtins.str=..., tags: collections.abc.Iterable[builtins.str] | None=..., dataset_ids: collections.abc.Iterable[builtins.str] | None=...) -> None:
|
|
319
324
|
...
|
|
320
325
|
|
|
321
|
-
def ClearField(self, field_name: typing.Literal['component_name', b'component_name', 'component_type', b'component_type', 'file_extension', b'file_extension', 'file_name', b'file_name', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'part_id', b'part_id', 'tags', b'tags', 'type', b'type']) -> None:
|
|
326
|
+
def ClearField(self, field_name: typing.Literal['component_name', b'component_name', 'component_type', b'component_type', 'dataset_ids', b'dataset_ids', 'file_extension', b'file_extension', 'file_name', b'file_name', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'part_id', b'part_id', 'tags', b'tags', 'type', b'type']) -> None:
|
|
322
327
|
...
|
|
323
328
|
global___UploadMetadata = UploadMetadata
|
|
324
329
|
|