alis.open.support.v1 1.4.0__py3-none-any.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.
Files changed (37) hide show
  1. alis/__init__.py +1 -0
  2. alis/__init__.pyi +1 -0
  3. alis/open/__init__.py +1 -0
  4. alis/open/__init__.pyi +1 -0
  5. alis/open/support/__init__.py +1 -0
  6. alis/open/support/__init__.pyi +1 -0
  7. alis/open/support/v1/__init__.py +27 -0
  8. alis/open/support/v1/__init__.pyi +27 -0
  9. alis/open/support/v1/attachments_pb2.py +41 -0
  10. alis/open/support/v1/attachments_pb2.pyi +58 -0
  11. alis/open/support/v1/attachments_pb2_grpc.py +97 -0
  12. alis/open/support/v1/attachments_pb2_grpc.pyi +49 -0
  13. alis/open/support/v1/events_pb2.py +57 -0
  14. alis/open/support/v1/events_pb2.pyi +198 -0
  15. alis/open/support/v1/events_pb2_grpc.py +98 -0
  16. alis/open/support/v1/events_pb2_grpc.pyi +50 -0
  17. alis/open/support/v1/guide_pb2.py +78 -0
  18. alis/open/support/v1/guide_pb2.pyi +494 -0
  19. alis/open/support/v1/guide_pb2_grpc.py +270 -0
  20. alis/open/support/v1/guide_pb2_grpc.pyi +86 -0
  21. alis/open/support/v1/issue_pb2.py +88 -0
  22. alis/open/support/v1/issue_pb2.pyi +539 -0
  23. alis/open/support/v1/issue_pb2_grpc.py +790 -0
  24. alis/open/support/v1/issue_pb2_grpc.pyi +198 -0
  25. alis/open/support/v1/issueactivity_pb2.py +64 -0
  26. alis/open/support/v1/issueactivity_pb2.pyi +304 -0
  27. alis/open/support/v1/issueactivity_pb2_grpc.py +486 -0
  28. alis/open/support/v1/issueactivity_pb2_grpc.pyi +132 -0
  29. alis/open/support/v1/issuesubscriber_pb2.py +56 -0
  30. alis/open/support/v1/issuesubscriber_pb2.pyi +170 -0
  31. alis/open/support/v1/issuesubscriber_pb2_grpc.py +532 -0
  32. alis/open/support/v1/issuesubscriber_pb2_grpc.pyi +144 -0
  33. alis/open/support/v1/py.typed +0 -0
  34. alis_open_support_v1-1.4.0.dist-info/METADATA +26 -0
  35. alis_open_support_v1-1.4.0.dist-info/RECORD +37 -0
  36. alis_open_support_v1-1.4.0.dist-info/WHEEL +5 -0
  37. alis_open_support_v1-1.4.0.dist-info/top_level.txt +1 -0
