-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to latest ni-apis and generate stubs for new array.proto (#1022)
* Update to latest ni-apis * Add generated stubs for array.proto
- Loading branch information
Showing
5 changed files
with
111 additions
and
1 deletion.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.../service/ni_measurement_plugin_sdk_service/_internal/stubs/ni/protobuf/types/array_pb2.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
...service/ni_measurement_plugin_sdk_service/_internal/stubs/ni/protobuf/types/array_pb2.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
--------------------------------------------------------------------- | ||
--------------------------------------------------------------------- | ||
""" | ||
|
||
import builtins | ||
import collections.abc | ||
import google.protobuf.descriptor | ||
import google.protobuf.internal.containers | ||
import google.protobuf.message | ||
import typing | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor | ||
|
||
@typing.final | ||
class Double2DArray(google.protobuf.message.Message): | ||
"""--------------------------------------------------------------------- | ||
Defines a 2D array of double values. The 2D array is stored as | ||
a repeated double, a 1D array. It is stored in row major order. | ||
Example: | ||
Repeated Double: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | ||
rows: 2 | ||
columns: 5 | ||
2D Representation: | ||
1 2 3 4 5 | ||
6 7 8 9 10 | ||
Indices: | ||
(0,0) (0,1) (0,2) (0,3) (0,4) | ||
(1,0) (1,1) (1,2) (1,3) (1,4) | ||
Remarks: | ||
The length of the 'data' field must be equal to rows * columns. | ||
If it is not, implementations should treat this state as invalid | ||
and return INVALID_ARGUMENT status code if appropriate. | ||
--------------------------------------------------------------------- | ||
""" | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
|
||
ROWS_FIELD_NUMBER: builtins.int | ||
COLUMNS_FIELD_NUMBER: builtins.int | ||
DATA_FIELD_NUMBER: builtins.int | ||
rows: builtins.int | ||
columns: builtins.int | ||
@property | ||
def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... | ||
def __init__( | ||
self, | ||
*, | ||
rows: builtins.int = ..., | ||
columns: builtins.int = ..., | ||
data: collections.abc.Iterable[builtins.float] | None = ..., | ||
) -> None: ... | ||
def ClearField(self, field_name: typing.Literal["columns", b"columns", "data", b"data", "rows", b"rows"]) -> None: ... | ||
|
||
global___Double2DArray = Double2DArray |
4 changes: 4 additions & 0 deletions
4
...ice/ni_measurement_plugin_sdk_service/_internal/stubs/ni/protobuf/types/array_pb2_grpc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | ||
"""Client and server classes corresponding to protobuf-defined services.""" | ||
import grpc | ||
|
19 changes: 19 additions & 0 deletions
19
...ce/ni_measurement_plugin_sdk_service/_internal/stubs/ni/protobuf/types/array_pb2_grpc.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
--------------------------------------------------------------------- | ||
--------------------------------------------------------------------- | ||
""" | ||
|
||
import abc | ||
import collections.abc | ||
import grpc | ||
import grpc.aio | ||
import typing | ||
|
||
_T = typing.TypeVar("_T") | ||
|
||
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ... | ||
|
||
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] | ||
... |
Submodule ni-apis
updated
2 files
+114 −114 | .github/check_protos/poetry.lock | |
+47 −0 | ni/protobuf/types/array.proto |