github.com/eth-easl/loader@v0.0.0-20230908084258-8a37e1d94279/pkg/workload/proto/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: server/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='server/faas.proto',
    41    package='faas',
    42    syntax='proto3',
    43    serialized_options=b'Z!github.com/eth-easl/loader/server',
    44    create_key=_descriptor._internal_create_key,
    45    serialized_pb=b'\n\x11server/faas.proto\x12\x04\x66\x61\x61s\"T\n\x0b\x46\x61\x61sRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x19\n\x11runtimeInMilliSec\x18\x02 \x01(\r\x12\x19\n\x11memoryInMebiBytes\x18\x03 \x01(\r\"Q\n\tFaasReply\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x1a\n\x12\x64urationInMicroSec\x18\x02 \x01(\r\x12\x17\n\x0fmemoryUsageInKb\x18\x03 \x01(\r2;\n\x08\x45xecutor\x12/\n\x07\x45xecute\x12\x11.faas.FaasRequest\x1a\x0f.faas.FaasReply\"\x00\x42#Z!github.com/eth-easl/loader/serverb\x06proto3'
    46  )
    47  
    48  
    49  
    50  
    51  _FAASREQUEST = _descriptor.Descriptor(
    52    name='FaasRequest',
    53    full_name='faas.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='message', full_name='faas.FaasRequest.message', 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='runtimeInMilliSec', full_name='faas.FaasRequest.runtimeInMilliSec', 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='memoryInMebiBytes', full_name='faas.FaasRequest.memoryInMebiBytes', 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=27,
    93    serialized_end=111,
    94  )
    95  
    96  
    97  _FAASREPLY = _descriptor.Descriptor(
    98    name='FaasReply',
    99    full_name='faas.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='message', full_name='faas.FaasReply.message', 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='durationInMicroSec', full_name='faas.FaasReply.durationInMicroSec', index=1,
   114        number=2, type=13, cpp_type=3, 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      _descriptor.FieldDescriptor(
   120        name='memoryUsageInKb', full_name='faas.FaasReply.memoryUsageInKb', index=2,
   121        number=3, type=13, cpp_type=3, label=1,
   122        has_default_value=False, default_value=0,
   123        message_type=None, enum_type=None, containing_type=None,
   124        is_extension=False, extension_scope=None,
   125        serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
   126    ],
   127    extensions=[
   128    ],
   129    nested_types=[],
   130    enum_types=[
   131    ],
   132    serialized_options=None,
   133    is_extendable=False,
   134    syntax='proto3',
   135    extension_ranges=[],
   136    oneofs=[
   137    ],
   138    serialized_start=113,
   139    serialized_end=194,
   140  )
   141  
   142  DESCRIPTOR.message_types_by_name['FaasRequest'] = _FAASREQUEST
   143  DESCRIPTOR.message_types_by_name['FaasReply'] = _FAASREPLY
   144  _sym_db.RegisterFileDescriptor(DESCRIPTOR)
   145  
   146  FaasRequest = _reflection.GeneratedProtocolMessageType('FaasRequest', (_message.Message,), {
   147    'DESCRIPTOR' : _FAASREQUEST,
   148    '__module__' : 'server.faas_pb2'
   149    # @@protoc_insertion_point(class_scope:faas.FaasRequest)
   150    })
   151  _sym_db.RegisterMessage(FaasRequest)
   152  
   153  FaasReply = _reflection.GeneratedProtocolMessageType('FaasReply', (_message.Message,), {
   154    'DESCRIPTOR' : _FAASREPLY,
   155    '__module__' : 'server.faas_pb2'
   156    # @@protoc_insertion_point(class_scope:faas.FaasReply)
   157    })
   158  _sym_db.RegisterMessage(FaasReply)
   159  
   160  
   161  DESCRIPTOR._options = None
   162  
   163  _EXECUTOR = _descriptor.ServiceDescriptor(
   164    name='Executor',
   165    full_name='faas.Executor',
   166    file=DESCRIPTOR,
   167    index=0,
   168    serialized_options=None,
   169    create_key=_descriptor._internal_create_key,
   170    serialized_start=196,
   171    serialized_end=255,
   172    methods=[
   173    _descriptor.MethodDescriptor(
   174      name='Execute',
   175      full_name='faas.Executor.Execute',
   176      index=0,
   177      containing_service=None,
   178      input_type=_FAASREQUEST,
   179      output_type=_FAASREPLY,
   180      serialized_options=None,
   181      create_key=_descriptor._internal_create_key,
   182    ),
   183  ])
   184  _sym_db.RegisterServiceDescriptor(_EXECUTOR)
   185  
   186  DESCRIPTOR.services_by_name['Executor'] = _EXECUTOR
   187  
   188  # @@protoc_insertion_point(module_scope)