Merge branch 'prov/update_protobuf_files' into 'release/v4.4'

provisioning: Updated proto auto-generated files for custom_config example

See merge request espressif/esp-idf!18569
pull/9239/head
Mahavir Jain 2022-06-17 21:45:57 +08:00
commit 8062994960
2 zmienionych plików z 20 dodań i 143 usunięć

Wyświetl plik

@ -10,13 +10,13 @@ PROTOBUF_C__BEGIN_DECLS
#if PROTOBUF_C_VERSION_NUMBER < 1003000 #if PROTOBUF_C_VERSION_NUMBER < 1003000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION #elif 1004000 < PROTOBUF_C_MIN_COMPILER_VERSION
# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
#endif #endif
typedef struct _CustomConfigRequest CustomConfigRequest; typedef struct CustomConfigRequest CustomConfigRequest;
typedef struct _CustomConfigResponse CustomConfigResponse; typedef struct CustomConfigResponse CustomConfigResponse;
/* --- enums --- */ /* --- enums --- */
@ -29,7 +29,7 @@ typedef enum _CustomConfigStatus {
/* --- messages --- */ /* --- messages --- */
struct _CustomConfigRequest struct CustomConfigRequest
{ {
ProtobufCMessage base; ProtobufCMessage base;
char *info; char *info;
@ -40,7 +40,7 @@ struct _CustomConfigRequest
, (char *)protobuf_c_empty_string, 0 } , (char *)protobuf_c_empty_string, 0 }
struct _CustomConfigResponse struct CustomConfigResponse
{ {
ProtobufCMessage base; ProtobufCMessage base;
CustomConfigStatus status; CustomConfigStatus status;

Wyświetl plik

@ -1,15 +1,11 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT! # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: custom_config.proto # source: custom_config.proto
"""Generated protocol buffer code."""
import sys from google.protobuf.internal import builder as _builder
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import enum_type_wrapper
# @@protoc_insertion_point(imports) # @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default() _sym_db = _symbol_database.Default()
@ -17,136 +13,17 @@ _sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor( DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x63ustom_config.proto\"4\n\x13\x43ustomConfigRequest\x12\x0c\n\x04info\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\"J\n\x14\x43ustomConfigResponse\x12#\n\x06status\x18\x01 \x01(\x0e\x32\x13.CustomConfigStatus\x12\r\n\x05\x64ummy\x18\x02 \x01(\x05*7\n\x12\x43ustomConfigStatus\x12\x11\n\rConfigSuccess\x10\x00\x12\x0e\n\nConfigFail\x10\x01\x62\x06proto3')
name='custom_config.proto',
package='',
syntax='proto3',
serialized_options=None,
serialized_pb=_b('\n\x13\x63ustom_config.proto\"4\n\x13\x43ustomConfigRequest\x12\x0c\n\x04info\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\"J\n\x14\x43ustomConfigResponse\x12#\n\x06status\x18\x01 \x01(\x0e\x32\x13.CustomConfigStatus\x12\r\n\x05\x64ummy\x18\x02 \x01(\x05*7\n\x12\x43ustomConfigStatus\x12\x11\n\rConfigSuccess\x10\x00\x12\x0e\n\nConfigFail\x10\x01\x62\x06proto3')
)
_CUSTOMCONFIGSTATUS = _descriptor.EnumDescriptor(
name='CustomConfigStatus',
full_name='CustomConfigStatus',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='ConfigSuccess', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='ConfigFail', index=1, number=1,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=153,
serialized_end=208,
)
_sym_db.RegisterEnumDescriptor(_CUSTOMCONFIGSTATUS)
CustomConfigStatus = enum_type_wrapper.EnumTypeWrapper(_CUSTOMCONFIGSTATUS)
ConfigSuccess = 0
ConfigFail = 1
_CUSTOMCONFIGREQUEST = _descriptor.Descriptor(
name='CustomConfigRequest',
full_name='CustomConfigRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='info', full_name='CustomConfigRequest.info', 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),
_descriptor.FieldDescriptor(
name='version', full_name='CustomConfigRequest.version', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=23,
serialized_end=75,
)
_CUSTOMCONFIGRESPONSE = _descriptor.Descriptor(
name='CustomConfigResponse',
full_name='CustomConfigResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='status', full_name='CustomConfigResponse.status', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dummy', full_name='CustomConfigResponse.dummy', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=77,
serialized_end=151,
)
_CUSTOMCONFIGRESPONSE.fields_by_name['status'].enum_type = _CUSTOMCONFIGSTATUS
DESCRIPTOR.message_types_by_name['CustomConfigRequest'] = _CUSTOMCONFIGREQUEST
DESCRIPTOR.message_types_by_name['CustomConfigResponse'] = _CUSTOMCONFIGRESPONSE
DESCRIPTOR.enum_types_by_name['CustomConfigStatus'] = _CUSTOMCONFIGSTATUS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
CustomConfigRequest = _reflection.GeneratedProtocolMessageType('CustomConfigRequest', (_message.Message,), dict(
DESCRIPTOR = _CUSTOMCONFIGREQUEST,
__module__ = 'custom_config_pb2'
# @@protoc_insertion_point(class_scope:CustomConfigRequest)
))
_sym_db.RegisterMessage(CustomConfigRequest)
CustomConfigResponse = _reflection.GeneratedProtocolMessageType('CustomConfigResponse', (_message.Message,), dict(
DESCRIPTOR = _CUSTOMCONFIGRESPONSE,
__module__ = 'custom_config_pb2'
# @@protoc_insertion_point(class_scope:CustomConfigResponse)
))
_sym_db.RegisterMessage(CustomConfigResponse)
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'custom_config_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_CUSTOMCONFIGSTATUS._serialized_start=153
_CUSTOMCONFIGSTATUS._serialized_end=208
_CUSTOMCONFIGREQUEST._serialized_start=23
_CUSTOMCONFIGREQUEST._serialized_end=75
_CUSTOMCONFIGRESPONSE._serialized_start=77
_CUSTOMCONFIGRESPONSE._serialized_end=151
# @@protoc_insertion_point(module_scope) # @@protoc_insertion_point(module_scope)