alis.open.validation.v1 1.2.0__tar.gz

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.
Files changed (24) hide show
  1. alis_open_validation_v1-1.2.0/PKG-INFO +8 -0
  2. alis_open_validation_v1-1.2.0/alis/__init__.py +1 -0
  3. alis_open_validation_v1-1.2.0/alis/__init__.pyi +1 -0
  4. alis_open_validation_v1-1.2.0/alis/open/__init__.py +1 -0
  5. alis_open_validation_v1-1.2.0/alis/open/__init__.pyi +1 -0
  6. alis_open_validation_v1-1.2.0/alis/open/validation/__init__.py +1 -0
  7. alis_open_validation_v1-1.2.0/alis/open/validation/__init__.pyi +1 -0
  8. alis_open_validation_v1-1.2.0/alis/open/validation/v1/__init__.py +1 -0
  9. alis_open_validation_v1-1.2.0/alis/open/validation/v1/__init__.pyi +1 -0
  10. alis_open_validation_v1-1.2.0/alis/open/validation/v1/test_pb2.py +57 -0
  11. alis_open_validation_v1-1.2.0/alis/open/validation/v1/test_pb2.pyi +220 -0
  12. alis_open_validation_v1-1.2.0/alis/open/validation/v1/test_pb2_grpc.py +270 -0
  13. alis_open_validation_v1-1.2.0/alis/open/validation/v1/test_pb2_grpc.pyi +86 -0
  14. alis_open_validation_v1-1.2.0/alis/open/validation/v1/validation_pb2.py +49 -0
  15. alis_open_validation_v1-1.2.0/alis/open/validation/v1/validation_pb2.pyi +161 -0
  16. alis_open_validation_v1-1.2.0/alis/open/validation/v1/validation_pb2_grpc.py +140 -0
  17. alis_open_validation_v1-1.2.0/alis/open/validation/v1/validation_pb2_grpc.pyi +58 -0
  18. alis_open_validation_v1-1.2.0/alis.open.validation.v1.egg-info/PKG-INFO +8 -0
  19. alis_open_validation_v1-1.2.0/alis.open.validation.v1.egg-info/SOURCES.txt +22 -0
  20. alis_open_validation_v1-1.2.0/alis.open.validation.v1.egg-info/dependency_links.txt +1 -0
  21. alis_open_validation_v1-1.2.0/alis.open.validation.v1.egg-info/requires.txt +2 -0
  22. alis_open_validation_v1-1.2.0/alis.open.validation.v1.egg-info/top_level.txt +1 -0
  23. alis_open_validation_v1-1.2.0/setup.cfg +4 -0
  24. alis_open_validation_v1-1.2.0/setup.py +38 -0
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: alis.open.validation.v1
3
+ Version: 1.2.0
4
+ Summary: Protobufs generated by Alis Build
5
+ Requires-Dist: google-common-protos>=0.0.1
6
+ Requires-Dist: alis-services-protobuf-open>=1.176.0
7
+ Dynamic: requires-dist
8
+ Dynamic: summary
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1,57 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: alis/open/validation/v1/test.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'alis/open/validation/v1/test.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
26
+ from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
27
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
28
+ from google.type import date_pb2 as google_dot_type_dot_date__pb2
29
+
30
+
31
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"alis/open/validation/v1/test.proto\x12\x17\x61lis.open.validation.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"\xa2\x02\n\x04\x42ook\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12!\n\x0c\x64isplay_name\x18\x02 \x01(\tR\x0b\x64isplayName\x12\x16\n\x06\x61uthor\x18\x03 \x01(\tR\x06\x61uthor\x12<\n\x10publication_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateR\x0fpublicationDate\x12;\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nupdateTime\x12\x1d\n\npage_count\x18\x06 \x01(\x05R\tpageCount\x12\x31\n\x04type\x18\x07 \x01(\x0e\x32\x1d.alis.open.validation.v1.TypeR\x04type\"]\n\x0eGetBookRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x37\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\x08readMask\"L\n\x11\x43reateBookRequest\x12\x31\n\x04\x62ook\x18\x02 \x01(\x0b\x32\x1d.alis.open.validation.v1.BookR\x04\x62ookJ\x04\x08\x01\x10\x02\"\x83\x01\n\x11UpdateBookRequest\x12\x31\n\x04\x62ook\x18\x01 \x01(\x0b\x32\x1d.alis.open.validation.v1.BookR\x04\x62ook\x12;\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\nupdateMask\"\'\n\x11\x44\x65leteBookRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"\x8d\x01\n\x10ListBooksRequest\x12\x1b\n\tpage_size\x18\x02 \x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03 \x01(\tR\tpageToken\x12\x37\n\tread_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\x08readMaskJ\x04\x08\x01\x10\x02\"\xa9\x01\n\x11ListBooksResponse\x12\x33\n\x05\x62ooks\x18\x01 \x03(\x0b\x32\x1d.alis.open.validation.v1.BookR\x05\x62ooks\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\x12\x37\n\tread_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\x08readMask*D\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tANONYMOUS\x10\x01\x12\x0c\n\x08\x43HILDREN\x10\x02\x12\t\n\x05\x41\x44ULT\x10\x03\x32\xd2\x03\n\x0b\x42ookService\x12S\n\x07GetBook\x12\'.alis.open.validation.v1.GetBookRequest\x1a\x1d.alis.open.validation.v1.Book\"\x00\x12Y\n\nCreateBook\x12*.alis.open.validation.v1.CreateBookRequest\x1a\x1d.alis.open.validation.v1.Book\"\x00\x12Y\n\nUpdateBook\x12*.alis.open.validation.v1.UpdateBookRequest\x1a\x1d.alis.open.validation.v1.Book\"\x00\x12R\n\nDeleteBook\x12*.alis.open.validation.v1.DeleteBookRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x64\n\tListBooks\x12).alis.open.validation.v1.ListBooksRequest\x1a*.alis.open.validation.v1.ListBooksResponse\"\x00\x42+Z)go.alis.build/common/alis/open/validationb\x06proto3')
32
+
33
+ _globals = globals()
34
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
35
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'alis.open.validation.v1.test_pb2', _globals)
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ _globals['DESCRIPTOR']._loaded_options = None
38
+ _globals['DESCRIPTOR']._serialized_options = b'Z)go.alis.build/common/alis/open/validation'
39
+ _globals['_TYPE']._serialized_start=1140
40
+ _globals['_TYPE']._serialized_end=1208
41
+ _globals['_BOOK']._serialized_start=184
42
+ _globals['_BOOK']._serialized_end=474
43
+ _globals['_GETBOOKREQUEST']._serialized_start=476
44
+ _globals['_GETBOOKREQUEST']._serialized_end=569
45
+ _globals['_CREATEBOOKREQUEST']._serialized_start=571
46
+ _globals['_CREATEBOOKREQUEST']._serialized_end=647
47
+ _globals['_UPDATEBOOKREQUEST']._serialized_start=650
48
+ _globals['_UPDATEBOOKREQUEST']._serialized_end=781
49
+ _globals['_DELETEBOOKREQUEST']._serialized_start=783
50
+ _globals['_DELETEBOOKREQUEST']._serialized_end=822
51
+ _globals['_LISTBOOKSREQUEST']._serialized_start=825
52
+ _globals['_LISTBOOKSREQUEST']._serialized_end=966
53
+ _globals['_LISTBOOKSRESPONSE']._serialized_start=969
54
+ _globals['_LISTBOOKSRESPONSE']._serialized_end=1138
55
+ _globals['_BOOKSERVICE']._serialized_start=1211
56
+ _globals['_BOOKSERVICE']._serialized_end=1677
57
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,220 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ from collections import abc as _abc
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import field_mask_pb2 as _field_mask_pb2
9
+ from google.protobuf import message as _message
10
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
11
+ from google.protobuf.internal import containers as _containers
12
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
13
+ from google.type import date_pb2 as _date_pb2
14
+ import builtins as _builtins
15
+ import sys
16
+ import typing as _typing
17
+
18
+ if sys.version_info >= (3, 11):
19
+ from typing import TypeAlias as _TypeAlias, Never as _Never
20
+ else:
21
+ from typing_extensions import TypeAlias as _TypeAlias, Never as _Never
22
+
23
+ DESCRIPTOR: _descriptor.FileDescriptor
24
+
25
+ class _Type:
26
+ ValueType = _typing.NewType("ValueType", _builtins.int)
27
+ V: _TypeAlias = ValueType # noqa: Y015
28
+
29
+ class _TypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_Type.ValueType], _builtins.type):
30
+ DESCRIPTOR: _descriptor.EnumDescriptor
31
+ TYPE_UNSPECIFIED: _Type.ValueType # 0
32
+ ANONYMOUS: _Type.ValueType # 1
33
+ CHILDREN: _Type.ValueType # 2
34
+ ADULT: _Type.ValueType # 3
35
+
36
+ class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
37
+
38
+ TYPE_UNSPECIFIED: Type.ValueType # 0
39
+ ANONYMOUS: Type.ValueType # 1
40
+ CHILDREN: Type.ValueType # 2
41
+ ADULT: Type.ValueType # 3
42
+ Global___Type: _TypeAlias = Type # noqa: Y015
43
+
44
+ @_typing.final
45
+ class Book(_message.Message):
46
+ DESCRIPTOR: _descriptor.Descriptor
47
+
48
+ NAME_FIELD_NUMBER: _builtins.int
49
+ DISPLAY_NAME_FIELD_NUMBER: _builtins.int
50
+ AUTHOR_FIELD_NUMBER: _builtins.int
51
+ PUBLICATION_DATE_FIELD_NUMBER: _builtins.int
52
+ UPDATE_TIME_FIELD_NUMBER: _builtins.int
53
+ PAGE_COUNT_FIELD_NUMBER: _builtins.int
54
+ TYPE_FIELD_NUMBER: _builtins.int
55
+ name: _builtins.str
56
+ display_name: _builtins.str
57
+ author: _builtins.str
58
+ page_count: _builtins.int
59
+ type: Global___Type.ValueType
60
+ @_builtins.property
61
+ def publication_date(self) -> _date_pb2.Date: ...
62
+ @_builtins.property
63
+ def update_time(self) -> _timestamp_pb2.Timestamp: ...
64
+ def __init__(
65
+ self,
66
+ *,
67
+ name: _builtins.str = ...,
68
+ display_name: _builtins.str = ...,
69
+ author: _builtins.str = ...,
70
+ publication_date: _date_pb2.Date | None = ...,
71
+ update_time: _timestamp_pb2.Timestamp | None = ...,
72
+ page_count: _builtins.int = ...,
73
+ type: Global___Type.ValueType = ...,
74
+ ) -> None: ...
75
+ _HasFieldArgType: _TypeAlias = _typing.Literal["publication_date", b"publication_date", "update_time", b"update_time"] # noqa: Y015
76
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
77
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["author", b"author", "display_name", b"display_name", "name", b"name", "page_count", b"page_count", "publication_date", b"publication_date", "type", b"type", "update_time", b"update_time"] # noqa: Y015
78
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
79
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
80
+
81
+ Global___Book: _TypeAlias = Book # noqa: Y015
82
+
83
+ @_typing.final
84
+ class GetBookRequest(_message.Message):
85
+ DESCRIPTOR: _descriptor.Descriptor
86
+
87
+ NAME_FIELD_NUMBER: _builtins.int
88
+ READ_MASK_FIELD_NUMBER: _builtins.int
89
+ name: _builtins.str
90
+ @_builtins.property
91
+ def read_mask(self) -> _field_mask_pb2.FieldMask: ...
92
+ def __init__(
93
+ self,
94
+ *,
95
+ name: _builtins.str = ...,
96
+ read_mask: _field_mask_pb2.FieldMask | None = ...,
97
+ ) -> None: ...
98
+ _HasFieldArgType: _TypeAlias = _typing.Literal["read_mask", b"read_mask"] # noqa: Y015
99
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
100
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "read_mask", b"read_mask"] # noqa: Y015
101
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
102
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
103
+
104
+ Global___GetBookRequest: _TypeAlias = GetBookRequest # noqa: Y015
105
+
106
+ @_typing.final
107
+ class CreateBookRequest(_message.Message):
108
+ DESCRIPTOR: _descriptor.Descriptor
109
+
110
+ BOOK_FIELD_NUMBER: _builtins.int
111
+ @_builtins.property
112
+ def book(self) -> Global___Book: ...
113
+ def __init__(
114
+ self,
115
+ *,
116
+ book: Global___Book | None = ...,
117
+ ) -> None: ...
118
+ _HasFieldArgType: _TypeAlias = _typing.Literal["book", b"book"] # noqa: Y015
119
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
120
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["book", b"book"] # noqa: Y015
121
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
122
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
123
+
124
+ Global___CreateBookRequest: _TypeAlias = CreateBookRequest # noqa: Y015
125
+
126
+ @_typing.final
127
+ class UpdateBookRequest(_message.Message):
128
+ DESCRIPTOR: _descriptor.Descriptor
129
+
130
+ BOOK_FIELD_NUMBER: _builtins.int
131
+ UPDATE_MASK_FIELD_NUMBER: _builtins.int
132
+ @_builtins.property
133
+ def book(self) -> Global___Book: ...
134
+ @_builtins.property
135
+ def update_mask(self) -> _field_mask_pb2.FieldMask: ...
136
+ def __init__(
137
+ self,
138
+ *,
139
+ book: Global___Book | None = ...,
140
+ update_mask: _field_mask_pb2.FieldMask | None = ...,
141
+ ) -> None: ...
142
+ _HasFieldArgType: _TypeAlias = _typing.Literal["book", b"book", "update_mask", b"update_mask"] # noqa: Y015
143
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
144
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["book", b"book", "update_mask", b"update_mask"] # noqa: Y015
145
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
146
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
147
+
148
+ Global___UpdateBookRequest: _TypeAlias = UpdateBookRequest # noqa: Y015
149
+
150
+ @_typing.final
151
+ class DeleteBookRequest(_message.Message):
152
+ DESCRIPTOR: _descriptor.Descriptor
153
+
154
+ NAME_FIELD_NUMBER: _builtins.int
155
+ name: _builtins.str
156
+ def __init__(
157
+ self,
158
+ *,
159
+ name: _builtins.str = ...,
160
+ ) -> None: ...
161
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
162
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
163
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015
164
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
165
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
166
+
167
+ Global___DeleteBookRequest: _TypeAlias = DeleteBookRequest # noqa: Y015
168
+
169
+ @_typing.final
170
+ class ListBooksRequest(_message.Message):
171
+ DESCRIPTOR: _descriptor.Descriptor
172
+
173
+ PAGE_SIZE_FIELD_NUMBER: _builtins.int
174
+ PAGE_TOKEN_FIELD_NUMBER: _builtins.int
175
+ READ_MASK_FIELD_NUMBER: _builtins.int
176
+ page_size: _builtins.int
177
+ page_token: _builtins.str
178
+ @_builtins.property
179
+ def read_mask(self) -> _field_mask_pb2.FieldMask: ...
180
+ def __init__(
181
+ self,
182
+ *,
183
+ page_size: _builtins.int = ...,
184
+ page_token: _builtins.str = ...,
185
+ read_mask: _field_mask_pb2.FieldMask | None = ...,
186
+ ) -> None: ...
187
+ _HasFieldArgType: _TypeAlias = _typing.Literal["read_mask", b"read_mask"] # noqa: Y015
188
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
189
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["page_size", b"page_size", "page_token", b"page_token", "read_mask", b"read_mask"] # noqa: Y015
190
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
191
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
192
+
193
+ Global___ListBooksRequest: _TypeAlias = ListBooksRequest # noqa: Y015
194
+
195
+ @_typing.final
196
+ class ListBooksResponse(_message.Message):
197
+ DESCRIPTOR: _descriptor.Descriptor
198
+
199
+ BOOKS_FIELD_NUMBER: _builtins.int
200
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _builtins.int
201
+ READ_MASK_FIELD_NUMBER: _builtins.int
202
+ next_page_token: _builtins.str
203
+ @_builtins.property
204
+ def books(self) -> _containers.RepeatedCompositeFieldContainer[Global___Book]: ...
205
+ @_builtins.property
206
+ def read_mask(self) -> _field_mask_pb2.FieldMask: ...
207
+ def __init__(
208
+ self,
209
+ *,
210
+ books: _abc.Iterable[Global___Book] | None = ...,
211
+ next_page_token: _builtins.str = ...,
212
+ read_mask: _field_mask_pb2.FieldMask | None = ...,
213
+ ) -> None: ...
214
+ _HasFieldArgType: _TypeAlias = _typing.Literal["read_mask", b"read_mask"] # noqa: Y015
215
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
216
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["books", b"books", "next_page_token", b"next_page_token", "read_mask", b"read_mask"] # noqa: Y015
217
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
218
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
219
+
220
+ Global___ListBooksResponse: _TypeAlias = ListBooksResponse # noqa: Y015
@@ -0,0 +1,270 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from alis.open.validation.v1 import test_pb2 as alis_dot_open_dot_validation_dot_v1_dot_test__pb2
7
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
8
+
9
+ GRPC_GENERATED_VERSION = '1.81.1'
10
+ GRPC_VERSION = grpc.__version__
11
+ _version_not_supported = False
12
+
13
+ try:
14
+ from grpc._utilities import first_version_is_lower
15
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
16
+ except ImportError:
17
+ _version_not_supported = True
18
+
19
+ if _version_not_supported:
20
+ raise RuntimeError(
21
+ f'The grpc package installed is at version {GRPC_VERSION},'
22
+ + ' but the generated code in alis/open/validation/v1/test_pb2_grpc.py depends on'
23
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
24
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
25
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
26
+ )
27
+
28
+
29
+ class BookServiceStub:
30
+ """Missing associated documentation comment in .proto file."""
31
+
32
+ def __init__(self, channel):
33
+ """Constructor.
34
+
35
+ Args:
36
+ channel: A grpc.Channel.
37
+ """
38
+ self.GetBook = channel.unary_unary(
39
+ '/alis.open.validation.v1.BookService/GetBook',
40
+ request_serializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.GetBookRequest.SerializeToString,
41
+ response_deserializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.Book.FromString,
42
+ _registered_method=True)
43
+ self.CreateBook = channel.unary_unary(
44
+ '/alis.open.validation.v1.BookService/CreateBook',
45
+ request_serializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.CreateBookRequest.SerializeToString,
46
+ response_deserializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.Book.FromString,
47
+ _registered_method=True)
48
+ self.UpdateBook = channel.unary_unary(
49
+ '/alis.open.validation.v1.BookService/UpdateBook',
50
+ request_serializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.UpdateBookRequest.SerializeToString,
51
+ response_deserializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.Book.FromString,
52
+ _registered_method=True)
53
+ self.DeleteBook = channel.unary_unary(
54
+ '/alis.open.validation.v1.BookService/DeleteBook',
55
+ request_serializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.DeleteBookRequest.SerializeToString,
56
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
57
+ _registered_method=True)
58
+ self.ListBooks = channel.unary_unary(
59
+ '/alis.open.validation.v1.BookService/ListBooks',
60
+ request_serializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.ListBooksRequest.SerializeToString,
61
+ response_deserializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.ListBooksResponse.FromString,
62
+ _registered_method=True)
63
+
64
+
65
+ class BookServiceServicer:
66
+ """Missing associated documentation comment in .proto file."""
67
+
68
+ def GetBook(self, request, context):
69
+ """Missing associated documentation comment in .proto file."""
70
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
71
+ context.set_details('Method not implemented!')
72
+ raise NotImplementedError('Method not implemented!')
73
+
74
+ def CreateBook(self, request, context):
75
+ """Missing associated documentation comment in .proto file."""
76
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
77
+ context.set_details('Method not implemented!')
78
+ raise NotImplementedError('Method not implemented!')
79
+
80
+ def UpdateBook(self, request, context):
81
+ """Missing associated documentation comment in .proto file."""
82
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
83
+ context.set_details('Method not implemented!')
84
+ raise NotImplementedError('Method not implemented!')
85
+
86
+ def DeleteBook(self, request, context):
87
+ """Missing associated documentation comment in .proto file."""
88
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
89
+ context.set_details('Method not implemented!')
90
+ raise NotImplementedError('Method not implemented!')
91
+
92
+ def ListBooks(self, request, context):
93
+ """Missing associated documentation comment in .proto file."""
94
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
95
+ context.set_details('Method not implemented!')
96
+ raise NotImplementedError('Method not implemented!')
97
+
98
+
99
+ def add_BookServiceServicer_to_server(servicer, server):
100
+ rpc_method_handlers = {
101
+ 'GetBook': grpc.unary_unary_rpc_method_handler(
102
+ servicer.GetBook,
103
+ request_deserializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.GetBookRequest.FromString,
104
+ response_serializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.Book.SerializeToString,
105
+ ),
106
+ 'CreateBook': grpc.unary_unary_rpc_method_handler(
107
+ servicer.CreateBook,
108
+ request_deserializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.CreateBookRequest.FromString,
109
+ response_serializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.Book.SerializeToString,
110
+ ),
111
+ 'UpdateBook': grpc.unary_unary_rpc_method_handler(
112
+ servicer.UpdateBook,
113
+ request_deserializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.UpdateBookRequest.FromString,
114
+ response_serializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.Book.SerializeToString,
115
+ ),
116
+ 'DeleteBook': grpc.unary_unary_rpc_method_handler(
117
+ servicer.DeleteBook,
118
+ request_deserializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.DeleteBookRequest.FromString,
119
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
120
+ ),
121
+ 'ListBooks': grpc.unary_unary_rpc_method_handler(
122
+ servicer.ListBooks,
123
+ request_deserializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.ListBooksRequest.FromString,
124
+ response_serializer=alis_dot_open_dot_validation_dot_v1_dot_test__pb2.ListBooksResponse.SerializeToString,
125
+ ),
126
+ }
127
+ generic_handler = grpc.method_handlers_generic_handler(
128
+ 'alis.open.validation.v1.BookService', rpc_method_handlers)
129
+ server.add_generic_rpc_handlers((generic_handler,))
130
+ server.add_registered_method_handlers('alis.open.validation.v1.BookService', rpc_method_handlers)
131
+
132
+
133
+ # This class is part of an EXPERIMENTAL API.
134
+ class BookService:
135
+ """Missing associated documentation comment in .proto file."""
136
+
137
+ @staticmethod
138
+ def GetBook(request,
139
+ target,
140
+ options=(),
141
+ channel_credentials=None,
142
+ call_credentials=None,
143
+ insecure=False,
144
+ compression=None,
145
+ wait_for_ready=None,
146
+ timeout=None,
147
+ metadata=None):
148
+ return grpc.experimental.unary_unary(
149
+ request,
150
+ target,
151
+ '/alis.open.validation.v1.BookService/GetBook',
152
+ alis_dot_open_dot_validation_dot_v1_dot_test__pb2.GetBookRequest.SerializeToString,
153
+ alis_dot_open_dot_validation_dot_v1_dot_test__pb2.Book.FromString,
154
+ options,
155
+ channel_credentials,
156
+ insecure,
157
+ call_credentials,
158
+ compression,
159
+ wait_for_ready,
160
+ timeout,
161
+ metadata,
162
+ _registered_method=True)
163
+
164
+ @staticmethod
165
+ def CreateBook(request,
166
+ target,
167
+ options=(),
168
+ channel_credentials=None,
169
+ call_credentials=None,
170
+ insecure=False,
171
+ compression=None,
172
+ wait_for_ready=None,
173
+ timeout=None,
174
+ metadata=None):
175
+ return grpc.experimental.unary_unary(
176
+ request,
177
+ target,
178
+ '/alis.open.validation.v1.BookService/CreateBook',
179
+ alis_dot_open_dot_validation_dot_v1_dot_test__pb2.CreateBookRequest.SerializeToString,
180
+ alis_dot_open_dot_validation_dot_v1_dot_test__pb2.Book.FromString,
181
+ options,
182
+ channel_credentials,
183
+ insecure,
184
+ call_credentials,
185
+ compression,
186
+ wait_for_ready,
187
+ timeout,
188
+ metadata,
189
+ _registered_method=True)
190
+
191
+ @staticmethod
192
+ def UpdateBook(request,
193
+ target,
194
+ options=(),
195
+ channel_credentials=None,
196
+ call_credentials=None,
197
+ insecure=False,
198
+ compression=None,
199
+ wait_for_ready=None,
200
+ timeout=None,
201
+ metadata=None):
202
+ return grpc.experimental.unary_unary(
203
+ request,
204
+ target,
205
+ '/alis.open.validation.v1.BookService/UpdateBook',
206
+ alis_dot_open_dot_validation_dot_v1_dot_test__pb2.UpdateBookRequest.SerializeToString,
207
+ alis_dot_open_dot_validation_dot_v1_dot_test__pb2.Book.FromString,
208
+ options,
209
+ channel_credentials,
210
+ insecure,
211
+ call_credentials,
212
+ compression,
213
+ wait_for_ready,
214
+ timeout,
215
+ metadata,
216
+ _registered_method=True)
217
+
218
+ @staticmethod
219
+ def DeleteBook(request,
220
+ target,
221
+ options=(),
222
+ channel_credentials=None,
223
+ call_credentials=None,
224
+ insecure=False,
225
+ compression=None,
226
+ wait_for_ready=None,
227
+ timeout=None,
228
+ metadata=None):
229
+ return grpc.experimental.unary_unary(
230
+ request,
231
+ target,
232
+ '/alis.open.validation.v1.BookService/DeleteBook',
233
+ alis_dot_open_dot_validation_dot_v1_dot_test__pb2.DeleteBookRequest.SerializeToString,
234
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
235
+ options,
236
+ channel_credentials,
237
+ insecure,
238
+ call_credentials,
239
+ compression,
240
+ wait_for_ready,
241
+ timeout,
242
+ metadata,
243
+ _registered_method=True)
244
+
245
+ @staticmethod
246
+ def ListBooks(request,
247
+ target,
248
+ options=(),
249
+ channel_credentials=None,
250
+ call_credentials=None,
251
+ insecure=False,
252
+ compression=None,
253
+ wait_for_ready=None,
254
+ timeout=None,
255
+ metadata=None):
256
+ return grpc.experimental.unary_unary(
257
+ request,
258
+ target,
259
+ '/alis.open.validation.v1.BookService/ListBooks',
260
+ alis_dot_open_dot_validation_dot_v1_dot_test__pb2.ListBooksRequest.SerializeToString,
261
+ alis_dot_open_dot_validation_dot_v1_dot_test__pb2.ListBooksResponse.FromString,
262
+ options,
263
+ channel_credentials,
264
+ insecure,
265
+ call_credentials,
266
+ compression,
267
+ wait_for_ready,
268
+ timeout,
269
+ metadata,
270
+ _registered_method=True)
@@ -0,0 +1,86 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ from alis.open.validation.v1 import test_pb2 as _test_pb2
7
+ from collections import abc as _abc
8
+ from google.protobuf import empty_pb2 as _empty_pb2
9
+ from grpc import aio as _aio
10
+ import abc as _abc_1
11
+ import grpc as _grpc
12
+ import sys
13
+ import typing as _typing
14
+
15
+ if sys.version_info >= (3, 11):
16
+ from typing import Self as _Self
17
+ else:
18
+ from typing_extensions import Self as _Self
19
+
20
+ _T = _typing.TypeVar("_T")
21
+
22
+ class _MaybeAsyncIterator(_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta): ...
23
+
24
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
25
+ ...
26
+
27
+ GRPC_GENERATED_VERSION: str
28
+ GRPC_VERSION: str
29
+
30
+ class BookServiceStub:
31
+ @_typing.overload
32
+ def __new__(cls, channel: _grpc.Channel) -> _Self: ...
33
+ @_typing.overload
34
+ def __new__(cls, channel: _aio.Channel) -> BookServiceAsyncStub: ...
35
+ GetBook: _grpc.UnaryUnaryMultiCallable[_test_pb2.GetBookRequest, _test_pb2.Book]
36
+ CreateBook: _grpc.UnaryUnaryMultiCallable[_test_pb2.CreateBookRequest, _test_pb2.Book]
37
+ UpdateBook: _grpc.UnaryUnaryMultiCallable[_test_pb2.UpdateBookRequest, _test_pb2.Book]
38
+ DeleteBook: _grpc.UnaryUnaryMultiCallable[_test_pb2.DeleteBookRequest, _empty_pb2.Empty]
39
+ ListBooks: _grpc.UnaryUnaryMultiCallable[_test_pb2.ListBooksRequest, _test_pb2.ListBooksResponse]
40
+
41
+ @_typing.type_check_only
42
+ class BookServiceAsyncStub(BookServiceStub):
43
+ def __init__(self, channel: _aio.Channel) -> None: ...
44
+ GetBook: _aio.UnaryUnaryMultiCallable[_test_pb2.GetBookRequest, _test_pb2.Book] # type: ignore[assignment]
45
+ CreateBook: _aio.UnaryUnaryMultiCallable[_test_pb2.CreateBookRequest, _test_pb2.Book] # type: ignore[assignment]
46
+ UpdateBook: _aio.UnaryUnaryMultiCallable[_test_pb2.UpdateBookRequest, _test_pb2.Book] # type: ignore[assignment]
47
+ DeleteBook: _aio.UnaryUnaryMultiCallable[_test_pb2.DeleteBookRequest, _empty_pb2.Empty] # type: ignore[assignment]
48
+ ListBooks: _aio.UnaryUnaryMultiCallable[_test_pb2.ListBooksRequest, _test_pb2.ListBooksResponse] # type: ignore[assignment]
49
+
50
+ class BookServiceServicer(metaclass=_abc_1.ABCMeta):
51
+ @_abc_1.abstractmethod
52
+ def GetBook(
53
+ self,
54
+ request: _test_pb2.GetBookRequest,
55
+ context: _ServicerContext,
56
+ ) -> _typing.Union[_test_pb2.Book, _abc.Awaitable[_test_pb2.Book]]: ...
57
+
58
+ @_abc_1.abstractmethod
59
+ def CreateBook(
60
+ self,
61
+ request: _test_pb2.CreateBookRequest,
62
+ context: _ServicerContext,
63
+ ) -> _typing.Union[_test_pb2.Book, _abc.Awaitable[_test_pb2.Book]]: ...
64
+
65
+ @_abc_1.abstractmethod
66
+ def UpdateBook(
67
+ self,
68
+ request: _test_pb2.UpdateBookRequest,
69
+ context: _ServicerContext,
70
+ ) -> _typing.Union[_test_pb2.Book, _abc.Awaitable[_test_pb2.Book]]: ...
71
+
72
+ @_abc_1.abstractmethod
73
+ def DeleteBook(
74
+ self,
75
+ request: _test_pb2.DeleteBookRequest,
76
+ context: _ServicerContext,
77
+ ) -> _typing.Union[_empty_pb2.Empty, _abc.Awaitable[_empty_pb2.Empty]]: ...
78
+
79
+ @_abc_1.abstractmethod
80
+ def ListBooks(
81
+ self,
82
+ request: _test_pb2.ListBooksRequest,
83
+ context: _ServicerContext,
84
+ ) -> _typing.Union[_test_pb2.ListBooksResponse, _abc.Awaitable[_test_pb2.ListBooksResponse]]: ...
85
+
86
+ def add_BookServiceServicer_to_server(servicer: BookServiceServicer, server: _typing.Union[_grpc.Server, _aio.Server]) -> None: ...
@@ -0,0 +1,49 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: alis/open/validation/v1/validation.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'alis/open/validation/v1/validation.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(alis/open/validation/v1/validation.proto\x12\x17\x61lis.open.validation.v1\"1\n\x14RetrieveRulesRequest\x12\x19\n\x08msg_type\x18\x01 \x01(\tR\x07msgType\"L\n\x15RetrieveRulesResponse\x12\x33\n\x05rules\x18\x01 \x03(\x0b\x32\x1d.alis.open.validation.v1.RuleR\x05rules\"f\n\x16ValidateMessageRequest\x12\x19\n\x08msg_type\x18\x01 \x01(\tR\x07msgType\x12\x10\n\x03msg\x18\x02 \x01(\x0cR\x03msg\x12\x1f\n\x0b\x66ield_paths\x18\x03 \x03(\tR\nfieldPaths\"\xb1\x01\n\x17ValidateMessageResponse\x12\x44\n\x0eviolated_rules\x18\x01 \x03(\x0b\x32\x1d.alis.open.validation.v1.RuleR\rviolatedRules\x12P\n\x0fviolated_fields\x18\x02 \x03(\x0b\x32\'.alis.open.validation.v1.FieldViolationR\x0eviolatedFields\"\x9b\x01\n\x04Rule\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x1f\n\x0b\x66ield_paths\x18\x03 \x03(\tR\nfieldPaths\x12@\n\x0cnested_rules\x18\x04 \x03(\x0b\x32\x1d.alis.open.validation.v1.RuleR\x0bnestedRules\"u\n\x0e\x46ieldViolation\x12\x1d\n\nfield_path\x18\x01 \x01(\tR\tfieldPath\x12\x44\n\x0eviolated_rules\x18\x02 \x03(\x0b\x32\x1d.alis.open.validation.v1.RuleR\rviolatedRules2\xfd\x01\n\x11ValidationService\x12p\n\rRetrieveRules\x12-.alis.open.validation.v1.RetrieveRulesRequest\x1a..alis.open.validation.v1.RetrieveRulesResponse\"\x00\x12v\n\x0fValidateMessage\x12/.alis.open.validation.v1.ValidateMessageRequest\x1a\x30.alis.open.validation.v1.ValidateMessageResponse\"\x00\x42+Z)go.alis.build/common/alis/open/validationb\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'alis.open.validation.v1.validation_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'Z)go.alis.build/common/alis/open/validation'
35
+ _globals['_RETRIEVERULESREQUEST']._serialized_start=69
36
+ _globals['_RETRIEVERULESREQUEST']._serialized_end=118
37
+ _globals['_RETRIEVERULESRESPONSE']._serialized_start=120
38
+ _globals['_RETRIEVERULESRESPONSE']._serialized_end=196
39
+ _globals['_VALIDATEMESSAGEREQUEST']._serialized_start=198
40
+ _globals['_VALIDATEMESSAGEREQUEST']._serialized_end=300
41
+ _globals['_VALIDATEMESSAGERESPONSE']._serialized_start=303
42
+ _globals['_VALIDATEMESSAGERESPONSE']._serialized_end=480
43
+ _globals['_RULE']._serialized_start=483
44
+ _globals['_RULE']._serialized_end=638
45
+ _globals['_FIELDVIOLATION']._serialized_start=640
46
+ _globals['_FIELDVIOLATION']._serialized_end=757
47
+ _globals['_VALIDATIONSERVICE']._serialized_start=760
48
+ _globals['_VALIDATIONSERVICE']._serialized_end=1013
49
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,161 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ from collections import abc as _abc
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import message as _message
9
+ from google.protobuf.internal import containers as _containers
10
+ import builtins as _builtins
11
+ import sys
12
+ import typing as _typing
13
+
14
+ if sys.version_info >= (3, 11):
15
+ from typing import TypeAlias as _TypeAlias, Never as _Never
16
+ else:
17
+ from typing_extensions import TypeAlias as _TypeAlias, Never as _Never
18
+
19
+ DESCRIPTOR: _descriptor.FileDescriptor
20
+
21
+ @_typing.final
22
+ class RetrieveRulesRequest(_message.Message):
23
+ DESCRIPTOR: _descriptor.Descriptor
24
+
25
+ MSG_TYPE_FIELD_NUMBER: _builtins.int
26
+ msg_type: _builtins.str
27
+ def __init__(
28
+ self,
29
+ *,
30
+ msg_type: _builtins.str = ...,
31
+ ) -> None: ...
32
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
33
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
34
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["msg_type", b"msg_type"] # noqa: Y015
35
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
36
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
37
+
38
+ Global___RetrieveRulesRequest: _TypeAlias = RetrieveRulesRequest # noqa: Y015
39
+
40
+ @_typing.final
41
+ class RetrieveRulesResponse(_message.Message):
42
+ DESCRIPTOR: _descriptor.Descriptor
43
+
44
+ RULES_FIELD_NUMBER: _builtins.int
45
+ @_builtins.property
46
+ def rules(self) -> _containers.RepeatedCompositeFieldContainer[Global___Rule]: ...
47
+ def __init__(
48
+ self,
49
+ *,
50
+ rules: _abc.Iterable[Global___Rule] | None = ...,
51
+ ) -> None: ...
52
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
53
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
54
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["rules", b"rules"] # noqa: Y015
55
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
56
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
57
+
58
+ Global___RetrieveRulesResponse: _TypeAlias = RetrieveRulesResponse # noqa: Y015
59
+
60
+ @_typing.final
61
+ class ValidateMessageRequest(_message.Message):
62
+ DESCRIPTOR: _descriptor.Descriptor
63
+
64
+ MSG_TYPE_FIELD_NUMBER: _builtins.int
65
+ MSG_FIELD_NUMBER: _builtins.int
66
+ FIELD_PATHS_FIELD_NUMBER: _builtins.int
67
+ msg_type: _builtins.str
68
+ msg: _builtins.bytes
69
+ @_builtins.property
70
+ def field_paths(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
71
+ def __init__(
72
+ self,
73
+ *,
74
+ msg_type: _builtins.str = ...,
75
+ msg: _builtins.bytes = ...,
76
+ field_paths: _abc.Iterable[_builtins.str] | None = ...,
77
+ ) -> None: ...
78
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
79
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
80
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["field_paths", b"field_paths", "msg", b"msg", "msg_type", b"msg_type"] # noqa: Y015
81
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
82
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
83
+
84
+ Global___ValidateMessageRequest: _TypeAlias = ValidateMessageRequest # noqa: Y015
85
+
86
+ @_typing.final
87
+ class ValidateMessageResponse(_message.Message):
88
+ DESCRIPTOR: _descriptor.Descriptor
89
+
90
+ VIOLATED_RULES_FIELD_NUMBER: _builtins.int
91
+ VIOLATED_FIELDS_FIELD_NUMBER: _builtins.int
92
+ @_builtins.property
93
+ def violated_rules(self) -> _containers.RepeatedCompositeFieldContainer[Global___Rule]: ...
94
+ @_builtins.property
95
+ def violated_fields(self) -> _containers.RepeatedCompositeFieldContainer[Global___FieldViolation]: ...
96
+ def __init__(
97
+ self,
98
+ *,
99
+ violated_rules: _abc.Iterable[Global___Rule] | None = ...,
100
+ violated_fields: _abc.Iterable[Global___FieldViolation] | None = ...,
101
+ ) -> None: ...
102
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
103
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
104
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["violated_fields", b"violated_fields", "violated_rules", b"violated_rules"] # noqa: Y015
105
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
106
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
107
+
108
+ Global___ValidateMessageResponse: _TypeAlias = ValidateMessageResponse # noqa: Y015
109
+
110
+ @_typing.final
111
+ class Rule(_message.Message):
112
+ DESCRIPTOR: _descriptor.Descriptor
113
+
114
+ ID_FIELD_NUMBER: _builtins.int
115
+ DESCRIPTION_FIELD_NUMBER: _builtins.int
116
+ FIELD_PATHS_FIELD_NUMBER: _builtins.int
117
+ NESTED_RULES_FIELD_NUMBER: _builtins.int
118
+ id: _builtins.str
119
+ description: _builtins.str
120
+ @_builtins.property
121
+ def field_paths(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
122
+ @_builtins.property
123
+ def nested_rules(self) -> _containers.RepeatedCompositeFieldContainer[Global___Rule]: ...
124
+ def __init__(
125
+ self,
126
+ *,
127
+ id: _builtins.str = ...,
128
+ description: _builtins.str = ...,
129
+ field_paths: _abc.Iterable[_builtins.str] | None = ...,
130
+ nested_rules: _abc.Iterable[Global___Rule] | None = ...,
131
+ ) -> None: ...
132
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
133
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
134
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "field_paths", b"field_paths", "id", b"id", "nested_rules", b"nested_rules"] # noqa: Y015
135
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
136
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
137
+
138
+ Global___Rule: _TypeAlias = Rule # noqa: Y015
139
+
140
+ @_typing.final
141
+ class FieldViolation(_message.Message):
142
+ DESCRIPTOR: _descriptor.Descriptor
143
+
144
+ FIELD_PATH_FIELD_NUMBER: _builtins.int
145
+ VIOLATED_RULES_FIELD_NUMBER: _builtins.int
146
+ field_path: _builtins.str
147
+ @_builtins.property
148
+ def violated_rules(self) -> _containers.RepeatedCompositeFieldContainer[Global___Rule]: ...
149
+ def __init__(
150
+ self,
151
+ *,
152
+ field_path: _builtins.str = ...,
153
+ violated_rules: _abc.Iterable[Global___Rule] | None = ...,
154
+ ) -> None: ...
155
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
156
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
157
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["field_path", b"field_path", "violated_rules", b"violated_rules"] # noqa: Y015
158
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
159
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
160
+
161
+ Global___FieldViolation: _TypeAlias = FieldViolation # noqa: Y015
@@ -0,0 +1,140 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from alis.open.validation.v1 import validation_pb2 as alis_dot_open_dot_validation_dot_v1_dot_validation__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.81.1'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + ' but the generated code in alis/open/validation/v1/validation_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class ValidationServiceStub:
29
+ """Missing associated documentation comment in .proto file."""
30
+
31
+ def __init__(self, channel):
32
+ """Constructor.
33
+
34
+ Args:
35
+ channel: A grpc.Channel.
36
+ """
37
+ self.RetrieveRules = channel.unary_unary(
38
+ '/alis.open.validation.v1.ValidationService/RetrieveRules',
39
+ request_serializer=alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.RetrieveRulesRequest.SerializeToString,
40
+ response_deserializer=alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.RetrieveRulesResponse.FromString,
41
+ _registered_method=True)
42
+ self.ValidateMessage = channel.unary_unary(
43
+ '/alis.open.validation.v1.ValidationService/ValidateMessage',
44
+ request_serializer=alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.ValidateMessageRequest.SerializeToString,
45
+ response_deserializer=alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.ValidateMessageResponse.FromString,
46
+ _registered_method=True)
47
+
48
+
49
+ class ValidationServiceServicer:
50
+ """Missing associated documentation comment in .proto file."""
51
+
52
+ def RetrieveRules(self, request, context):
53
+ """Missing associated documentation comment in .proto file."""
54
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
55
+ context.set_details('Method not implemented!')
56
+ raise NotImplementedError('Method not implemented!')
57
+
58
+ def ValidateMessage(self, request, context):
59
+ """Missing associated documentation comment in .proto file."""
60
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
61
+ context.set_details('Method not implemented!')
62
+ raise NotImplementedError('Method not implemented!')
63
+
64
+
65
+ def add_ValidationServiceServicer_to_server(servicer, server):
66
+ rpc_method_handlers = {
67
+ 'RetrieveRules': grpc.unary_unary_rpc_method_handler(
68
+ servicer.RetrieveRules,
69
+ request_deserializer=alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.RetrieveRulesRequest.FromString,
70
+ response_serializer=alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.RetrieveRulesResponse.SerializeToString,
71
+ ),
72
+ 'ValidateMessage': grpc.unary_unary_rpc_method_handler(
73
+ servicer.ValidateMessage,
74
+ request_deserializer=alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.ValidateMessageRequest.FromString,
75
+ response_serializer=alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.ValidateMessageResponse.SerializeToString,
76
+ ),
77
+ }
78
+ generic_handler = grpc.method_handlers_generic_handler(
79
+ 'alis.open.validation.v1.ValidationService', rpc_method_handlers)
80
+ server.add_generic_rpc_handlers((generic_handler,))
81
+ server.add_registered_method_handlers('alis.open.validation.v1.ValidationService', rpc_method_handlers)
82
+
83
+
84
+ # This class is part of an EXPERIMENTAL API.
85
+ class ValidationService:
86
+ """Missing associated documentation comment in .proto file."""
87
+
88
+ @staticmethod
89
+ def RetrieveRules(request,
90
+ target,
91
+ options=(),
92
+ channel_credentials=None,
93
+ call_credentials=None,
94
+ insecure=False,
95
+ compression=None,
96
+ wait_for_ready=None,
97
+ timeout=None,
98
+ metadata=None):
99
+ return grpc.experimental.unary_unary(
100
+ request,
101
+ target,
102
+ '/alis.open.validation.v1.ValidationService/RetrieveRules',
103
+ alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.RetrieveRulesRequest.SerializeToString,
104
+ alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.RetrieveRulesResponse.FromString,
105
+ options,
106
+ channel_credentials,
107
+ insecure,
108
+ call_credentials,
109
+ compression,
110
+ wait_for_ready,
111
+ timeout,
112
+ metadata,
113
+ _registered_method=True)
114
+
115
+ @staticmethod
116
+ def ValidateMessage(request,
117
+ target,
118
+ options=(),
119
+ channel_credentials=None,
120
+ call_credentials=None,
121
+ insecure=False,
122
+ compression=None,
123
+ wait_for_ready=None,
124
+ timeout=None,
125
+ metadata=None):
126
+ return grpc.experimental.unary_unary(
127
+ request,
128
+ target,
129
+ '/alis.open.validation.v1.ValidationService/ValidateMessage',
130
+ alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.ValidateMessageRequest.SerializeToString,
131
+ alis_dot_open_dot_validation_dot_v1_dot_validation__pb2.ValidateMessageResponse.FromString,
132
+ options,
133
+ channel_credentials,
134
+ insecure,
135
+ call_credentials,
136
+ compression,
137
+ wait_for_ready,
138
+ timeout,
139
+ metadata,
140
+ _registered_method=True)
@@ -0,0 +1,58 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ from alis.open.validation.v1 import validation_pb2 as _validation_pb2
7
+ from collections import abc as _abc
8
+ from grpc import aio as _aio
9
+ import abc as _abc_1
10
+ import grpc as _grpc
11
+ import sys
12
+ import typing as _typing
13
+
14
+ if sys.version_info >= (3, 11):
15
+ from typing import Self as _Self
16
+ else:
17
+ from typing_extensions import Self as _Self
18
+
19
+ _T = _typing.TypeVar("_T")
20
+
21
+ class _MaybeAsyncIterator(_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta): ...
22
+
23
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
24
+ ...
25
+
26
+ GRPC_GENERATED_VERSION: str
27
+ GRPC_VERSION: str
28
+
29
+ class ValidationServiceStub:
30
+ @_typing.overload
31
+ def __new__(cls, channel: _grpc.Channel) -> _Self: ...
32
+ @_typing.overload
33
+ def __new__(cls, channel: _aio.Channel) -> ValidationServiceAsyncStub: ...
34
+ RetrieveRules: _grpc.UnaryUnaryMultiCallable[_validation_pb2.RetrieveRulesRequest, _validation_pb2.RetrieveRulesResponse]
35
+ ValidateMessage: _grpc.UnaryUnaryMultiCallable[_validation_pb2.ValidateMessageRequest, _validation_pb2.ValidateMessageResponse]
36
+
37
+ @_typing.type_check_only
38
+ class ValidationServiceAsyncStub(ValidationServiceStub):
39
+ def __init__(self, channel: _aio.Channel) -> None: ...
40
+ RetrieveRules: _aio.UnaryUnaryMultiCallable[_validation_pb2.RetrieveRulesRequest, _validation_pb2.RetrieveRulesResponse] # type: ignore[assignment]
41
+ ValidateMessage: _aio.UnaryUnaryMultiCallable[_validation_pb2.ValidateMessageRequest, _validation_pb2.ValidateMessageResponse] # type: ignore[assignment]
42
+
43
+ class ValidationServiceServicer(metaclass=_abc_1.ABCMeta):
44
+ @_abc_1.abstractmethod
45
+ def RetrieveRules(
46
+ self,
47
+ request: _validation_pb2.RetrieveRulesRequest,
48
+ context: _ServicerContext,
49
+ ) -> _typing.Union[_validation_pb2.RetrieveRulesResponse, _abc.Awaitable[_validation_pb2.RetrieveRulesResponse]]: ...
50
+
51
+ @_abc_1.abstractmethod
52
+ def ValidateMessage(
53
+ self,
54
+ request: _validation_pb2.ValidateMessageRequest,
55
+ context: _ServicerContext,
56
+ ) -> _typing.Union[_validation_pb2.ValidateMessageResponse, _abc.Awaitable[_validation_pb2.ValidateMessageResponse]]: ...
57
+
58
+ def add_ValidationServiceServicer_to_server(servicer: ValidationServiceServicer, server: _typing.Union[_grpc.Server, _aio.Server]) -> None: ...
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: alis.open.validation.v1
3
+ Version: 1.2.0
4
+ Summary: Protobufs generated by Alis Build
5
+ Requires-Dist: google-common-protos>=0.0.1
6
+ Requires-Dist: alis-services-protobuf-open>=1.176.0
7
+ Dynamic: requires-dist
8
+ Dynamic: summary
@@ -0,0 +1,22 @@
1
+ setup.py
2
+ alis/__init__.py
3
+ alis/__init__.pyi
4
+ alis.open.validation.v1.egg-info/PKG-INFO
5
+ alis.open.validation.v1.egg-info/SOURCES.txt
6
+ alis.open.validation.v1.egg-info/dependency_links.txt
7
+ alis.open.validation.v1.egg-info/requires.txt
8
+ alis.open.validation.v1.egg-info/top_level.txt
9
+ alis/open/__init__.py
10
+ alis/open/__init__.pyi
11
+ alis/open/validation/__init__.py
12
+ alis/open/validation/__init__.pyi
13
+ alis/open/validation/v1/__init__.py
14
+ alis/open/validation/v1/__init__.pyi
15
+ alis/open/validation/v1/test_pb2.py
16
+ alis/open/validation/v1/test_pb2.pyi
17
+ alis/open/validation/v1/test_pb2_grpc.py
18
+ alis/open/validation/v1/test_pb2_grpc.pyi
19
+ alis/open/validation/v1/validation_pb2.py
20
+ alis/open/validation/v1/validation_pb2.pyi
21
+ alis/open/validation/v1/validation_pb2_grpc.py
22
+ alis/open/validation/v1/validation_pb2_grpc.pyi
@@ -0,0 +1,2 @@
1
+ google-common-protos>=0.0.1
2
+ alis-services-protobuf-open>=1.176.0
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,38 @@
1
+ import setuptools
2
+ import os
3
+ import glob
4
+
5
+ def find_package_data(base, globs, root="alis_protobuf"):
6
+ """Find all interesting data files, for setup(package_data=)
7
+ Arguments:
8
+ root: The directory to search in.
9
+ globs: A list of glob patterns to accept files.
10
+ """
11
+
12
+ rv_dirs = [root for root, dirs, files in os.walk(base)]
13
+ rv = []
14
+ for rv_dir in rv_dirs:
15
+ files = []
16
+ for pat in globs:
17
+ files += glob.glob(os.path.join(rv_dir, pat))
18
+ if not files:
19
+ continue
20
+ rv.extend([os.path.relpath(f, root) for f in files])
21
+ return rv
22
+
23
+ package_data = find_package_data("alis_protobuf", ["*.py", "*.pyi"])
24
+
25
+ setuptools.setup(
26
+ name="alis.open.validation.v1",
27
+ version="1.2.0",
28
+ description="Protobufs generated by Alis Build",
29
+ packages=setuptools.find_packages(),
30
+ include_package_data=True,
31
+ package_data={ # Optional
32
+ "alis_protobuf": package_data,
33
+ },
34
+ install_requires=[
35
+ 'google-common-protos>=0.0.1',
36
+ 'alis-services-protobuf-open>=1.176.0'
37
+ ]
38
+ )