|
- # -*- coding: utf-8 -*-
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: inference.proto
- """Generated protocol buffer code."""
- from google.protobuf import descriptor as _descriptor
- from google.protobuf import message as _message
- from google.protobuf import reflection as _reflection
- from google.protobuf import symbol_database as _symbol_database
-
- # @@protoc_insertion_point(imports)
-
- _sym_db = _symbol_database.Default()
-
- DESCRIPTOR = _descriptor.FileDescriptor(
- name='inference.proto',
- package='',
- syntax='proto3',
- serialized_options=None,
- create_key=_descriptor._internal_create_key,
- serialized_pb=b'\n\x0finference.proto\"%\n\x0b\x44\x61taRequest\x12\x16\n\x06images\x18\x01 \x03(\x0b\x32\x06.Image\"/\n\x05Image\x12\x12\n\nimage_file\x18\x01 \x01(\t\x12\x12\n\nimage_name\x18\x02 \x01(\t\"#\n\x0c\x44\x61taResponse\x12\x13\n\x0bjson_result\x18\x01 \x01(\t2>\n\x10InferenceService\x12*\n\tinference\x12\x0c.DataRequest\x1a\r.DataResponse\"\x00\x62\x06proto3'
- )
-
- _DATAREQUEST = _descriptor.Descriptor(
- name='DataRequest',
- full_name='DataRequest',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- create_key=_descriptor._internal_create_key,
- fields=[
- _descriptor.FieldDescriptor(
- name='images', full_name='DataRequest.images', index=0,
- number=1, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=19,
- serialized_end=56,
- )
-
- _IMAGE = _descriptor.Descriptor(
- name='Image',
- full_name='Image',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- create_key=_descriptor._internal_create_key,
- fields=[
- _descriptor.FieldDescriptor(
- name='image_file', full_name='Image.image_file', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=b"".decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='image_name', full_name='Image.image_name', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=b"".decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=58,
- serialized_end=105,
- )
-
- _DATARESPONSE = _descriptor.Descriptor(
- name='DataResponse',
- full_name='DataResponse',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- create_key=_descriptor._internal_create_key,
- fields=[
- _descriptor.FieldDescriptor(
- name='json_result', full_name='DataResponse.json_result', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=b"".decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=107,
- serialized_end=142,
- )
-
- _DATAREQUEST.fields_by_name['images'].message_type = _IMAGE
- DESCRIPTOR.message_types_by_name['DataRequest'] = _DATAREQUEST
- DESCRIPTOR.message_types_by_name['Image'] = _IMAGE
- DESCRIPTOR.message_types_by_name['DataResponse'] = _DATARESPONSE
- _sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
- DataRequest = _reflection.GeneratedProtocolMessageType('DataRequest', (_message.Message,), {
- 'DESCRIPTOR': _DATAREQUEST,
- '__module__': 'inference_pb2'
- # @@protoc_insertion_point(class_scope:DataRequest)
- })
- _sym_db.RegisterMessage(DataRequest)
-
- Image = _reflection.GeneratedProtocolMessageType('Image', (_message.Message,), {
- 'DESCRIPTOR': _IMAGE,
- '__module__': 'inference_pb2'
- # @@protoc_insertion_point(class_scope:Image)
- })
- _sym_db.RegisterMessage(Image)
-
- DataResponse = _reflection.GeneratedProtocolMessageType('DataResponse', (_message.Message,), {
- 'DESCRIPTOR': _DATARESPONSE,
- '__module__': 'inference_pb2'
- # @@protoc_insertion_point(class_scope:DataResponse)
- })
- _sym_db.RegisterMessage(DataResponse)
-
- _INFERENCESERVICE = _descriptor.ServiceDescriptor(
- name='InferenceService',
- full_name='InferenceService',
- file=DESCRIPTOR,
- index=0,
- serialized_options=None,
- create_key=_descriptor._internal_create_key,
- serialized_start=144,
- serialized_end=206,
- methods=[
- _descriptor.MethodDescriptor(
- name='inference',
- full_name='InferenceService.inference',
- index=0,
- containing_service=None,
- input_type=_DATAREQUEST,
- output_type=_DATARESPONSE,
- serialized_options=None,
- create_key=_descriptor._internal_create_key,
- ),
- ])
- _sym_db.RegisterServiceDescriptor(_INFERENCESERVICE)
-
- DESCRIPTOR.services_by_name['InferenceService'] = _INFERENCESERVICE
-
- # @@protoc_insertion_point(module_scope)
|