forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIService_pb2_grpc.py
More file actions
180 lines (162 loc) · 7.93 KB
/
Copy pathUIService_pb2_grpc.py
File metadata and controls
180 lines (162 loc) · 7.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from feast.core import UIService_pb2 as feast_dot_core_dot_UIService__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
class UIServiceStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetEntity = channel.unary_unary(
'/feast.core.UIService/GetEntity',
request_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetEntityRequest.SerializeToString,
response_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetEntityResponse.FromString,
)
self.ListEntities = channel.unary_unary(
'/feast.core.UIService/ListEntities',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.ListEntitiesResponse.FromString,
)
self.GetFeature = channel.unary_unary(
'/feast.core.UIService/GetFeature',
request_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetFeatureRequest.SerializeToString,
response_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetFeatureResponse.FromString,
)
self.ListFeatures = channel.unary_unary(
'/feast.core.UIService/ListFeatures',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.ListFeaturesResponse.FromString,
)
self.GetFeatureGroup = channel.unary_unary(
'/feast.core.UIService/GetFeatureGroup',
request_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetFeatureGroupRequest.SerializeToString,
response_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetFeatureGroupResponse.FromString,
)
self.ListFeatureGroups = channel.unary_unary(
'/feast.core.UIService/ListFeatureGroups',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.ListFeatureGroupsResponse.FromString,
)
self.GetStorage = channel.unary_unary(
'/feast.core.UIService/GetStorage',
request_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetStorageRequest.SerializeToString,
response_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetStorageResponse.FromString,
)
self.ListStorage = channel.unary_unary(
'/feast.core.UIService/ListStorage',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.ListStorageResponse.FromString,
)
class UIServiceServicer(object):
# missing associated documentation comment in .proto file
pass
def GetEntity(self, request, context):
"""
Get entity specified in request.
This process returns a single of entity specs.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListEntities(self, request, context):
"""
Get all entities.
This process returns a list of entity specs.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetFeature(self, request, context):
"""
Get feature specified in request.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListFeatures(self, request, context):
"""
Get all features.
This process returns a list of feature specs.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetFeatureGroup(self, request, context):
"""
Get feature group specified in request.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListFeatureGroups(self, request, context):
"""
Get all feature groups.
This process returns a list of feature group specs.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetStorage(self, request, context):
"""
Get storage spec specified in request.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListStorage(self, request, context):
"""
Get all storage specs.
This process returns a list of storage specs.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_UIServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetEntity': grpc.unary_unary_rpc_method_handler(
servicer.GetEntity,
request_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetEntityRequest.FromString,
response_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetEntityResponse.SerializeToString,
),
'ListEntities': grpc.unary_unary_rpc_method_handler(
servicer.ListEntities,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.ListEntitiesResponse.SerializeToString,
),
'GetFeature': grpc.unary_unary_rpc_method_handler(
servicer.GetFeature,
request_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetFeatureRequest.FromString,
response_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetFeatureResponse.SerializeToString,
),
'ListFeatures': grpc.unary_unary_rpc_method_handler(
servicer.ListFeatures,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.ListFeaturesResponse.SerializeToString,
),
'GetFeatureGroup': grpc.unary_unary_rpc_method_handler(
servicer.GetFeatureGroup,
request_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetFeatureGroupRequest.FromString,
response_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetFeatureGroupResponse.SerializeToString,
),
'ListFeatureGroups': grpc.unary_unary_rpc_method_handler(
servicer.ListFeatureGroups,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.ListFeatureGroupsResponse.SerializeToString,
),
'GetStorage': grpc.unary_unary_rpc_method_handler(
servicer.GetStorage,
request_deserializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetStorageRequest.FromString,
response_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.GetStorageResponse.SerializeToString,
),
'ListStorage': grpc.unary_unary_rpc_method_handler(
servicer.ListStorage,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=feast_dot_core_dot_UIService__pb2.UIServiceTypes.ListStorageResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'feast.core.UIService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))