github.com/eth-easl/loader@v0.0.0-20230908084258-8a37e1d94279/server/trace-func-py/faas_pb2.py (about) 1 # -*- coding: utf-8 -*- 2 3 # MIT License 4 # 5 # Copyright (c) 2023 EASL and the vHive community 6 # 7 # Permission is hereby granted, free of charge, to any person obtaining a copy 8 # of this software and associated documentation files (the "Software"), to deal 9 # in the Software without restriction, including without limitation the rights 10 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 # copies of the Software, and to permit persons to whom the Software is 12 # furnished to do so, subject to the following conditions: 13 # 14 # The above copyright notice and this permission notice shall be included in all 15 # copies or substantial portions of the Software. 16 # 17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 # SOFTWARE. 24 25 # Generated by the protocol buffer compiler. DO NOT EDIT! 26 # source: faas.proto 27 """Generated protocol buffer code.""" 28 from google.protobuf import descriptor as _descriptor 29 from google.protobuf import message as _message 30 from google.protobuf import reflection as _reflection 31 from google.protobuf import symbol_database as _symbol_database 32 # @@protoc_insertion_point(imports) 33 34 _sym_db = _symbol_database.Default() 35 36 37 38 39 DESCRIPTOR = _descriptor.FileDescriptor( 40 name='faas.proto', 41 package='faasfunction', 42 syntax='proto3', 43 serialized_options=b'Z\'github.com/eth-easl/loader/pkg/faas', 44 create_key=_descriptor._internal_create_key, 45 serialized_pb=b'\n\nfaas.proto\x12\x0c\x66\x61\x61sfunction\"=\n\x0b\x46\x61\x61sRequest\x12\r\n\x05input\x18\x01 \x01(\t\x12\x0f\n\x07runtime\x18\x02 \x01(\r\x12\x0e\n\x06memory\x18\x03 \x01(\r\".\n\tFaasReply\x12\x10\n\x08response\x18\x01 \x01(\t\x12\x0f\n\x07latency\x18\x02 \x01(\x03\x32K\n\x08\x45xecutor\x12?\n\x07\x45xecute\x12\x19.faasfunction.FaasRequest\x1a\x17.faasfunction.FaasReply\"\x00\x42)Z\'github.com/eth-easl/loader/pkg/faasb\x06proto3' 46 ) 47 48 49 50 51 _FAASREQUEST = _descriptor.Descriptor( 52 name='FaasRequest', 53 full_name='faasfunction.FaasRequest', 54 filename=None, 55 file=DESCRIPTOR, 56 containing_type=None, 57 create_key=_descriptor._internal_create_key, 58 fields=[ 59 _descriptor.FieldDescriptor( 60 name='input', full_name='faasfunction.FaasRequest.input', index=0, 61 number=1, type=9, cpp_type=9, label=1, 62 has_default_value=False, default_value=b"".decode('utf-8'), 63 message_type=None, enum_type=None, containing_type=None, 64 is_extension=False, extension_scope=None, 65 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 66 _descriptor.FieldDescriptor( 67 name='runtime', full_name='faasfunction.FaasRequest.runtime', index=1, 68 number=2, type=13, cpp_type=3, label=1, 69 has_default_value=False, default_value=0, 70 message_type=None, enum_type=None, containing_type=None, 71 is_extension=False, extension_scope=None, 72 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 73 _descriptor.FieldDescriptor( 74 name='memory', full_name='faasfunction.FaasRequest.memory', index=2, 75 number=3, type=13, cpp_type=3, label=1, 76 has_default_value=False, default_value=0, 77 message_type=None, enum_type=None, containing_type=None, 78 is_extension=False, extension_scope=None, 79 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 80 ], 81 extensions=[ 82 ], 83 nested_types=[], 84 enum_types=[ 85 ], 86 serialized_options=None, 87 is_extendable=False, 88 syntax='proto3', 89 extension_ranges=[], 90 oneofs=[ 91 ], 92 serialized_start=28, 93 serialized_end=89, 94 ) 95 96 97 _FAASREPLY = _descriptor.Descriptor( 98 name='FaasReply', 99 full_name='faasfunction.FaasReply', 100 filename=None, 101 file=DESCRIPTOR, 102 containing_type=None, 103 create_key=_descriptor._internal_create_key, 104 fields=[ 105 _descriptor.FieldDescriptor( 106 name='response', full_name='faasfunction.FaasReply.response', index=0, 107 number=1, type=9, cpp_type=9, label=1, 108 has_default_value=False, default_value=b"".decode('utf-8'), 109 message_type=None, enum_type=None, containing_type=None, 110 is_extension=False, extension_scope=None, 111 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 112 _descriptor.FieldDescriptor( 113 name='latency', full_name='faasfunction.FaasReply.latency', index=1, 114 number=2, type=3, cpp_type=2, label=1, 115 has_default_value=False, default_value=0, 116 message_type=None, enum_type=None, containing_type=None, 117 is_extension=False, extension_scope=None, 118 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 119 ], 120 extensions=[ 121 ], 122 nested_types=[], 123 enum_types=[ 124 ], 125 serialized_options=None, 126 is_extendable=False, 127 syntax='proto3', 128 extension_ranges=[], 129 oneofs=[ 130 ], 131 serialized_start=91, 132 serialized_end=137, 133 ) 134 135 DESCRIPTOR.message_types_by_name['FaasRequest'] = _FAASREQUEST 136 DESCRIPTOR.message_types_by_name['FaasReply'] = _FAASREPLY 137 _sym_db.RegisterFileDescriptor(DESCRIPTOR) 138 139 FaasRequest = _reflection.GeneratedProtocolMessageType('FaasRequest', (_message.Message,), { 140 'DESCRIPTOR' : _FAASREQUEST, 141 '__module__' : 'faas_pb2' 142 # @@protoc_insertion_point(class_scope:faasfunction.FaasRequest) 143 }) 144 _sym_db.RegisterMessage(FaasRequest) 145 146 FaasReply = _reflection.GeneratedProtocolMessageType('FaasReply', (_message.Message,), { 147 'DESCRIPTOR' : _FAASREPLY, 148 '__module__' : 'faas_pb2' 149 # @@protoc_insertion_point(class_scope:faasfunction.FaasReply) 150 }) 151 _sym_db.RegisterMessage(FaasReply) 152 153 154 DESCRIPTOR._options = None 155 156 _EXECUTOR = _descriptor.ServiceDescriptor( 157 name='Executor', 158 full_name='faasfunction.Executor', 159 file=DESCRIPTOR, 160 index=0, 161 serialized_options=None, 162 create_key=_descriptor._internal_create_key, 163 serialized_start=139, 164 serialized_end=214, 165 methods=[ 166 _descriptor.MethodDescriptor( 167 name='Execute', 168 full_name='faasfunction.Executor.Execute', 169 index=0, 170 containing_service=None, 171 input_type=_FAASREQUEST, 172 output_type=_FAASREPLY, 173 serialized_options=None, 174 create_key=_descriptor._internal_create_key, 175 ), 176 ]) 177 _sym_db.RegisterServiceDescriptor(_EXECUTOR) 178 179 DESCRIPTOR.services_by_name['Executor'] = _EXECUTOR 180 181 # @@protoc_insertion_point(module_scope)