Skip to content

Commit 44da9ae

Browse files
committed
chore: auto-gen by protobufs
triggered by commit: instill-ai/protobufs@d93908a
1 parent 9790ca7 commit 44da9ae

9 files changed

+1580
-126
lines changed

model/model/v1alpha/model_pb2.pyi

Lines changed: 196 additions & 126 deletions
Large diffs are not rendered by default.

model/model/v1alpha/model_ray_serve_pb2.py

Lines changed: 107 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model/model/v1alpha/model_ray_serve_pb2.pyi

Lines changed: 891 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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+
5+
from model.model.v1alpha import model_ray_serve_pb2 as model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2
6+
7+
8+
class RayServeAPIServiceStub(object):
9+
"""Missing associated documentation comment in .proto file."""
10+
11+
def __init__(self, channel):
12+
"""Constructor.
13+
14+
Args:
15+
channel: A grpc.Channel.
16+
"""
17+
self.ListApplications = channel.unary_unary(
18+
'/model.model.v1alpha.RayServeAPIService/ListApplications',
19+
request_serializer=model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.ListApplicationsRequest.SerializeToString,
20+
response_deserializer=model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.ListApplicationsResponse.FromString,
21+
)
22+
self.Healthz = channel.unary_unary(
23+
'/model.model.v1alpha.RayServeAPIService/Healthz',
24+
request_serializer=model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.HealthzRequest.SerializeToString,
25+
response_deserializer=model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.HealthzResponse.FromString,
26+
)
27+
28+
29+
class RayServeAPIServiceServicer(object):
30+
"""Missing associated documentation comment in .proto file."""
31+
32+
def ListApplications(self, request, context):
33+
"""Missing associated documentation comment in .proto file."""
34+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
35+
context.set_details('Method not implemented!')
36+
raise NotImplementedError('Method not implemented!')
37+
38+
def Healthz(self, request, context):
39+
"""Missing associated documentation comment in .proto file."""
40+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
41+
context.set_details('Method not implemented!')
42+
raise NotImplementedError('Method not implemented!')
43+
44+
45+
def add_RayServeAPIServiceServicer_to_server(servicer, server):
46+
rpc_method_handlers = {
47+
'ListApplications': grpc.unary_unary_rpc_method_handler(
48+
servicer.ListApplications,
49+
request_deserializer=model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.ListApplicationsRequest.FromString,
50+
response_serializer=model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.ListApplicationsResponse.SerializeToString,
51+
),
52+
'Healthz': grpc.unary_unary_rpc_method_handler(
53+
servicer.Healthz,
54+
request_deserializer=model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.HealthzRequest.FromString,
55+
response_serializer=model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.HealthzResponse.SerializeToString,
56+
),
57+
}
58+
generic_handler = grpc.method_handlers_generic_handler(
59+
'model.model.v1alpha.RayServeAPIService', rpc_method_handlers)
60+
server.add_generic_rpc_handlers((generic_handler,))
61+
62+
63+
# This class is part of an EXPERIMENTAL API.
64+
class RayServeAPIService(object):
65+
"""Missing associated documentation comment in .proto file."""
66+
67+
@staticmethod
68+
def ListApplications(request,
69+
target,
70+
options=(),
71+
channel_credentials=None,
72+
call_credentials=None,
73+
insecure=False,
74+
compression=None,
75+
wait_for_ready=None,
76+
timeout=None,
77+
metadata=None):
78+
return grpc.experimental.unary_unary(request, target, '/model.model.v1alpha.RayServeAPIService/ListApplications',
79+
model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.ListApplicationsRequest.SerializeToString,
80+
model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.ListApplicationsResponse.FromString,
81+
options, channel_credentials,
82+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
83+
84+
@staticmethod
85+
def Healthz(request,
86+
target,
87+
options=(),
88+
channel_credentials=None,
89+
call_credentials=None,
90+
insecure=False,
91+
compression=None,
92+
wait_for_ready=None,
93+
timeout=None,
94+
metadata=None):
95+
return grpc.experimental.unary_unary(request, target, '/model.model.v1alpha.RayServeAPIService/Healthz',
96+
model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.HealthzRequest.SerializeToString,
97+
model_dot_model_dot_v1alpha_dot_model__ray__serve__pb2.HealthzResponse.FromString,
98+
options, channel_credentials,
99+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
Copyright 2017 The Ray Authors.
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
"""
18+
import abc
19+
import collections.abc
20+
import grpc
21+
import grpc.aio
22+
import model.model.v1alpha.model_ray_serve_pb2
23+
import typing
24+
25+
_T = typing.TypeVar('_T')
26+
27+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta):
28+
...
29+
30+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore
31+
...
32+
33+
class RayServeAPIServiceStub:
34+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
35+
ListApplications: grpc.UnaryUnaryMultiCallable[
36+
model.model.v1alpha.model_ray_serve_pb2.ListApplicationsRequest,
37+
model.model.v1alpha.model_ray_serve_pb2.ListApplicationsResponse,
38+
]
39+
Healthz: grpc.UnaryUnaryMultiCallable[
40+
model.model.v1alpha.model_ray_serve_pb2.HealthzRequest,
41+
model.model.v1alpha.model_ray_serve_pb2.HealthzResponse,
42+
]
43+
44+
class RayServeAPIServiceAsyncStub:
45+
ListApplications: grpc.aio.UnaryUnaryMultiCallable[
46+
model.model.v1alpha.model_ray_serve_pb2.ListApplicationsRequest,
47+
model.model.v1alpha.model_ray_serve_pb2.ListApplicationsResponse,
48+
]
49+
Healthz: grpc.aio.UnaryUnaryMultiCallable[
50+
model.model.v1alpha.model_ray_serve_pb2.HealthzRequest,
51+
model.model.v1alpha.model_ray_serve_pb2.HealthzResponse,
52+
]
53+
54+
class RayServeAPIServiceServicer(metaclass=abc.ABCMeta):
55+
@abc.abstractmethod
56+
def ListApplications(
57+
self,
58+
request: model.model.v1alpha.model_ray_serve_pb2.ListApplicationsRequest,
59+
context: _ServicerContext,
60+
) -> typing.Union[model.model.v1alpha.model_ray_serve_pb2.ListApplicationsResponse, collections.abc.Awaitable[model.model.v1alpha.model_ray_serve_pb2.ListApplicationsResponse]]: ...
61+
@abc.abstractmethod
62+
def Healthz(
63+
self,
64+
request: model.model.v1alpha.model_ray_serve_pb2.HealthzRequest,
65+
context: _ServicerContext,
66+
) -> typing.Union[model.model.v1alpha.model_ray_serve_pb2.HealthzResponse, collections.abc.Awaitable[model.model.v1alpha.model_ray_serve_pb2.HealthzResponse]]: ...
67+
68+
def add_RayServeAPIServiceServicer_to_server(servicer: RayServeAPIServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...

model/model/v1alpha/model_ray_user_defined_pb2.py

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
import builtins
6+
import collections.abc
7+
import google.protobuf.descriptor
8+
import google.protobuf.internal.containers
9+
import google.protobuf.message
10+
import google.protobuf.struct_pb2
11+
import sys
12+
13+
if sys.version_info >= (3, 8):
14+
import typing as typing_extensions
15+
else:
16+
import typing_extensions
17+
18+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
19+
20+
@typing_extensions.final
21+
class CallRequest(google.protobuf.message.Message):
22+
"""CallRequest represents a request for model inference"""
23+
24+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
25+
26+
TASK_INPUTS_FIELD_NUMBER: builtins.int
27+
@property
28+
def task_inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.struct_pb2.Struct]:
29+
"""Inference input parameters."""
30+
def __init__(
31+
self,
32+
*,
33+
task_inputs: collections.abc.Iterable[google.protobuf.struct_pb2.Struct] | None = ...,
34+
) -> None: ...
35+
def ClearField(self, field_name: typing_extensions.Literal["task_inputs", b"task_inputs"]) -> None: ...
36+
37+
global___CallRequest = CallRequest
38+
39+
@typing_extensions.final
40+
class CallResponse(google.protobuf.message.Message):
41+
"""CallResponse represents a response for model inference"""
42+
43+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
44+
45+
TASK_OUTPUTS_FIELD_NUMBER: builtins.int
46+
@property
47+
def task_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.struct_pb2.Struct]:
48+
"""Model inference outputs."""
49+
def __init__(
50+
self,
51+
*,
52+
task_outputs: collections.abc.Iterable[google.protobuf.struct_pb2.Struct] | None = ...,
53+
) -> None: ...
54+
def ClearField(self, field_name: typing_extensions.Literal["task_outputs", b"task_outputs"]) -> None: ...
55+
56+
global___CallResponse = CallResponse
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
5+
from model.model.v1alpha import model_ray_user_defined_pb2 as model_dot_model_dot_v1alpha_dot_model__ray__user__defined__pb2
6+
7+
8+
class RayUserDefinedServiceStub(object):
9+
"""Ray user defined service for internal process
10+
"""
11+
12+
def __init__(self, channel):
13+
"""Constructor.
14+
15+
Args:
16+
channel: A grpc.Channel.
17+
"""
18+
self.__call__ = channel.unary_unary(
19+
'/model.model.v1alpha.RayUserDefinedService/__call__',
20+
request_serializer=model_dot_model_dot_v1alpha_dot_model__ray__user__defined__pb2.CallRequest.SerializeToString,
21+
response_deserializer=model_dot_model_dot_v1alpha_dot_model__ray__user__defined__pb2.CallResponse.FromString,
22+
)
23+
24+
25+
class RayUserDefinedServiceServicer(object):
26+
"""Ray user defined service for internal process
27+
"""
28+
29+
def __call__(self, request, context):
30+
"""Trigger method is the default trigger entry for ray deployment
31+
Ray doesn't comply with the naming convention of protobuf, so we need to
32+
buf:lint:ignore RPC_PASCAL_CASE
33+
"""
34+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
35+
context.set_details('Method not implemented!')
36+
raise NotImplementedError('Method not implemented!')
37+
38+
39+
def add_RayUserDefinedServiceServicer_to_server(servicer, server):
40+
rpc_method_handlers = {
41+
'__call__': grpc.unary_unary_rpc_method_handler(
42+
servicer.__call__,
43+
request_deserializer=model_dot_model_dot_v1alpha_dot_model__ray__user__defined__pb2.CallRequest.FromString,
44+
response_serializer=model_dot_model_dot_v1alpha_dot_model__ray__user__defined__pb2.CallResponse.SerializeToString,
45+
),
46+
}
47+
generic_handler = grpc.method_handlers_generic_handler(
48+
'model.model.v1alpha.RayUserDefinedService', rpc_method_handlers)
49+
server.add_generic_rpc_handlers((generic_handler,))
50+
51+
52+
# This class is part of an EXPERIMENTAL API.
53+
class RayUserDefinedService(object):
54+
"""Ray user defined service for internal process
55+
"""
56+
57+
@staticmethod
58+
def __call__(request,
59+
target,
60+
options=(),
61+
channel_credentials=None,
62+
call_credentials=None,
63+
insecure=False,
64+
compression=None,
65+
wait_for_ready=None,
66+
timeout=None,
67+
metadata=None):
68+
return grpc.experimental.unary_unary(request, target, '/model.model.v1alpha.RayUserDefinedService/__call__',
69+
model_dot_model_dot_v1alpha_dot_model__ray__user__defined__pb2.CallRequest.SerializeToString,
70+
model_dot_model_dot_v1alpha_dot_model__ray__user__defined__pb2.CallResponse.FromString,
71+
options, channel_credentials,
72+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
import abc
6+
import collections.abc
7+
import grpc
8+
import grpc.aio
9+
import model.model.v1alpha.model_ray_user_defined_pb2
10+
import typing
11+
12+
_T = typing.TypeVar('_T')
13+
14+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta):
15+
...
16+
17+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore
18+
...
19+
20+
class RayUserDefinedServiceStub:
21+
"""Ray user defined service for internal process"""
22+
23+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
24+
__call__: grpc.UnaryUnaryMultiCallable[
25+
model.model.v1alpha.model_ray_user_defined_pb2.CallRequest,
26+
model.model.v1alpha.model_ray_user_defined_pb2.CallResponse,
27+
]
28+
"""Trigger method is the default trigger entry for ray deployment
29+
Ray doesn't comply with the naming convention of protobuf, so we need to
30+
buf:lint:ignore RPC_PASCAL_CASE
31+
"""
32+
33+
class RayUserDefinedServiceAsyncStub:
34+
"""Ray user defined service for internal process"""
35+
36+
__call__: grpc.aio.UnaryUnaryMultiCallable[
37+
model.model.v1alpha.model_ray_user_defined_pb2.CallRequest,
38+
model.model.v1alpha.model_ray_user_defined_pb2.CallResponse,
39+
]
40+
"""Trigger method is the default trigger entry for ray deployment
41+
Ray doesn't comply with the naming convention of protobuf, so we need to
42+
buf:lint:ignore RPC_PASCAL_CASE
43+
"""
44+
45+
class RayUserDefinedServiceServicer(metaclass=abc.ABCMeta):
46+
"""Ray user defined service for internal process"""
47+
48+
@abc.abstractmethod
49+
def __call__(
50+
self,
51+
request: model.model.v1alpha.model_ray_user_defined_pb2.CallRequest,
52+
context: _ServicerContext,
53+
) -> typing.Union[model.model.v1alpha.model_ray_user_defined_pb2.CallResponse, collections.abc.Awaitable[model.model.v1alpha.model_ray_user_defined_pb2.CallResponse]]:
54+
"""Trigger method is the default trigger entry for ray deployment
55+
Ray doesn't comply with the naming convention of protobuf, so we need to
56+
buf:lint:ignore RPC_PASCAL_CASE
57+
"""
58+
59+
def add_RayUserDefinedServiceServicer_to_server(servicer: RayUserDefinedServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...

0 commit comments

Comments
 (0)