|
1 | 1 | # (c) Copyright IBM Corp. 2021 |
2 | 2 | # (c) Copyright Instana Inc. 2019 |
3 | 3 |
|
| 4 | +# -*- coding: utf-8 -*- |
4 | 5 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 6 | +# NO CHECKED-IN PROTOBUF GENCODE |
5 | 7 | # source: stan.proto |
| 8 | +# Protobuf Python Version: 5.27.2 |
| 9 | +"""Generated protocol buffer code.""" |
6 | 10 |
|
7 | | -import sys |
8 | | -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) |
9 | 11 | from google.protobuf import descriptor as _descriptor |
10 | | -from google.protobuf import message as _message |
11 | | -from google.protobuf import reflection as _reflection |
| 12 | +from google.protobuf import descriptor_pool as _descriptor_pool |
| 13 | +from google.protobuf import runtime_version as _runtime_version |
12 | 14 | from google.protobuf import symbol_database as _symbol_database |
13 | | -# @@protoc_insertion_point(imports) |
14 | | - |
15 | | -_sym_db = _symbol_database.Default() |
16 | | - |
17 | | - |
| 15 | +from google.protobuf.internal import builder as _builder |
18 | 16 |
|
19 | | - |
20 | | -DESCRIPTOR = _descriptor.FileDescriptor( |
21 | | - name='stan.proto', |
22 | | - package='stan', |
23 | | - syntax='proto3', |
24 | | - serialized_options=None, |
25 | | - serialized_pb=_b('\n\nstan.proto\x12\x04stan\"#\n\x0fQuestionRequest\x12\x10\n\x08question\x18\x01 \x01(\t\"8\n\x10QuestionResponse\x12\x0e\n\x06\x61nswer\x18\x01 \x01(\t\x12\x14\n\x0cwas_answered\x18\x02 \x01(\x08\x32\xe3\x03\n\x04Stan\x12I\n\x16OneQuestionOneResponse\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse\"\x00\x12M\n\x18ManyQuestionsOneResponse\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse\"\x00(\x01\x12M\n\x18OneQuestionManyResponses\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse\"\x00\x30\x01\x12P\n\x19ManyQuestionsManyReponses\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse\"\x00(\x01\x30\x01\x12N\n\x1bOneQuestionOneErrorResponse\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse\"\x00\x12P\n\x1dOneErroredQuestionOneResponse\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse\"\x00\x62\x06proto3') |
| 17 | +_runtime_version.ValidateProtobufRuntimeVersion( |
| 18 | + _runtime_version.Domain.PUBLIC, 5, 27, 2, "", "stan.proto" |
26 | 19 | ) |
| 20 | +# @@protoc_insertion_point(imports) |
27 | 21 |
|
| 22 | +_sym_db = _symbol_database.Default() |
28 | 23 |
|
29 | 24 |
|
30 | | - |
31 | | -_QUESTIONREQUEST = _descriptor.Descriptor( |
32 | | - name='QuestionRequest', |
33 | | - full_name='stan.QuestionRequest', |
34 | | - filename=None, |
35 | | - file=DESCRIPTOR, |
36 | | - containing_type=None, |
37 | | - fields=[ |
38 | | - _descriptor.FieldDescriptor( |
39 | | - name='question', full_name='stan.QuestionRequest.question', index=0, |
40 | | - number=1, type=9, cpp_type=9, label=1, |
41 | | - has_default_value=False, default_value=_b("").decode('utf-8'), |
42 | | - message_type=None, enum_type=None, containing_type=None, |
43 | | - is_extension=False, extension_scope=None, |
44 | | - serialized_options=None, file=DESCRIPTOR), |
45 | | - ], |
46 | | - extensions=[ |
47 | | - ], |
48 | | - nested_types=[], |
49 | | - enum_types=[ |
50 | | - ], |
51 | | - serialized_options=None, |
52 | | - is_extendable=False, |
53 | | - syntax='proto3', |
54 | | - extension_ranges=[], |
55 | | - oneofs=[ |
56 | | - ], |
57 | | - serialized_start=20, |
58 | | - serialized_end=55, |
59 | | -) |
60 | | - |
61 | | - |
62 | | -_QUESTIONRESPONSE = _descriptor.Descriptor( |
63 | | - name='QuestionResponse', |
64 | | - full_name='stan.QuestionResponse', |
65 | | - filename=None, |
66 | | - file=DESCRIPTOR, |
67 | | - containing_type=None, |
68 | | - fields=[ |
69 | | - _descriptor.FieldDescriptor( |
70 | | - name='answer', full_name='stan.QuestionResponse.answer', index=0, |
71 | | - number=1, type=9, cpp_type=9, label=1, |
72 | | - has_default_value=False, default_value=_b("").decode('utf-8'), |
73 | | - message_type=None, enum_type=None, containing_type=None, |
74 | | - is_extension=False, extension_scope=None, |
75 | | - serialized_options=None, file=DESCRIPTOR), |
76 | | - _descriptor.FieldDescriptor( |
77 | | - name='was_answered', full_name='stan.QuestionResponse.was_answered', index=1, |
78 | | - number=2, type=8, cpp_type=7, label=1, |
79 | | - has_default_value=False, default_value=False, |
80 | | - message_type=None, enum_type=None, containing_type=None, |
81 | | - is_extension=False, extension_scope=None, |
82 | | - serialized_options=None, file=DESCRIPTOR), |
83 | | - ], |
84 | | - extensions=[ |
85 | | - ], |
86 | | - nested_types=[], |
87 | | - enum_types=[ |
88 | | - ], |
89 | | - serialized_options=None, |
90 | | - is_extendable=False, |
91 | | - syntax='proto3', |
92 | | - extension_ranges=[], |
93 | | - oneofs=[ |
94 | | - ], |
95 | | - serialized_start=57, |
96 | | - serialized_end=113, |
| 25 | +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( |
| 26 | + b'\n\nstan.proto\x12\x04stan"#\n\x0fQuestionRequest\x12\x10\n\x08question\x18\x01 \x01(\t"8\n\x10QuestionResponse\x12\x0e\n\x06\x61nswer\x18\x01 \x01(\t\x12\x14\n\x0cwas_answered\x18\x02 \x01(\x08\x32\xe3\x03\n\x04Stan\x12I\n\x16OneQuestionOneResponse\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse"\x00\x12M\n\x18ManyQuestionsOneResponse\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse"\x00(\x01\x12M\n\x18OneQuestionManyResponses\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse"\x00\x30\x01\x12P\n\x19ManyQuestionsManyReponses\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse"\x00(\x01\x30\x01\x12N\n\x1bOneQuestionOneErrorResponse\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse"\x00\x12P\n\x1dOneErroredQuestionOneResponse\x12\x15.stan.QuestionRequest\x1a\x16.stan.QuestionResponse"\x00\x62\x06proto3' |
97 | 27 | ) |
98 | 28 |
|
99 | | -DESCRIPTOR.message_types_by_name['QuestionRequest'] = _QUESTIONREQUEST |
100 | | -DESCRIPTOR.message_types_by_name['QuestionResponse'] = _QUESTIONRESPONSE |
101 | | -_sym_db.RegisterFileDescriptor(DESCRIPTOR) |
102 | | - |
103 | | -QuestionRequest = _reflection.GeneratedProtocolMessageType('QuestionRequest', (_message.Message,), dict( |
104 | | - DESCRIPTOR = _QUESTIONREQUEST, |
105 | | - __module__ = 'stan_pb2' |
106 | | - # @@protoc_insertion_point(class_scope:stan.QuestionRequest) |
107 | | - )) |
108 | | -_sym_db.RegisterMessage(QuestionRequest) |
109 | | - |
110 | | -QuestionResponse = _reflection.GeneratedProtocolMessageType('QuestionResponse', (_message.Message,), dict( |
111 | | - DESCRIPTOR = _QUESTIONRESPONSE, |
112 | | - __module__ = 'stan_pb2' |
113 | | - # @@protoc_insertion_point(class_scope:stan.QuestionResponse) |
114 | | - )) |
115 | | -_sym_db.RegisterMessage(QuestionResponse) |
116 | | - |
117 | | - |
118 | | - |
119 | | -_STAN = _descriptor.ServiceDescriptor( |
120 | | - name='Stan', |
121 | | - full_name='stan.Stan', |
122 | | - file=DESCRIPTOR, |
123 | | - index=0, |
124 | | - serialized_options=None, |
125 | | - serialized_start=116, |
126 | | - serialized_end=599, |
127 | | - methods=[ |
128 | | - _descriptor.MethodDescriptor( |
129 | | - name='OneQuestionOneResponse', |
130 | | - full_name='stan.Stan.OneQuestionOneResponse', |
131 | | - index=0, |
132 | | - containing_service=None, |
133 | | - input_type=_QUESTIONREQUEST, |
134 | | - output_type=_QUESTIONRESPONSE, |
135 | | - serialized_options=None, |
136 | | - ), |
137 | | - _descriptor.MethodDescriptor( |
138 | | - name='ManyQuestionsOneResponse', |
139 | | - full_name='stan.Stan.ManyQuestionsOneResponse', |
140 | | - index=1, |
141 | | - containing_service=None, |
142 | | - input_type=_QUESTIONREQUEST, |
143 | | - output_type=_QUESTIONRESPONSE, |
144 | | - serialized_options=None, |
145 | | - ), |
146 | | - _descriptor.MethodDescriptor( |
147 | | - name='OneQuestionManyResponses', |
148 | | - full_name='stan.Stan.OneQuestionManyResponses', |
149 | | - index=2, |
150 | | - containing_service=None, |
151 | | - input_type=_QUESTIONREQUEST, |
152 | | - output_type=_QUESTIONRESPONSE, |
153 | | - serialized_options=None, |
154 | | - ), |
155 | | - _descriptor.MethodDescriptor( |
156 | | - name='ManyQuestionsManyReponses', |
157 | | - full_name='stan.Stan.ManyQuestionsManyReponses', |
158 | | - index=3, |
159 | | - containing_service=None, |
160 | | - input_type=_QUESTIONREQUEST, |
161 | | - output_type=_QUESTIONRESPONSE, |
162 | | - serialized_options=None, |
163 | | - ), |
164 | | - _descriptor.MethodDescriptor( |
165 | | - name='OneQuestionOneErrorResponse', |
166 | | - full_name='stan.Stan.OneQuestionOneErrorResponse', |
167 | | - index=4, |
168 | | - containing_service=None, |
169 | | - input_type=_QUESTIONREQUEST, |
170 | | - output_type=_QUESTIONRESPONSE, |
171 | | - serialized_options=None, |
172 | | - ), |
173 | | - _descriptor.MethodDescriptor( |
174 | | - name='OneErroredQuestionOneResponse', |
175 | | - full_name='stan.Stan.OneErroredQuestionOneResponse', |
176 | | - index=5, |
177 | | - containing_service=None, |
178 | | - input_type=_QUESTIONREQUEST, |
179 | | - output_type=_QUESTIONRESPONSE, |
180 | | - serialized_options=None, |
181 | | - ), |
182 | | -]) |
183 | | -_sym_db.RegisterServiceDescriptor(_STAN) |
184 | | - |
185 | | -DESCRIPTOR.services_by_name['Stan'] = _STAN |
186 | | - |
| 29 | +_globals = globals() |
| 30 | +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) |
| 31 | +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "stan_pb2", _globals) |
| 32 | +if not _descriptor._USE_C_DESCRIPTORS: |
| 33 | + DESCRIPTOR._loaded_options = None |
| 34 | + _globals["_QUESTIONREQUEST"]._serialized_start = 20 |
| 35 | + _globals["_QUESTIONREQUEST"]._serialized_end = 55 |
| 36 | + _globals["_QUESTIONRESPONSE"]._serialized_start = 57 |
| 37 | + _globals["_QUESTIONRESPONSE"]._serialized_end = 113 |
| 38 | + _globals["_STAN"]._serialized_start = 116 |
| 39 | + _globals["_STAN"]._serialized_end = 599 |
187 | 40 | # @@protoc_insertion_point(module_scope) |
0 commit comments