• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- coding: utf-8 -*-
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: chromiumos/build/api/metadata_service.proto
4"""Generated protocol buffer code."""
5from google.protobuf import descriptor as _descriptor
6from google.protobuf import message as _message
7from google.protobuf import reflection as _reflection
8from google.protobuf import symbol_database as _symbol_database
9# @@protoc_insertion_point(imports)
10
11_sym_db = _symbol_database.Default()
12
13
14from chromiumos.config.api import device_config_pb2 as chromiumos_dot_config_dot_api_dot_device__config__pb2
15from chromiumos.config.api import device_config_id_pb2 as chromiumos_dot_config_dot_api_dot_device__config__id__pb2
16
17
18DESCRIPTOR = _descriptor.FileDescriptor(
19  name='chromiumos/build/api/metadata_service.proto',
20  package='chromiumos.build.api',
21  syntax='proto3',
22  serialized_options=b'Z.go.chromium.org/chromiumos/config/go/build/api',
23  create_key=_descriptor._internal_create_key,
24  serialized_pb=b'\n+chromiumos/build/api/metadata_service.proto\x12\x14\x63hromiumos.build.api\x1a)chromiumos/config/api/device_config.proto\x1a,chromiumos/config/api/device_config_id.proto\"\xa1\x01\n\x16GetDeviceConfigRequest\x12\x33\n\x02id\x18\x01 \x01(\x0b\x32%.chromiumos.config.api.DeviceConfigIdH\x00\x12G\n\x0bscan_config\x18\x02 \x01(\x0b\x32\x30.chromiumos.config.api.DeviceConfigId.ScanConfigH\x00\x42\t\n\x07id_type\"\xa0\x02\n\x17GetDeviceConfigResponse\x12H\n\x07success\x18\x01 \x01(\x0b\x32\x35.chromiumos.build.api.GetDeviceConfigResponse.SuccessH\x00\x12H\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x35.chromiumos.build.api.GetDeviceConfigResponse.FailureH\x00\x1a\x45\n\x07Success\x12:\n\rdevice_config\x18\x01 \x01(\x0b\x32#.chromiumos.config.api.DeviceConfig\x1a \n\x07\x46\x61ilure\x12\x15\n\rerror_message\x18\x01 \x01(\tB\x08\n\x06result2\x81\x01\n\x0fMetadataService\x12n\n\x0fGetDeviceConfig\x12,.chromiumos.build.api.GetDeviceConfigRequest\x1a-.chromiumos.build.api.GetDeviceConfigResponseB0Z.go.chromium.org/chromiumos/config/go/build/apib\x06proto3'
25  ,
26  dependencies=[chromiumos_dot_config_dot_api_dot_device__config__pb2.DESCRIPTOR,chromiumos_dot_config_dot_api_dot_device__config__id__pb2.DESCRIPTOR,])
27
28
29
30
31_GETDEVICECONFIGREQUEST = _descriptor.Descriptor(
32  name='GetDeviceConfigRequest',
33  full_name='chromiumos.build.api.GetDeviceConfigRequest',
34  filename=None,
35  file=DESCRIPTOR,
36  containing_type=None,
37  create_key=_descriptor._internal_create_key,
38  fields=[
39    _descriptor.FieldDescriptor(
40      name='id', full_name='chromiumos.build.api.GetDeviceConfigRequest.id', index=0,
41      number=1, type=11, cpp_type=10, label=1,
42      has_default_value=False, default_value=None,
43      message_type=None, enum_type=None, containing_type=None,
44      is_extension=False, extension_scope=None,
45      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
46    _descriptor.FieldDescriptor(
47      name='scan_config', full_name='chromiumos.build.api.GetDeviceConfigRequest.scan_config', index=1,
48      number=2, type=11, cpp_type=10, label=1,
49      has_default_value=False, default_value=None,
50      message_type=None, enum_type=None, containing_type=None,
51      is_extension=False, extension_scope=None,
52      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
53  ],
54  extensions=[
55  ],
56  nested_types=[],
57  enum_types=[
58  ],
59  serialized_options=None,
60  is_extendable=False,
61  syntax='proto3',
62  extension_ranges=[],
63  oneofs=[
64    _descriptor.OneofDescriptor(
65      name='id_type', full_name='chromiumos.build.api.GetDeviceConfigRequest.id_type',
66      index=0, containing_type=None,
67      create_key=_descriptor._internal_create_key,
68    fields=[]),
69  ],
70  serialized_start=159,
71  serialized_end=320,
72)
73
74
75_GETDEVICECONFIGRESPONSE_SUCCESS = _descriptor.Descriptor(
76  name='Success',
77  full_name='chromiumos.build.api.GetDeviceConfigResponse.Success',
78  filename=None,
79  file=DESCRIPTOR,
80  containing_type=None,
81  create_key=_descriptor._internal_create_key,
82  fields=[
83    _descriptor.FieldDescriptor(
84      name='device_config', full_name='chromiumos.build.api.GetDeviceConfigResponse.Success.device_config', index=0,
85      number=1, type=11, cpp_type=10, label=1,
86      has_default_value=False, default_value=None,
87      message_type=None, enum_type=None, containing_type=None,
88      is_extension=False, extension_scope=None,
89      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
90  ],
91  extensions=[
92  ],
93  nested_types=[],
94  enum_types=[
95  ],
96  serialized_options=None,
97  is_extendable=False,
98  syntax='proto3',
99  extension_ranges=[],
100  oneofs=[
101  ],
102  serialized_start=498,
103  serialized_end=567,
104)
105
106_GETDEVICECONFIGRESPONSE_FAILURE = _descriptor.Descriptor(
107  name='Failure',
108  full_name='chromiumos.build.api.GetDeviceConfigResponse.Failure',
109  filename=None,
110  file=DESCRIPTOR,
111  containing_type=None,
112  create_key=_descriptor._internal_create_key,
113  fields=[
114    _descriptor.FieldDescriptor(
115      name='error_message', full_name='chromiumos.build.api.GetDeviceConfigResponse.Failure.error_message', index=0,
116      number=1, type=9, cpp_type=9, label=1,
117      has_default_value=False, default_value=b"".decode('utf-8'),
118      message_type=None, enum_type=None, containing_type=None,
119      is_extension=False, extension_scope=None,
120      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
121  ],
122  extensions=[
123  ],
124  nested_types=[],
125  enum_types=[
126  ],
127  serialized_options=None,
128  is_extendable=False,
129  syntax='proto3',
130  extension_ranges=[],
131  oneofs=[
132  ],
133  serialized_start=569,
134  serialized_end=601,
135)
136
137_GETDEVICECONFIGRESPONSE = _descriptor.Descriptor(
138  name='GetDeviceConfigResponse',
139  full_name='chromiumos.build.api.GetDeviceConfigResponse',
140  filename=None,
141  file=DESCRIPTOR,
142  containing_type=None,
143  create_key=_descriptor._internal_create_key,
144  fields=[
145    _descriptor.FieldDescriptor(
146      name='success', full_name='chromiumos.build.api.GetDeviceConfigResponse.success', index=0,
147      number=1, type=11, cpp_type=10, label=1,
148      has_default_value=False, default_value=None,
149      message_type=None, enum_type=None, containing_type=None,
150      is_extension=False, extension_scope=None,
151      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
152    _descriptor.FieldDescriptor(
153      name='failure', full_name='chromiumos.build.api.GetDeviceConfigResponse.failure', index=1,
154      number=2, type=11, cpp_type=10, label=1,
155      has_default_value=False, default_value=None,
156      message_type=None, enum_type=None, containing_type=None,
157      is_extension=False, extension_scope=None,
158      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
159  ],
160  extensions=[
161  ],
162  nested_types=[_GETDEVICECONFIGRESPONSE_SUCCESS, _GETDEVICECONFIGRESPONSE_FAILURE, ],
163  enum_types=[
164  ],
165  serialized_options=None,
166  is_extendable=False,
167  syntax='proto3',
168  extension_ranges=[],
169  oneofs=[
170    _descriptor.OneofDescriptor(
171      name='result', full_name='chromiumos.build.api.GetDeviceConfigResponse.result',
172      index=0, containing_type=None,
173      create_key=_descriptor._internal_create_key,
174    fields=[]),
175  ],
176  serialized_start=323,
177  serialized_end=611,
178)
179
180_GETDEVICECONFIGREQUEST.fields_by_name['id'].message_type = chromiumos_dot_config_dot_api_dot_device__config__id__pb2._DEVICECONFIGID
181_GETDEVICECONFIGREQUEST.fields_by_name['scan_config'].message_type = chromiumos_dot_config_dot_api_dot_device__config__id__pb2._DEVICECONFIGID_SCANCONFIG
182_GETDEVICECONFIGREQUEST.oneofs_by_name['id_type'].fields.append(
183  _GETDEVICECONFIGREQUEST.fields_by_name['id'])
184_GETDEVICECONFIGREQUEST.fields_by_name['id'].containing_oneof = _GETDEVICECONFIGREQUEST.oneofs_by_name['id_type']
185_GETDEVICECONFIGREQUEST.oneofs_by_name['id_type'].fields.append(
186  _GETDEVICECONFIGREQUEST.fields_by_name['scan_config'])
187_GETDEVICECONFIGREQUEST.fields_by_name['scan_config'].containing_oneof = _GETDEVICECONFIGREQUEST.oneofs_by_name['id_type']
188_GETDEVICECONFIGRESPONSE_SUCCESS.fields_by_name['device_config'].message_type = chromiumos_dot_config_dot_api_dot_device__config__pb2._DEVICECONFIG
189_GETDEVICECONFIGRESPONSE_SUCCESS.containing_type = _GETDEVICECONFIGRESPONSE
190_GETDEVICECONFIGRESPONSE_FAILURE.containing_type = _GETDEVICECONFIGRESPONSE
191_GETDEVICECONFIGRESPONSE.fields_by_name['success'].message_type = _GETDEVICECONFIGRESPONSE_SUCCESS
192_GETDEVICECONFIGRESPONSE.fields_by_name['failure'].message_type = _GETDEVICECONFIGRESPONSE_FAILURE
193_GETDEVICECONFIGRESPONSE.oneofs_by_name['result'].fields.append(
194  _GETDEVICECONFIGRESPONSE.fields_by_name['success'])
195_GETDEVICECONFIGRESPONSE.fields_by_name['success'].containing_oneof = _GETDEVICECONFIGRESPONSE.oneofs_by_name['result']
196_GETDEVICECONFIGRESPONSE.oneofs_by_name['result'].fields.append(
197  _GETDEVICECONFIGRESPONSE.fields_by_name['failure'])
198_GETDEVICECONFIGRESPONSE.fields_by_name['failure'].containing_oneof = _GETDEVICECONFIGRESPONSE.oneofs_by_name['result']
199DESCRIPTOR.message_types_by_name['GetDeviceConfigRequest'] = _GETDEVICECONFIGREQUEST
200DESCRIPTOR.message_types_by_name['GetDeviceConfigResponse'] = _GETDEVICECONFIGRESPONSE
201_sym_db.RegisterFileDescriptor(DESCRIPTOR)
202
203GetDeviceConfigRequest = _reflection.GeneratedProtocolMessageType('GetDeviceConfigRequest', (_message.Message,), {
204  'DESCRIPTOR' : _GETDEVICECONFIGREQUEST,
205  '__module__' : 'chromiumos.build.api.metadata_service_pb2'
206  # @@protoc_insertion_point(class_scope:chromiumos.build.api.GetDeviceConfigRequest)
207  })
208_sym_db.RegisterMessage(GetDeviceConfigRequest)
209
210GetDeviceConfigResponse = _reflection.GeneratedProtocolMessageType('GetDeviceConfigResponse', (_message.Message,), {
211
212  'Success' : _reflection.GeneratedProtocolMessageType('Success', (_message.Message,), {
213    'DESCRIPTOR' : _GETDEVICECONFIGRESPONSE_SUCCESS,
214    '__module__' : 'chromiumos.build.api.metadata_service_pb2'
215    # @@protoc_insertion_point(class_scope:chromiumos.build.api.GetDeviceConfigResponse.Success)
216    })
217  ,
218
219  'Failure' : _reflection.GeneratedProtocolMessageType('Failure', (_message.Message,), {
220    'DESCRIPTOR' : _GETDEVICECONFIGRESPONSE_FAILURE,
221    '__module__' : 'chromiumos.build.api.metadata_service_pb2'
222    # @@protoc_insertion_point(class_scope:chromiumos.build.api.GetDeviceConfigResponse.Failure)
223    })
224  ,
225  'DESCRIPTOR' : _GETDEVICECONFIGRESPONSE,
226  '__module__' : 'chromiumos.build.api.metadata_service_pb2'
227  # @@protoc_insertion_point(class_scope:chromiumos.build.api.GetDeviceConfigResponse)
228  })
229_sym_db.RegisterMessage(GetDeviceConfigResponse)
230_sym_db.RegisterMessage(GetDeviceConfigResponse.Success)
231_sym_db.RegisterMessage(GetDeviceConfigResponse.Failure)
232
233
234DESCRIPTOR._options = None
235
236_METADATASERVICE = _descriptor.ServiceDescriptor(
237  name='MetadataService',
238  full_name='chromiumos.build.api.MetadataService',
239  file=DESCRIPTOR,
240  index=0,
241  serialized_options=None,
242  create_key=_descriptor._internal_create_key,
243  serialized_start=614,
244  serialized_end=743,
245  methods=[
246  _descriptor.MethodDescriptor(
247    name='GetDeviceConfig',
248    full_name='chromiumos.build.api.MetadataService.GetDeviceConfig',
249    index=0,
250    containing_service=None,
251    input_type=_GETDEVICECONFIGREQUEST,
252    output_type=_GETDEVICECONFIGRESPONSE,
253    serialized_options=None,
254    create_key=_descriptor._internal_create_key,
255  ),
256])
257_sym_db.RegisterServiceDescriptor(_METADATASERVICE)
258
259DESCRIPTOR.services_by_name['MetadataService'] = _METADATASERVICE
260
261# @@protoc_insertion_point(module_scope)
262