Scott Baker | bef5fd9 | 2019-02-21 10:24:02 -0800 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # Copyright 2017 the original author or authors. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | |
| 18 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 19 | # source: http.proto |
| 20 | |
| 21 | import sys |
| 22 | _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) |
| 23 | from google.protobuf import descriptor as _descriptor |
| 24 | from google.protobuf import message as _message |
| 25 | from google.protobuf import reflection as _reflection |
| 26 | from google.protobuf import symbol_database as _symbol_database |
| 27 | from google.protobuf import descriptor_pb2 |
| 28 | # @@protoc_insertion_point(imports) |
| 29 | |
| 30 | _sym_db = _symbol_database.Default() |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | DESCRIPTOR = _descriptor.FileDescriptor( |
| 36 | name='http.proto', |
| 37 | package='googleapi', |
| 38 | syntax='proto3', |
| 39 | serialized_pb=_b('\n\nhttp.proto\x12\tgoogleapi\"S\n\x04Http\x12\"\n\x05rules\x18\x01 \x03(\x0b\x32\x13.googleapi.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08\"\xe8\x01\n\x08HttpRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\r\n\x03get\x18\x02 \x01(\tH\x00\x12\r\n\x03put\x18\x03 \x01(\tH\x00\x12\x0e\n\x04post\x18\x04 \x01(\tH\x00\x12\x10\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00\x12\x0f\n\x05patch\x18\x06 \x01(\tH\x00\x12.\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1c.googleapi.CustomHttpPatternH\x00\x12\x0c\n\x04\x62ody\x18\x07 \x01(\t\x12\x30\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x13.googleapi.HttpRuleB\t\n\x07pattern\"/\n\x11\x43ustomHttpPattern\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\tBj\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3') |
| 40 | ) |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | _HTTP = _descriptor.Descriptor( |
| 46 | name='Http', |
| 47 | full_name='googleapi.Http', |
| 48 | filename=None, |
| 49 | file=DESCRIPTOR, |
| 50 | containing_type=None, |
| 51 | fields=[ |
| 52 | _descriptor.FieldDescriptor( |
| 53 | name='rules', full_name='googleapi.Http.rules', index=0, |
| 54 | number=1, type=11, cpp_type=10, label=3, |
| 55 | has_default_value=False, default_value=[], |
| 56 | message_type=None, enum_type=None, containing_type=None, |
| 57 | is_extension=False, extension_scope=None, |
| 58 | options=None, file=DESCRIPTOR), |
| 59 | _descriptor.FieldDescriptor( |
| 60 | name='fully_decode_reserved_expansion', full_name='googleapi.Http.fully_decode_reserved_expansion', index=1, |
| 61 | number=2, type=8, cpp_type=7, label=1, |
| 62 | has_default_value=False, default_value=False, |
| 63 | message_type=None, enum_type=None, containing_type=None, |
| 64 | is_extension=False, extension_scope=None, |
| 65 | options=None, file=DESCRIPTOR), |
| 66 | ], |
| 67 | extensions=[ |
| 68 | ], |
| 69 | nested_types=[], |
| 70 | enum_types=[ |
| 71 | ], |
| 72 | options=None, |
| 73 | is_extendable=False, |
| 74 | syntax='proto3', |
| 75 | extension_ranges=[], |
| 76 | oneofs=[ |
| 77 | ], |
| 78 | serialized_start=25, |
| 79 | serialized_end=108, |
| 80 | ) |
| 81 | |
| 82 | |
| 83 | _HTTPRULE = _descriptor.Descriptor( |
| 84 | name='HttpRule', |
| 85 | full_name='googleapi.HttpRule', |
| 86 | filename=None, |
| 87 | file=DESCRIPTOR, |
| 88 | containing_type=None, |
| 89 | fields=[ |
| 90 | _descriptor.FieldDescriptor( |
| 91 | name='selector', full_name='googleapi.HttpRule.selector', index=0, |
| 92 | number=1, type=9, cpp_type=9, label=1, |
| 93 | has_default_value=False, default_value=_b("").decode('utf-8'), |
| 94 | message_type=None, enum_type=None, containing_type=None, |
| 95 | is_extension=False, extension_scope=None, |
| 96 | options=None, file=DESCRIPTOR), |
| 97 | _descriptor.FieldDescriptor( |
| 98 | name='get', full_name='googleapi.HttpRule.get', index=1, |
| 99 | number=2, type=9, cpp_type=9, label=1, |
| 100 | has_default_value=False, default_value=_b("").decode('utf-8'), |
| 101 | message_type=None, enum_type=None, containing_type=None, |
| 102 | is_extension=False, extension_scope=None, |
| 103 | options=None, file=DESCRIPTOR), |
| 104 | _descriptor.FieldDescriptor( |
| 105 | name='put', full_name='googleapi.HttpRule.put', index=2, |
| 106 | number=3, type=9, cpp_type=9, label=1, |
| 107 | has_default_value=False, default_value=_b("").decode('utf-8'), |
| 108 | message_type=None, enum_type=None, containing_type=None, |
| 109 | is_extension=False, extension_scope=None, |
| 110 | options=None, file=DESCRIPTOR), |
| 111 | _descriptor.FieldDescriptor( |
| 112 | name='post', full_name='googleapi.HttpRule.post', index=3, |
| 113 | number=4, type=9, cpp_type=9, label=1, |
| 114 | has_default_value=False, default_value=_b("").decode('utf-8'), |
| 115 | message_type=None, enum_type=None, containing_type=None, |
| 116 | is_extension=False, extension_scope=None, |
| 117 | options=None, file=DESCRIPTOR), |
| 118 | _descriptor.FieldDescriptor( |
| 119 | name='delete', full_name='googleapi.HttpRule.delete', index=4, |
| 120 | number=5, type=9, cpp_type=9, label=1, |
| 121 | has_default_value=False, default_value=_b("").decode('utf-8'), |
| 122 | message_type=None, enum_type=None, containing_type=None, |
| 123 | is_extension=False, extension_scope=None, |
| 124 | options=None, file=DESCRIPTOR), |
| 125 | _descriptor.FieldDescriptor( |
| 126 | name='patch', full_name='googleapi.HttpRule.patch', index=5, |
| 127 | number=6, type=9, cpp_type=9, label=1, |
| 128 | has_default_value=False, default_value=_b("").decode('utf-8'), |
| 129 | message_type=None, enum_type=None, containing_type=None, |
| 130 | is_extension=False, extension_scope=None, |
| 131 | options=None, file=DESCRIPTOR), |
| 132 | _descriptor.FieldDescriptor( |
| 133 | name='custom', full_name='googleapi.HttpRule.custom', index=6, |
| 134 | number=8, type=11, cpp_type=10, label=1, |
| 135 | has_default_value=False, default_value=None, |
| 136 | message_type=None, enum_type=None, containing_type=None, |
| 137 | is_extension=False, extension_scope=None, |
| 138 | options=None, file=DESCRIPTOR), |
| 139 | _descriptor.FieldDescriptor( |
| 140 | name='body', full_name='googleapi.HttpRule.body', index=7, |
| 141 | number=7, type=9, cpp_type=9, label=1, |
| 142 | has_default_value=False, default_value=_b("").decode('utf-8'), |
| 143 | message_type=None, enum_type=None, containing_type=None, |
| 144 | is_extension=False, extension_scope=None, |
| 145 | options=None, file=DESCRIPTOR), |
| 146 | _descriptor.FieldDescriptor( |
| 147 | name='additional_bindings', full_name='googleapi.HttpRule.additional_bindings', index=8, |
| 148 | number=11, type=11, cpp_type=10, label=3, |
| 149 | has_default_value=False, default_value=[], |
| 150 | message_type=None, enum_type=None, containing_type=None, |
| 151 | is_extension=False, extension_scope=None, |
| 152 | options=None, file=DESCRIPTOR), |
| 153 | ], |
| 154 | extensions=[ |
| 155 | ], |
| 156 | nested_types=[], |
| 157 | enum_types=[ |
| 158 | ], |
| 159 | options=None, |
| 160 | is_extendable=False, |
| 161 | syntax='proto3', |
| 162 | extension_ranges=[], |
| 163 | oneofs=[ |
| 164 | _descriptor.OneofDescriptor( |
| 165 | name='pattern', full_name='googleapi.HttpRule.pattern', |
| 166 | index=0, containing_type=None, fields=[]), |
| 167 | ], |
| 168 | serialized_start=111, |
| 169 | serialized_end=343, |
| 170 | ) |
| 171 | |
| 172 | |
| 173 | _CUSTOMHTTPPATTERN = _descriptor.Descriptor( |
| 174 | name='CustomHttpPattern', |
| 175 | full_name='googleapi.CustomHttpPattern', |
| 176 | filename=None, |
| 177 | file=DESCRIPTOR, |
| 178 | containing_type=None, |
| 179 | fields=[ |
| 180 | _descriptor.FieldDescriptor( |
| 181 | name='kind', full_name='googleapi.CustomHttpPattern.kind', index=0, |
| 182 | number=1, type=9, cpp_type=9, label=1, |
| 183 | has_default_value=False, default_value=_b("").decode('utf-8'), |
| 184 | message_type=None, enum_type=None, containing_type=None, |
| 185 | is_extension=False, extension_scope=None, |
| 186 | options=None, file=DESCRIPTOR), |
| 187 | _descriptor.FieldDescriptor( |
| 188 | name='path', full_name='googleapi.CustomHttpPattern.path', index=1, |
| 189 | number=2, type=9, cpp_type=9, label=1, |
| 190 | has_default_value=False, default_value=_b("").decode('utf-8'), |
| 191 | message_type=None, enum_type=None, containing_type=None, |
| 192 | is_extension=False, extension_scope=None, |
| 193 | options=None, file=DESCRIPTOR), |
| 194 | ], |
| 195 | extensions=[ |
| 196 | ], |
| 197 | nested_types=[], |
| 198 | enum_types=[ |
| 199 | ], |
| 200 | options=None, |
| 201 | is_extendable=False, |
| 202 | syntax='proto3', |
| 203 | extension_ranges=[], |
| 204 | oneofs=[ |
| 205 | ], |
| 206 | serialized_start=345, |
| 207 | serialized_end=392, |
| 208 | ) |
| 209 | |
| 210 | _HTTP.fields_by_name['rules'].message_type = _HTTPRULE |
| 211 | _HTTPRULE.fields_by_name['custom'].message_type = _CUSTOMHTTPPATTERN |
| 212 | _HTTPRULE.fields_by_name['additional_bindings'].message_type = _HTTPRULE |
| 213 | _HTTPRULE.oneofs_by_name['pattern'].fields.append( |
| 214 | _HTTPRULE.fields_by_name['get']) |
| 215 | _HTTPRULE.fields_by_name['get'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] |
| 216 | _HTTPRULE.oneofs_by_name['pattern'].fields.append( |
| 217 | _HTTPRULE.fields_by_name['put']) |
| 218 | _HTTPRULE.fields_by_name['put'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] |
| 219 | _HTTPRULE.oneofs_by_name['pattern'].fields.append( |
| 220 | _HTTPRULE.fields_by_name['post']) |
| 221 | _HTTPRULE.fields_by_name['post'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] |
| 222 | _HTTPRULE.oneofs_by_name['pattern'].fields.append( |
| 223 | _HTTPRULE.fields_by_name['delete']) |
| 224 | _HTTPRULE.fields_by_name['delete'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] |
| 225 | _HTTPRULE.oneofs_by_name['pattern'].fields.append( |
| 226 | _HTTPRULE.fields_by_name['patch']) |
| 227 | _HTTPRULE.fields_by_name['patch'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] |
| 228 | _HTTPRULE.oneofs_by_name['pattern'].fields.append( |
| 229 | _HTTPRULE.fields_by_name['custom']) |
| 230 | _HTTPRULE.fields_by_name['custom'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] |
| 231 | DESCRIPTOR.message_types_by_name['Http'] = _HTTP |
| 232 | DESCRIPTOR.message_types_by_name['HttpRule'] = _HTTPRULE |
| 233 | DESCRIPTOR.message_types_by_name['CustomHttpPattern'] = _CUSTOMHTTPPATTERN |
| 234 | _sym_db.RegisterFileDescriptor(DESCRIPTOR) |
| 235 | |
| 236 | Http = _reflection.GeneratedProtocolMessageType('Http', (_message.Message,), dict( |
| 237 | DESCRIPTOR = _HTTP, |
| 238 | __module__ = 'http_pb2' |
| 239 | # @@protoc_insertion_point(class_scope:googleapi.Http) |
| 240 | )) |
| 241 | _sym_db.RegisterMessage(Http) |
| 242 | |
| 243 | HttpRule = _reflection.GeneratedProtocolMessageType('HttpRule', (_message.Message,), dict( |
| 244 | DESCRIPTOR = _HTTPRULE, |
| 245 | __module__ = 'http_pb2' |
| 246 | # @@protoc_insertion_point(class_scope:googleapi.HttpRule) |
| 247 | )) |
| 248 | _sym_db.RegisterMessage(HttpRule) |
| 249 | |
| 250 | CustomHttpPattern = _reflection.GeneratedProtocolMessageType('CustomHttpPattern', (_message.Message,), dict( |
| 251 | DESCRIPTOR = _CUSTOMHTTPPATTERN, |
| 252 | __module__ = 'http_pb2' |
| 253 | # @@protoc_insertion_point(class_scope:googleapi.CustomHttpPattern) |
| 254 | )) |
| 255 | _sym_db.RegisterMessage(CustomHttpPattern) |
| 256 | |
| 257 | |
| 258 | DESCRIPTOR.has_options = True |
| 259 | DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\016com.google.apiB\tHttpProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\370\001\001\242\002\004GAPI')) |
| 260 | # @@protoc_insertion_point(module_scope) |