You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and this is pb2 file that is my protobuf generate.this file is different from demo,for example my file has not the content of from google.protobuf import message as _message from google.protobuf import reflection as _reflectionso how can I use the message data of getter or setter? Help me ,Thank u!
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: response.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eresponse.proto\"B\n\x0e\x43ustomResponse\x12\x11\n\tisSuccess\x18\x01 \x01(\x08\x12\x0c\n\x04\x63ode\x18\x02 \x01(\x05\x12\x0f\n\x07message\x18\x03 \x01(\tb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'response_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_CUSTOMRESPONSE']._serialized_start=18
_globals['_CUSTOMRESPONSE']._serialized_end=84
# @@protoc_insertion_point(module_scope)
The text was updated successfully, but these errors were encountered:
The proto generated by your code is significantly different from the proto generated by my code.And Your code generation seems to be more accurate than me,so I want to know how your proto was generated. Is it related to the version of protobuf? Although I can still solve it through this method req.ParseFromString(request.data)
This is my question
at first,this is my protobuf file that is same as demo.
1.Compile Protobuf for Custom Response
and this is pb2 file that is my protobuf generate.this file is different from demo,for example my file has not the content of
from google.protobuf import message as _message from google.protobuf import reflection as _reflection
so how can I use the message data of getter or setter? Help me ,Thank u!The text was updated successfully, but these errors were encountered: