# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: chromiumos/build/api/metadata_service.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from chromiumos.config.api import device_config_pb2 as chromiumos_dot_config_dot_api_dot_device__config__pb2
from chromiumos.config.api import device_config_id_pb2 as chromiumos_dot_config_dot_api_dot_device__config__id__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='chromiumos/build/api/metadata_service.proto',
  package='chromiumos.build.api',
  syntax='proto3',
  serialized_options=b'Z.go.chromium.org/chromiumos/config/go/build/api',
  create_key=_descriptor._internal_create_key,
  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'
  ,
  dependencies=[chromiumos_dot_config_dot_api_dot_device__config__pb2.DESCRIPTOR,chromiumos_dot_config_dot_api_dot_device__config__id__pb2.DESCRIPTOR,])




_GETDEVICECONFIGREQUEST = _descriptor.Descriptor(
  name='GetDeviceConfigRequest',
  full_name='chromiumos.build.api.GetDeviceConfigRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='id', full_name='chromiumos.build.api.GetDeviceConfigRequest.id', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='scan_config', full_name='chromiumos.build.api.GetDeviceConfigRequest.scan_config', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
    _descriptor.OneofDescriptor(
      name='id_type', full_name='chromiumos.build.api.GetDeviceConfigRequest.id_type',
      index=0, containing_type=None,
      create_key=_descriptor._internal_create_key,
    fields=[]),
  ],
  serialized_start=159,
  serialized_end=320,
)


_GETDEVICECONFIGRESPONSE_SUCCESS = _descriptor.Descriptor(
  name='Success',
  full_name='chromiumos.build.api.GetDeviceConfigResponse.Success',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='device_config', full_name='chromiumos.build.api.GetDeviceConfigResponse.Success.device_config', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=498,
  serialized_end=567,
)

_GETDEVICECONFIGRESPONSE_FAILURE = _descriptor.Descriptor(
  name='Failure',
  full_name='chromiumos.build.api.GetDeviceConfigResponse.Failure',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='error_message', full_name='chromiumos.build.api.GetDeviceConfigResponse.Failure.error_message', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=569,
  serialized_end=601,
)

_GETDEVICECONFIGRESPONSE = _descriptor.Descriptor(
  name='GetDeviceConfigResponse',
  full_name='chromiumos.build.api.GetDeviceConfigResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='success', full_name='chromiumos.build.api.GetDeviceConfigResponse.success', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='failure', full_name='chromiumos.build.api.GetDeviceConfigResponse.failure', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[_GETDEVICECONFIGRESPONSE_SUCCESS, _GETDEVICECONFIGRESPONSE_FAILURE, ],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
    _descriptor.OneofDescriptor(
      name='result', full_name='chromiumos.build.api.GetDeviceConfigResponse.result',
      index=0, containing_type=None,
      create_key=_descriptor._internal_create_key,
    fields=[]),
  ],
  serialized_start=323,
  serialized_end=611,
)

_GETDEVICECONFIGREQUEST.fields_by_name['id'].message_type = chromiumos_dot_config_dot_api_dot_device__config__id__pb2._DEVICECONFIGID
_GETDEVICECONFIGREQUEST.fields_by_name['scan_config'].message_type = chromiumos_dot_config_dot_api_dot_device__config__id__pb2._DEVICECONFIGID_SCANCONFIG
_GETDEVICECONFIGREQUEST.oneofs_by_name['id_type'].fields.append(
  _GETDEVICECONFIGREQUEST.fields_by_name['id'])
_GETDEVICECONFIGREQUEST.fields_by_name['id'].containing_oneof = _GETDEVICECONFIGREQUEST.oneofs_by_name['id_type']
_GETDEVICECONFIGREQUEST.oneofs_by_name['id_type'].fields.append(
  _GETDEVICECONFIGREQUEST.fields_by_name['scan_config'])
_GETDEVICECONFIGREQUEST.fields_by_name['scan_config'].containing_oneof = _GETDEVICECONFIGREQUEST.oneofs_by_name['id_type']
_GETDEVICECONFIGRESPONSE_SUCCESS.fields_by_name['device_config'].message_type = chromiumos_dot_config_dot_api_dot_device__config__pb2._DEVICECONFIG
_GETDEVICECONFIGRESPONSE_SUCCESS.containing_type = _GETDEVICECONFIGRESPONSE
_GETDEVICECONFIGRESPONSE_FAILURE.containing_type = _GETDEVICECONFIGRESPONSE
_GETDEVICECONFIGRESPONSE.fields_by_name['success'].message_type = _GETDEVICECONFIGRESPONSE_SUCCESS
_GETDEVICECONFIGRESPONSE.fields_by_name['failure'].message_type = _GETDEVICECONFIGRESPONSE_FAILURE
_GETDEVICECONFIGRESPONSE.oneofs_by_name['result'].fields.append(
  _GETDEVICECONFIGRESPONSE.fields_by_name['success'])
_GETDEVICECONFIGRESPONSE.fields_by_name['success'].containing_oneof = _GETDEVICECONFIGRESPONSE.oneofs_by_name['result']
_GETDEVICECONFIGRESPONSE.oneofs_by_name['result'].fields.append(
  _GETDEVICECONFIGRESPONSE.fields_by_name['failure'])
_GETDEVICECONFIGRESPONSE.fields_by_name['failure'].containing_oneof = _GETDEVICECONFIGRESPONSE.oneofs_by_name['result']
DESCRIPTOR.message_types_by_name['GetDeviceConfigRequest'] = _GETDEVICECONFIGREQUEST
DESCRIPTOR.message_types_by_name['GetDeviceConfigResponse'] = _GETDEVICECONFIGRESPONSE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

GetDeviceConfigRequest = _reflection.GeneratedProtocolMessageType('GetDeviceConfigRequest', (_message.Message,), {
  'DESCRIPTOR' : _GETDEVICECONFIGREQUEST,
  '__module__' : 'chromiumos.build.api.metadata_service_pb2'
  # @@protoc_insertion_point(class_scope:chromiumos.build.api.GetDeviceConfigRequest)
  })
_sym_db.RegisterMessage(GetDeviceConfigRequest)

GetDeviceConfigResponse = _reflection.GeneratedProtocolMessageType('GetDeviceConfigResponse', (_message.Message,), {

  'Success' : _reflection.GeneratedProtocolMessageType('Success', (_message.Message,), {
    'DESCRIPTOR' : _GETDEVICECONFIGRESPONSE_SUCCESS,
    '__module__' : 'chromiumos.build.api.metadata_service_pb2'
    # @@protoc_insertion_point(class_scope:chromiumos.build.api.GetDeviceConfigResponse.Success)
    })
  ,

  'Failure' : _reflection.GeneratedProtocolMessageType('Failure', (_message.Message,), {
    'DESCRIPTOR' : _GETDEVICECONFIGRESPONSE_FAILURE,
    '__module__' : 'chromiumos.build.api.metadata_service_pb2'
    # @@protoc_insertion_point(class_scope:chromiumos.build.api.GetDeviceConfigResponse.Failure)
    })
  ,
  'DESCRIPTOR' : _GETDEVICECONFIGRESPONSE,
  '__module__' : 'chromiumos.build.api.metadata_service_pb2'
  # @@protoc_insertion_point(class_scope:chromiumos.build.api.GetDeviceConfigResponse)
  })
_sym_db.RegisterMessage(GetDeviceConfigResponse)
_sym_db.RegisterMessage(GetDeviceConfigResponse.Success)
_sym_db.RegisterMessage(GetDeviceConfigResponse.Failure)


DESCRIPTOR._options = None

_METADATASERVICE = _descriptor.ServiceDescriptor(
  name='MetadataService',
  full_name='chromiumos.build.api.MetadataService',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_start=614,
  serialized_end=743,
  methods=[
  _descriptor.MethodDescriptor(
    name='GetDeviceConfig',
    full_name='chromiumos.build.api.MetadataService.GetDeviceConfig',
    index=0,
    containing_service=None,
    input_type=_GETDEVICECONFIGREQUEST,
    output_type=_GETDEVICECONFIGRESPONSE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
])
_sym_db.RegisterServiceDescriptor(_METADATASERVICE)

DESCRIPTOR.services_by_name['MetadataService'] = _METADATASERVICE

# @@protoc_insertion_point(module_scope)
