Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 1 | # -*- coding: utf-8 -*- |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: api/api_proto/sitewide.proto |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 4 | """Generated protocol buffer code.""" |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 5 | from google.protobuf import descriptor as _descriptor |
| 6 | from google.protobuf import message as _message |
| 7 | from google.protobuf import reflection as _reflection |
| 8 | from google.protobuf import symbol_database as _symbol_database |
| 9 | # @@protoc_insertion_point(imports) |
| 10 | |
| 11 | _sym_db = _symbol_database.Default() |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | DESCRIPTOR = _descriptor.FileDescriptor( |
| 17 | name='api/api_proto/sitewide.proto', |
| 18 | package='monorail', |
| 19 | syntax='proto3', |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 20 | serialized_options=b'Z\'infra/monorailv2/api/api_proto;monorail', |
| 21 | create_key=_descriptor._internal_create_key, |
| 22 | serialized_pb=b'\n\x1c\x61pi/api_proto/sitewide.proto\x12\x08monorail\"8\n\x13RefreshTokenRequest\x12\r\n\x05token\x18\x02 \x01(\t\x12\x12\n\ntoken_path\x18\x03 \x01(\t\"@\n\x14RefreshTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x19\n\x11token_expires_sec\x18\x02 \x01(\r\"\x18\n\x16GetServerStatusRequest\"Y\n\x17GetServerStatusResponse\x12\x16\n\x0e\x62\x61nner_message\x18\x01 \x01(\t\x12\x13\n\x0b\x62\x61nner_time\x18\x02 \x01(\x07\x12\x11\n\tread_only\x18\x03 \x01(\x08\x32\xb5\x01\n\x08Sitewide\x12O\n\x0cRefreshToken\x12\x1d.monorail.RefreshTokenRequest\x1a\x1e.monorail.RefreshTokenResponse\"\x00\x12X\n\x0fGetServerStatus\x12 .monorail.GetServerStatusRequest\x1a!.monorail.GetServerStatusResponse\"\x00\x42)Z\'infra/monorailv2/api/api_proto;monorailb\x06proto3' |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 23 | ) |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | _REFRESHTOKENREQUEST = _descriptor.Descriptor( |
| 29 | name='RefreshTokenRequest', |
| 30 | full_name='monorail.RefreshTokenRequest', |
| 31 | filename=None, |
| 32 | file=DESCRIPTOR, |
| 33 | containing_type=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 34 | create_key=_descriptor._internal_create_key, |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 35 | fields=[ |
| 36 | _descriptor.FieldDescriptor( |
| 37 | name='token', full_name='monorail.RefreshTokenRequest.token', index=0, |
| 38 | number=2, type=9, cpp_type=9, label=1, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 39 | has_default_value=False, default_value=b"".decode('utf-8'), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 40 | message_type=None, enum_type=None, containing_type=None, |
| 41 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 42 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 43 | _descriptor.FieldDescriptor( |
| 44 | name='token_path', full_name='monorail.RefreshTokenRequest.token_path', index=1, |
| 45 | number=3, type=9, cpp_type=9, label=1, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 46 | has_default_value=False, default_value=b"".decode('utf-8'), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 47 | message_type=None, enum_type=None, containing_type=None, |
| 48 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 49 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 50 | ], |
| 51 | extensions=[ |
| 52 | ], |
| 53 | nested_types=[], |
| 54 | enum_types=[ |
| 55 | ], |
| 56 | serialized_options=None, |
| 57 | is_extendable=False, |
| 58 | syntax='proto3', |
| 59 | extension_ranges=[], |
| 60 | oneofs=[ |
| 61 | ], |
| 62 | serialized_start=42, |
| 63 | serialized_end=98, |
| 64 | ) |
| 65 | |
| 66 | |
| 67 | _REFRESHTOKENRESPONSE = _descriptor.Descriptor( |
| 68 | name='RefreshTokenResponse', |
| 69 | full_name='monorail.RefreshTokenResponse', |
| 70 | filename=None, |
| 71 | file=DESCRIPTOR, |
| 72 | containing_type=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 73 | create_key=_descriptor._internal_create_key, |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 74 | fields=[ |
| 75 | _descriptor.FieldDescriptor( |
| 76 | name='token', full_name='monorail.RefreshTokenResponse.token', index=0, |
| 77 | number=1, type=9, cpp_type=9, label=1, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 78 | has_default_value=False, default_value=b"".decode('utf-8'), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 79 | message_type=None, enum_type=None, containing_type=None, |
| 80 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 81 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 82 | _descriptor.FieldDescriptor( |
| 83 | name='token_expires_sec', full_name='monorail.RefreshTokenResponse.token_expires_sec', index=1, |
| 84 | number=2, type=13, cpp_type=3, label=1, |
| 85 | has_default_value=False, default_value=0, |
| 86 | message_type=None, enum_type=None, containing_type=None, |
| 87 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 88 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 89 | ], |
| 90 | extensions=[ |
| 91 | ], |
| 92 | nested_types=[], |
| 93 | enum_types=[ |
| 94 | ], |
| 95 | serialized_options=None, |
| 96 | is_extendable=False, |
| 97 | syntax='proto3', |
| 98 | extension_ranges=[], |
| 99 | oneofs=[ |
| 100 | ], |
| 101 | serialized_start=100, |
| 102 | serialized_end=164, |
| 103 | ) |
| 104 | |
| 105 | |
| 106 | _GETSERVERSTATUSREQUEST = _descriptor.Descriptor( |
| 107 | name='GetServerStatusRequest', |
| 108 | full_name='monorail.GetServerStatusRequest', |
| 109 | filename=None, |
| 110 | file=DESCRIPTOR, |
| 111 | containing_type=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 112 | create_key=_descriptor._internal_create_key, |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 113 | fields=[ |
| 114 | ], |
| 115 | extensions=[ |
| 116 | ], |
| 117 | nested_types=[], |
| 118 | enum_types=[ |
| 119 | ], |
| 120 | serialized_options=None, |
| 121 | is_extendable=False, |
| 122 | syntax='proto3', |
| 123 | extension_ranges=[], |
| 124 | oneofs=[ |
| 125 | ], |
| 126 | serialized_start=166, |
| 127 | serialized_end=190, |
| 128 | ) |
| 129 | |
| 130 | |
| 131 | _GETSERVERSTATUSRESPONSE = _descriptor.Descriptor( |
| 132 | name='GetServerStatusResponse', |
| 133 | full_name='monorail.GetServerStatusResponse', |
| 134 | filename=None, |
| 135 | file=DESCRIPTOR, |
| 136 | containing_type=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 137 | create_key=_descriptor._internal_create_key, |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 138 | fields=[ |
| 139 | _descriptor.FieldDescriptor( |
| 140 | name='banner_message', full_name='monorail.GetServerStatusResponse.banner_message', index=0, |
| 141 | number=1, type=9, cpp_type=9, label=1, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 142 | has_default_value=False, default_value=b"".decode('utf-8'), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 143 | message_type=None, enum_type=None, containing_type=None, |
| 144 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 145 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 146 | _descriptor.FieldDescriptor( |
| 147 | name='banner_time', full_name='monorail.GetServerStatusResponse.banner_time', index=1, |
| 148 | number=2, type=7, cpp_type=3, label=1, |
| 149 | has_default_value=False, default_value=0, |
| 150 | message_type=None, enum_type=None, containing_type=None, |
| 151 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 152 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 153 | _descriptor.FieldDescriptor( |
| 154 | name='read_only', full_name='monorail.GetServerStatusResponse.read_only', index=2, |
| 155 | number=3, type=8, cpp_type=7, label=1, |
| 156 | has_default_value=False, default_value=False, |
| 157 | message_type=None, enum_type=None, containing_type=None, |
| 158 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 159 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 160 | ], |
| 161 | extensions=[ |
| 162 | ], |
| 163 | nested_types=[], |
| 164 | enum_types=[ |
| 165 | ], |
| 166 | serialized_options=None, |
| 167 | is_extendable=False, |
| 168 | syntax='proto3', |
| 169 | extension_ranges=[], |
| 170 | oneofs=[ |
| 171 | ], |
| 172 | serialized_start=192, |
| 173 | serialized_end=281, |
| 174 | ) |
| 175 | |
| 176 | DESCRIPTOR.message_types_by_name['RefreshTokenRequest'] = _REFRESHTOKENREQUEST |
| 177 | DESCRIPTOR.message_types_by_name['RefreshTokenResponse'] = _REFRESHTOKENRESPONSE |
| 178 | DESCRIPTOR.message_types_by_name['GetServerStatusRequest'] = _GETSERVERSTATUSREQUEST |
| 179 | DESCRIPTOR.message_types_by_name['GetServerStatusResponse'] = _GETSERVERSTATUSRESPONSE |
| 180 | _sym_db.RegisterFileDescriptor(DESCRIPTOR) |
| 181 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 182 | RefreshTokenRequest = _reflection.GeneratedProtocolMessageType('RefreshTokenRequest', (_message.Message,), { |
| 183 | 'DESCRIPTOR' : _REFRESHTOKENREQUEST, |
| 184 | '__module__' : 'api.api_proto.sitewide_pb2' |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 185 | # @@protoc_insertion_point(class_scope:monorail.RefreshTokenRequest) |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 186 | }) |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 187 | _sym_db.RegisterMessage(RefreshTokenRequest) |
| 188 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 189 | RefreshTokenResponse = _reflection.GeneratedProtocolMessageType('RefreshTokenResponse', (_message.Message,), { |
| 190 | 'DESCRIPTOR' : _REFRESHTOKENRESPONSE, |
| 191 | '__module__' : 'api.api_proto.sitewide_pb2' |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 192 | # @@protoc_insertion_point(class_scope:monorail.RefreshTokenResponse) |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 193 | }) |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 194 | _sym_db.RegisterMessage(RefreshTokenResponse) |
| 195 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 196 | GetServerStatusRequest = _reflection.GeneratedProtocolMessageType('GetServerStatusRequest', (_message.Message,), { |
| 197 | 'DESCRIPTOR' : _GETSERVERSTATUSREQUEST, |
| 198 | '__module__' : 'api.api_proto.sitewide_pb2' |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 199 | # @@protoc_insertion_point(class_scope:monorail.GetServerStatusRequest) |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 200 | }) |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 201 | _sym_db.RegisterMessage(GetServerStatusRequest) |
| 202 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 203 | GetServerStatusResponse = _reflection.GeneratedProtocolMessageType('GetServerStatusResponse', (_message.Message,), { |
| 204 | 'DESCRIPTOR' : _GETSERVERSTATUSRESPONSE, |
| 205 | '__module__' : 'api.api_proto.sitewide_pb2' |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 206 | # @@protoc_insertion_point(class_scope:monorail.GetServerStatusResponse) |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 207 | }) |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 208 | _sym_db.RegisterMessage(GetServerStatusResponse) |
| 209 | |
| 210 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 211 | DESCRIPTOR._options = None |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 212 | |
| 213 | _SITEWIDE = _descriptor.ServiceDescriptor( |
| 214 | name='Sitewide', |
| 215 | full_name='monorail.Sitewide', |
| 216 | file=DESCRIPTOR, |
| 217 | index=0, |
| 218 | serialized_options=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 219 | create_key=_descriptor._internal_create_key, |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 220 | serialized_start=284, |
| 221 | serialized_end=465, |
| 222 | methods=[ |
| 223 | _descriptor.MethodDescriptor( |
| 224 | name='RefreshToken', |
| 225 | full_name='monorail.Sitewide.RefreshToken', |
| 226 | index=0, |
| 227 | containing_service=None, |
| 228 | input_type=_REFRESHTOKENREQUEST, |
| 229 | output_type=_REFRESHTOKENRESPONSE, |
| 230 | serialized_options=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 231 | create_key=_descriptor._internal_create_key, |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 232 | ), |
| 233 | _descriptor.MethodDescriptor( |
| 234 | name='GetServerStatus', |
| 235 | full_name='monorail.Sitewide.GetServerStatus', |
| 236 | index=1, |
| 237 | containing_service=None, |
| 238 | input_type=_GETSERVERSTATUSREQUEST, |
| 239 | output_type=_GETSERVERSTATUSRESPONSE, |
| 240 | serialized_options=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 241 | create_key=_descriptor._internal_create_key, |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 242 | ), |
| 243 | ]) |
| 244 | _sym_db.RegisterServiceDescriptor(_SITEWIDE) |
| 245 | |
| 246 | DESCRIPTOR.services_by_name['Sitewide'] = _SITEWIDE |
| 247 | |
| 248 | # @@protoc_insertion_point(module_scope) |