alis/__init__.py ADDED
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
alis/__init__.pyi ADDED
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
alis/open/__init__.py ADDED
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
alis/open/__init__.pyi ADDED
@@ -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,27 @@
1
+ from . import attachments_pb2 as attachments_pb2
2
+ from . import attachments_pb2_grpc as attachments_pb2_grpc
3
+ from . import events_pb2 as events_pb2
4
+ from . import events_pb2_grpc as events_pb2_grpc
5
+ from . import guide_pb2 as guide_pb2
6
+ from . import guide_pb2_grpc as guide_pb2_grpc
7
+ from . import issue_pb2 as issue_pb2
8
+ from . import issue_pb2_grpc as issue_pb2_grpc
9
+ from . import issueactivity_pb2 as issueactivity_pb2
10
+ from . import issueactivity_pb2_grpc as issueactivity_pb2_grpc
11
+ from . import issuesubscriber_pb2 as issuesubscriber_pb2
12
+ from . import issuesubscriber_pb2_grpc as issuesubscriber_pb2_grpc
13
+
14
+ __all__ = [
15
+ "attachments_pb2",
16
+ "attachments_pb2_grpc",
17
+ "events_pb2",
18
+ "events_pb2_grpc",
19
+ "guide_pb2",
20
+ "guide_pb2_grpc",
21
+ "issue_pb2",
22
+ "issue_pb2_grpc",
23
+ "issueactivity_pb2",
24
+ "issueactivity_pb2_grpc",
25
+ "issuesubscriber_pb2",
26
+ "issuesubscriber_pb2_grpc",
27
+ ]
@@ -0,0 +1,27 @@
1
+ from . import attachments_pb2 as attachments_pb2
2
+ from . import attachments_pb2_grpc as attachments_pb2_grpc
3
+ from . import events_pb2 as events_pb2
4
+ from . import events_pb2_grpc as events_pb2_grpc
5
+ from . import guide_pb2 as guide_pb2
6
+ from . import guide_pb2_grpc as guide_pb2_grpc
7
+ from . import issue_pb2 as issue_pb2
8
+ from . import issue_pb2_grpc as issue_pb2_grpc
9
+ from . import issueactivity_pb2 as issueactivity_pb2
10
+ from . import issueactivity_pb2_grpc as issueactivity_pb2_grpc
11
+ from . import issuesubscriber_pb2 as issuesubscriber_pb2
12
+ from . import issuesubscriber_pb2_grpc as issuesubscriber_pb2_grpc
13
+
14
+ __all__ = [
15
+ "attachments_pb2",
16
+ "attachments_pb2_grpc",
17
+ "events_pb2",
18
+ "events_pb2_grpc",
19
+ "guide_pb2",
20
+ "guide_pb2_grpc",
21
+ "issue_pb2",
22
+ "issue_pb2_grpc",
23
+ "issueactivity_pb2",
24
+ "issueactivity_pb2_grpc",
25
+ "issuesubscriber_pb2",
26
+ "issuesubscriber_pb2_grpc",
27
+ ]
@@ -0,0 +1,41 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: alis/open/support/v1/attachments.proto
5
+ # Protobuf Python Version: 7.35.1
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
+ 7,
15
+ 35,
16
+ 1,
17
+ '',
18
+ 'alis/open/support/v1/attachments.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/support/v1/attachments.proto\x12\x14\x61lis.open.support.v1\"E\n\x12UploadImageRequest\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61ta\x12\x1b\n\tmime_type\x18\x02 \x01(\tR\x08mimeType\"4\n\x13UploadImageResponse\x12\x1d\n\npublic_uri\x18\x01 \x01(\tR\tpublicUri2\x80\x01\n\x18PublicAttachmentsService\x12\x64\n\x0bUploadImage\x12(.alis.open.support.v1.UploadImageRequest\x1a).alis.open.support.v1.UploadImageResponse\"\x00\x42(Z&go.alis.build/common/alis/open/supportb\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'alis.open.support.v1.attachments_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/support'
35
+ _globals['_UPLOADIMAGEREQUEST']._serialized_start=64
36
+ _globals['_UPLOADIMAGEREQUEST']._serialized_end=133
37
+ _globals['_UPLOADIMAGERESPONSE']._serialized_start=135
38
+ _globals['_UPLOADIMAGERESPONSE']._serialized_end=187
39
+ _globals['_PUBLICATTACHMENTSSERVICE']._serialized_start=190
40
+ _globals['_PUBLICATTACHMENTSSERVICE']._serialized_end=318
41
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,58 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import message as _message
8
+ import builtins as _builtins
9
+ import sys
10
+ import typing as _typing
11
+
12
+ if sys.version_info >= (3, 11):
13
+ from typing import TypeAlias as _TypeAlias, Never as _Never
14
+ else:
15
+ from typing_extensions import TypeAlias as _TypeAlias, Never as _Never
16
+
17
+ DESCRIPTOR: _descriptor.FileDescriptor
18
+
19
+ @_typing.final
20
+ class UploadImageRequest(_message.Message):
21
+ DESCRIPTOR: _descriptor.Descriptor
22
+
23
+ DATA_FIELD_NUMBER: _builtins.int
24
+ MIME_TYPE_FIELD_NUMBER: _builtins.int
25
+ data: _builtins.bytes
26
+ mime_type: _builtins.str
27
+ def __init__(
28
+ self,
29
+ *,
30
+ data: _builtins.bytes = ...,
31
+ mime_type: _builtins.str = ...,
32
+ ) -> None: ...
33
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
34
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
35
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "mime_type", b"mime_type"] # noqa: Y015
36
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
37
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
38
+
39
+ Global___UploadImageRequest: _TypeAlias = UploadImageRequest # noqa: Y015
40
+
41
+ @_typing.final
42
+ class UploadImageResponse(_message.Message):
43
+ DESCRIPTOR: _descriptor.Descriptor
44
+
45
+ PUBLIC_URI_FIELD_NUMBER: _builtins.int
46
+ public_uri: _builtins.str
47
+ def __init__(
48
+ self,
49
+ *,
50
+ public_uri: _builtins.str = ...,
51
+ ) -> None: ...
52
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
53
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
54
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["public_uri", b"public_uri"] # noqa: Y015
55
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
56
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
57
+
58
+ Global___UploadImageResponse: _TypeAlias = UploadImageResponse # noqa: Y015
@@ -0,0 +1,97 @@
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.support.v1 import attachments_pb2 as alis_dot_open_dot_support_dot_v1_dot_attachments__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.83.0'
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/support/v1/attachments_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 PublicAttachmentsServiceStub:
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.UploadImage = channel.unary_unary(
38
+ '/alis.open.support.v1.PublicAttachmentsService/UploadImage',
39
+ request_serializer=alis_dot_open_dot_support_dot_v1_dot_attachments__pb2.UploadImageRequest.SerializeToString,
40
+ response_deserializer=alis_dot_open_dot_support_dot_v1_dot_attachments__pb2.UploadImageResponse.FromString,
41
+ _registered_method=True)
42
+
43
+
44
+ class PublicAttachmentsServiceServicer:
45
+ """Missing associated documentation comment in .proto file."""
46
+
47
+ def UploadImage(self, request, context):
48
+ """Missing associated documentation comment in .proto file."""
49
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
50
+ context.set_details('Method not implemented!')
51
+ raise NotImplementedError('Method not implemented!')
52
+
53
+
54
+ def add_PublicAttachmentsServiceServicer_to_server(servicer, server):
55
+ rpc_method_handlers = {
56
+ 'UploadImage': grpc.unary_unary_rpc_method_handler(
57
+ servicer.UploadImage,
58
+ request_deserializer=alis_dot_open_dot_support_dot_v1_dot_attachments__pb2.UploadImageRequest.FromString,
59
+ response_serializer=alis_dot_open_dot_support_dot_v1_dot_attachments__pb2.UploadImageResponse.SerializeToString,
60
+ ),
61
+ }
62
+ generic_handler = grpc.method_handlers_generic_handler(
63
+ 'alis.open.support.v1.PublicAttachmentsService', rpc_method_handlers)
64
+ server.add_generic_rpc_handlers((generic_handler,))
65
+ server.add_registered_method_handlers('alis.open.support.v1.PublicAttachmentsService', rpc_method_handlers)
66
+
67
+
68
+ # This class is part of an EXPERIMENTAL API.
69
+ class PublicAttachmentsService:
70
+ """Missing associated documentation comment in .proto file."""
71
+
72
+ @staticmethod
73
+ def UploadImage(request,
74
+ target,
75
+ options=(),
76
+ channel_credentials=None,
77
+ call_credentials=None,
78
+ insecure=False,
79
+ compression=None,
80
+ wait_for_ready=None,
81
+ timeout=None,
82
+ metadata=None):
83
+ return grpc.experimental.unary_unary(
84
+ request,
85
+ target,
86
+ '/alis.open.support.v1.PublicAttachmentsService/UploadImage',
87
+ alis_dot_open_dot_support_dot_v1_dot_attachments__pb2.UploadImageRequest.SerializeToString,
88
+ alis_dot_open_dot_support_dot_v1_dot_attachments__pb2.UploadImageResponse.FromString,
89
+ options,
90
+ channel_credentials,
91
+ insecure,
92
+ call_credentials,
93
+ compression,
94
+ wait_for_ready,
95
+ timeout,
96
+ metadata,
97
+ _registered_method=True)
@@ -0,0 +1,49 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ from alis.open.support.v1 import attachments_pb2 as _attachments_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 PublicAttachmentsServiceStub:
30
+ @_typing.overload
31
+ def __new__(cls, channel: _grpc.Channel) -> _Self: ...
32
+ @_typing.overload
33
+ def __new__(cls, channel: _aio.Channel) -> PublicAttachmentsServiceAsyncStub: ...
34
+ UploadImage: _grpc.UnaryUnaryMultiCallable[_attachments_pb2.UploadImageRequest, _attachments_pb2.UploadImageResponse]
35
+
36
+ @_typing.type_check_only
37
+ class PublicAttachmentsServiceAsyncStub(PublicAttachmentsServiceStub):
38
+ def __init__(self, channel: _aio.Channel) -> None: ...
39
+ UploadImage: _aio.UnaryUnaryMultiCallable[_attachments_pb2.UploadImageRequest, _attachments_pb2.UploadImageResponse] # type: ignore[assignment]
40
+
41
+ class PublicAttachmentsServiceServicer(metaclass=_abc_1.ABCMeta):
42
+ @_abc_1.abstractmethod
43
+ def UploadImage(
44
+ self,
45
+ request: _attachments_pb2.UploadImageRequest,
46
+ context: _ServicerContext,
47
+ ) -> _typing.Union[_attachments_pb2.UploadImageResponse, _abc.Awaitable[_attachments_pb2.UploadImageResponse]]: ...
48
+
49
+ def add_PublicAttachmentsServiceServicer_to_server(servicer: PublicAttachmentsServiceServicer, server: _typing.Union[_grpc.Server, _aio.Server]) -> None: ...
@@ -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/support/v1/events.proto
5
+ # Protobuf Python Version: 7.35.1
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
+ 7,
15
+ 35,
16
+ 1,
17
+ '',
18
+ 'alis/open/support/v1/events.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from alis.open.pubsub.v1 import pubsub_pb2 as alis_dot_open_dot_pubsub_dot_v1_dot_pubsub__pb2
26
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!alis/open/support/v1/events.proto\x12\x14\x61lis.open.support.v1\x1a alis/open/pubsub/v1/pubsub.proto\x1a\x1bgoogle/protobuf/empty.proto\")\n\x11IssueCreatedEvent\x12\x14\n\x05issue\x18\x01 \x01(\tR\x05issue\"d\n\x1bIssueRequestersChangedEvent\x12\x14\n\x05issue\x18\x01 \x01(\tR\x05issue\x12/\n\x13previous_requesters\x18\x02 \x03(\tR\x12previousRequesters\"a\n\x1aIssueAssigneesChangedEvent\x12\x14\n\x05issue\x18\x01 \x01(\tR\x05issue\x12-\n\x12previous_assignees\x18\x02 \x03(\tR\x11previousAssignees\"-\n\x15IssueTypeChangedEvent\x12\x14\n\x05issue\x18\x01 \x01(\tR\x05issue\"(\n\x10IssueClosedEvent\x12\x14\n\x05issue\x18\x01 \x01(\tR\x05issue\"*\n\x12IssueReopenedEvent\x12\x14\n\x05issue\x18\x01 \x01(\tR\x05issue\"(\n\x10IssueOnHoldEvent\x12\x14\n\x05issue\x18\x01 \x01(\tR\x05issue\")\n\x11IssueResumedEvent\x12\x14\n\x05issue\x18\x01 \x01(\tR\x05issue\"?\n\x16IssueCommentAddedEvent\x12%\n\x0eissue_activity\x18\x01 \x01(\tR\rissueActivity2\\\n\rEventsService\x12K\n\x0bHandleEvent\x12\".alis.open.pubsub.v1.PubSubMessage\x1a\x16.google.protobuf.Empty\"\x00\x42(Z&go.alis.build/common/alis/open/supportb\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'alis.open.support.v1.events_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'Z&go.alis.build/common/alis/open/support'
37
+ _globals['_ISSUECREATEDEVENT']._serialized_start=122
38
+ _globals['_ISSUECREATEDEVENT']._serialized_end=163
39
+ _globals['_ISSUEREQUESTERSCHANGEDEVENT']._serialized_start=165
40
+ _globals['_ISSUEREQUESTERSCHANGEDEVENT']._serialized_end=265
41
+ _globals['_ISSUEASSIGNEESCHANGEDEVENT']._serialized_start=267
42
+ _globals['_ISSUEASSIGNEESCHANGEDEVENT']._serialized_end=364
43
+ _globals['_ISSUETYPECHANGEDEVENT']._serialized_start=366
44
+ _globals['_ISSUETYPECHANGEDEVENT']._serialized_end=411
45
+ _globals['_ISSUECLOSEDEVENT']._serialized_start=413
46
+ _globals['_ISSUECLOSEDEVENT']._serialized_end=453
47
+ _globals['_ISSUEREOPENEDEVENT']._serialized_start=455
48
+ _globals['_ISSUEREOPENEDEVENT']._serialized_end=497
49
+ _globals['_ISSUEONHOLDEVENT']._serialized_start=499
50
+ _globals['_ISSUEONHOLDEVENT']._serialized_end=539
51
+ _globals['_ISSUERESUMEDEVENT']._serialized_start=541
52
+ _globals['_ISSUERESUMEDEVENT']._serialized_end=582
53
+ _globals['_ISSUECOMMENTADDEDEVENT']._serialized_start=584
54
+ _globals['_ISSUECOMMENTADDEDEVENT']._serialized_end=647
55
+ _globals['_EVENTSSERVICE']._serialized_start=649
56
+ _globals['_EVENTSSERVICE']._serialized_end=741
57
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,198 @@
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 IssueCreatedEvent(_message.Message):
23
+ DESCRIPTOR: _descriptor.Descriptor
24
+
25
+ ISSUE_FIELD_NUMBER: _builtins.int
26
+ issue: _builtins.str
27
+ def __init__(
28
+ self,
29
+ *,
30
+ issue: _builtins.str = ...,
31
+ ) -> None: ...
32
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
33
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
34
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["issue", b"issue"] # noqa: Y015
35
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
36
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
37
+
38
+ Global___IssueCreatedEvent: _TypeAlias = IssueCreatedEvent # noqa: Y015
39
+
40
+ @_typing.final
41
+ class IssueRequestersChangedEvent(_message.Message):
42
+ DESCRIPTOR: _descriptor.Descriptor
43
+
44
+ ISSUE_FIELD_NUMBER: _builtins.int
45
+ PREVIOUS_REQUESTERS_FIELD_NUMBER: _builtins.int
46
+ issue: _builtins.str
47
+ @_builtins.property
48
+ def previous_requesters(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
49
+ def __init__(
50
+ self,
51
+ *,
52
+ issue: _builtins.str = ...,
53
+ previous_requesters: _abc.Iterable[_builtins.str] | None = ...,
54
+ ) -> None: ...
55
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
56
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
57
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["issue", b"issue", "previous_requesters", b"previous_requesters"] # noqa: Y015
58
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
59
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
60
+
61
+ Global___IssueRequestersChangedEvent: _TypeAlias = IssueRequestersChangedEvent # noqa: Y015
62
+
63
+ @_typing.final
64
+ class IssueAssigneesChangedEvent(_message.Message):
65
+ DESCRIPTOR: _descriptor.Descriptor
66
+
67
+ ISSUE_FIELD_NUMBER: _builtins.int
68
+ PREVIOUS_ASSIGNEES_FIELD_NUMBER: _builtins.int
69
+ issue: _builtins.str
70
+ @_builtins.property
71
+ def previous_assignees(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
72
+ def __init__(
73
+ self,
74
+ *,
75
+ issue: _builtins.str = ...,
76
+ previous_assignees: _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["issue", b"issue", "previous_assignees", b"previous_assignees"] # noqa: Y015
81
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
82
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
83
+
84
+ Global___IssueAssigneesChangedEvent: _TypeAlias = IssueAssigneesChangedEvent # noqa: Y015
85
+
86
+ @_typing.final
87
+ class IssueTypeChangedEvent(_message.Message):
88
+ DESCRIPTOR: _descriptor.Descriptor
89
+
90
+ ISSUE_FIELD_NUMBER: _builtins.int
91
+ issue: _builtins.str
92
+ def __init__(
93
+ self,
94
+ *,
95
+ issue: _builtins.str = ...,
96
+ ) -> None: ...
97
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
98
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
99
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["issue", b"issue"] # noqa: Y015
100
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
101
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
102
+
103
+ Global___IssueTypeChangedEvent: _TypeAlias = IssueTypeChangedEvent # noqa: Y015
104
+
105
+ @_typing.final
106
+ class IssueClosedEvent(_message.Message):
107
+ DESCRIPTOR: _descriptor.Descriptor
108
+
109
+ ISSUE_FIELD_NUMBER: _builtins.int
110
+ issue: _builtins.str
111
+ def __init__(
112
+ self,
113
+ *,
114
+ issue: _builtins.str = ...,
115
+ ) -> None: ...
116
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
117
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
118
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["issue", b"issue"] # noqa: Y015
119
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
120
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
121
+
122
+ Global___IssueClosedEvent: _TypeAlias = IssueClosedEvent # noqa: Y015
123
+
124
+ @_typing.final
125
+ class IssueReopenedEvent(_message.Message):
126
+ DESCRIPTOR: _descriptor.Descriptor
127
+
128
+ ISSUE_FIELD_NUMBER: _builtins.int
129
+ issue: _builtins.str
130
+ def __init__(
131
+ self,
132
+ *,
133
+ issue: _builtins.str = ...,
134
+ ) -> None: ...
135
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
136
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
137
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["issue", b"issue"] # noqa: Y015
138
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
139
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
140
+
141
+ Global___IssueReopenedEvent: _TypeAlias = IssueReopenedEvent # noqa: Y015
142
+
143
+ @_typing.final
144
+ class IssueOnHoldEvent(_message.Message):
145
+ DESCRIPTOR: _descriptor.Descriptor
146
+
147
+ ISSUE_FIELD_NUMBER: _builtins.int
148
+ issue: _builtins.str
149
+ def __init__(
150
+ self,
151
+ *,
152
+ issue: _builtins.str = ...,
153
+ ) -> None: ...
154
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
155
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
156
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["issue", b"issue"] # noqa: Y015
157
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
158
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
159
+
160
+ Global___IssueOnHoldEvent: _TypeAlias = IssueOnHoldEvent # noqa: Y015
161
+
162
+ @_typing.final
163
+ class IssueResumedEvent(_message.Message):
164
+ DESCRIPTOR: _descriptor.Descriptor
165
+
166
+ ISSUE_FIELD_NUMBER: _builtins.int
167
+ issue: _builtins.str
168
+ def __init__(
169
+ self,
170
+ *,
171
+ issue: _builtins.str = ...,
172
+ ) -> None: ...
173
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
174
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
175
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["issue", b"issue"] # noqa: Y015
176
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
177
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
178
+
179
+ Global___IssueResumedEvent: _TypeAlias = IssueResumedEvent # noqa: Y015
180
+
181
+ @_typing.final
182
+ class IssueCommentAddedEvent(_message.Message):
183
+ DESCRIPTOR: _descriptor.Descriptor
184
+
185
+ ISSUE_ACTIVITY_FIELD_NUMBER: _builtins.int
186
+ issue_activity: _builtins.str
187
+ def __init__(
188
+ self,
189
+ *,
190
+ issue_activity: _builtins.str = ...,
191
+ ) -> None: ...
192
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
193
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
194
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["issue_activity", b"issue_activity"] # noqa: Y015
195
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
196
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
197
+
198
+ Global___IssueCommentAddedEvent: _TypeAlias = IssueCommentAddedEvent # noqa: Y015
@@ -0,0 +1,98 @@
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.pubsub.v1 import pubsub_pb2 as alis_dot_open_dot_pubsub_dot_v1_dot_pubsub__pb2
7
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
8
+
9
+ GRPC_GENERATED_VERSION = '1.83.0'
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/support/v1/events_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 EventsServiceStub:
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.HandleEvent = channel.unary_unary(
39
+ '/alis.open.support.v1.EventsService/HandleEvent',
40
+ request_serializer=alis_dot_open_dot_pubsub_dot_v1_dot_pubsub__pb2.PubSubMessage.SerializeToString,
41
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
42
+ _registered_method=True)
43
+
44
+
45
+ class EventsServiceServicer:
46
+ """Missing associated documentation comment in .proto file."""
47
+
48
+ def HandleEvent(self, request, context):
49
+ """Missing associated documentation comment in .proto file."""
50
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
51
+ context.set_details('Method not implemented!')
52
+ raise NotImplementedError('Method not implemented!')
53
+
54
+
55
+ def add_EventsServiceServicer_to_server(servicer, server):
56
+ rpc_method_handlers = {
57
+ 'HandleEvent': grpc.unary_unary_rpc_method_handler(
58
+ servicer.HandleEvent,
59
+ request_deserializer=alis_dot_open_dot_pubsub_dot_v1_dot_pubsub__pb2.PubSubMessage.FromString,
60
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
61
+ ),
62
+ }
63
+ generic_handler = grpc.method_handlers_generic_handler(
64
+ 'alis.open.support.v1.EventsService', rpc_method_handlers)
65
+ server.add_generic_rpc_handlers((generic_handler,))
66
+ server.add_registered_method_handlers('alis.open.support.v1.EventsService', rpc_method_handlers)
67
+
68
+
69
+ # This class is part of an EXPERIMENTAL API.
70
+ class EventsService:
71
+ """Missing associated documentation comment in .proto file."""
72
+
73
+ @staticmethod
74
+ def HandleEvent(request,
75
+ target,
76
+ options=(),
77
+ channel_credentials=None,
78
+ call_credentials=None,
79
+ insecure=False,
80
+ compression=None,
81
+ wait_for_ready=None,
82
+ timeout=None,
83
+ metadata=None):
84
+ return grpc.experimental.unary_unary(
85
+ request,
86
+ target,
87
+ '/alis.open.support.v1.EventsService/HandleEvent',
88
+ alis_dot_open_dot_pubsub_dot_v1_dot_pubsub__pb2.PubSubMessage.SerializeToString,
89
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
90
+ options,
91
+ channel_credentials,
92
+ insecure,
93
+ call_credentials,
94
+ compression,
95
+ wait_for_ready,
96
+ timeout,
97
+ metadata,
98
+ _registered_method=True)