Skip to content

Commit

Permalink
Update stubs to current proto spec. (#52)
Browse files Browse the repository at this point in the history
* Update stubs to current proto spec.
* Add missing google-api-core dependency
  • Loading branch information
aksestok authored Dec 8, 2021
1 parent 9dea514 commit 13d2172
Show file tree
Hide file tree
Showing 30 changed files with 1,194 additions and 610 deletions.
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ name = "pypi"

[packages]
black = "==20.8b1"
# Locked because upgrading to 1.31.3 leads to incompatible version requirements on the protobuf library.
google-api-core = "==1.31.2"
grpcio = "*"
isort = "*"
mypy = "*"
Expand Down
86 changes: 85 additions & 1 deletion Pipfile.lock

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

2 changes: 2 additions & 0 deletions exabel_data_sdk/stubs/exabel/api/data/v1/all_pb2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Generated by generate_protobuf_stubs.sh.
# Contains all messages in *_pb2.py in a single module.

from exabel_data_sdk.stubs.exabel.api.data.v1.data_set_messages_pb2 import *
from exabel_data_sdk.stubs.exabel.api.data.v1.data_set_service_pb2 import *
from exabel_data_sdk.stubs.exabel.api.data.v1.entity_messages_pb2 import *
from exabel_data_sdk.stubs.exabel.api.data.v1.entity_service_pb2 import *
from exabel_data_sdk.stubs.exabel.api.data.v1.internal_entity_service_pb2 import *
Expand Down
2 changes: 2 additions & 0 deletions exabel_data_sdk/stubs/exabel/api/data/v1/all_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Generated by generate_protobuf_stubs.sh.
# Contains all messages in *_pb2_grpc.py in a single module.

from exabel_data_sdk.stubs.exabel.api.data.v1.data_set_messages_pb2_grpc import *
from exabel_data_sdk.stubs.exabel.api.data.v1.data_set_service_pb2_grpc import *
from exabel_data_sdk.stubs.exabel.api.data.v1.entity_messages_pb2_grpc import *
from exabel_data_sdk.stubs.exabel.api.data.v1.entity_service_pb2_grpc import *
from exabel_data_sdk.stubs.exabel.api.data.v1.internal_entity_service_pb2_grpc import *
Expand Down
97 changes: 97 additions & 0 deletions exabel_data_sdk/stubs/exabel/api/data/v1/data_set_messages_pb2.py

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

52 changes: 52 additions & 0 deletions exabel_data_sdk/stubs/exabel/api/data/v1/data_set_messages_pb2.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)

from google.protobuf.internal.containers import (
RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer,
)

from google.protobuf.message import (
Message as google___protobuf___message___Message,
)

from typing import (
Iterable as typing___Iterable,
Optional as typing___Optional,
Text as typing___Text,
)

from typing_extensions import (
Literal as typing_extensions___Literal,
)


builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int


DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...

class DataSet(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
name: typing___Text = ...
display_name: typing___Text = ...
description: typing___Text = ...
signals: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...

def __init__(self,
*,
name : typing___Optional[typing___Text] = None,
display_name : typing___Optional[typing___Text] = None,
description : typing___Optional[typing___Text] = None,
signals : typing___Optional[typing___Iterable[typing___Text]] = None,
) -> None: ...
def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"display_name",b"display_name",u"name",b"name",u"signals",b"signals"]) -> None: ...
type___DataSet = DataSet
Loading

0 comments on commit 13d2172

Please sign in to comment.