Skip to content

Commit

Permalink
Update to latest ni-apis and generate stubs for new array.proto (#1022)
Browse files Browse the repository at this point in the history
* Update to latest ni-apis

* Add generated stubs for array.proto
  • Loading branch information
dixonjoel authored Nov 21, 2024
1 parent 4926f51 commit d181239
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
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

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]
...
2 changes: 1 addition & 1 deletion third_party/ni-apis

0 comments on commit d181239

Please sign in to comment.