# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: pw_software_update/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 pw_software_update import tuf_pb2 as pw__software__update_dot_tuf__pb2
from pw_software_update import update_bundle_pb2 as pw__software__update_dot_update__bundle__pb2
from pw_protobuf_protos import common_pb2 as pw__protobuf__protos_dot_common__pb2
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='pw_software_update/service.proto',
  package='pw_software_update',
  syntax='proto3',
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n pw_software_update/service.proto\x12\x12pw_software_update\x1a\x1cpw_software_update/tuf.proto\x1a&pw_software_update/update_bundle.proto\x1a\x1fpw_protobuf_protos/common.proto\x1a\x19google/protobuf/any.proto\"\xc9\x02\n\x12\x42undledUpdateState\x12\x43\n\rmanager_state\x18\x01 \x01(\x0e\x32,.pw_software_update.BundledUpdateState.State\x12\x34\n\'current_state_progress_hundreth_percent\x18\x02 \x01(\rH\x00\x88\x01\x01\"\x8b\x01\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08INACTIVE\x10\x01\x12\x14\n\x10READY_FOR_UPDATE\x10\x02\x12\x1b\n\x17VERIFYING_UPDATE_BUNDLE\x10\x03\x12\x1f\n\x1bVERIFIED_AND_READY_TO_APPLY\x10\x04\x12\x13\n\x0f\x41PPLYING_UPDATE\x10\x05\x42*\n(_current_state_progress_hundreth_percent\"\x90\x01\n\x0fOperationResult\x12\x35\n\x05state\x18\x01 \x01(\x0b\x32&.pw_software_update.BundledUpdateState\x12\x32\n\x0f\x65xtended_status\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x88\x01\x01\x42\x12\n\x10_extended_status\"\x80\x01\n\x13PrepareUpdateResult\x12\x33\n\x06result\x18\x01 \x01(\x0b\x32#.pw_software_update.OperationResult\x12\x1e\n\x11transfer_endpoint\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\x14\n\x12_transfer_endpoint2\x83\x05\n\x14\x42undledUpdateService\x12\x42\n\x05\x41\x62ort\x12\x12.pw.protobuf.Empty\x1a#.pw_software_update.OperationResult\"\x00\x12P\n\x13SoftwareUpdateState\x12\x12.pw.protobuf.Empty\x1a#.pw_software_update.OperationResult\"\x00\x12J\n\x12GetCurrentManifest\x12\x12.pw.protobuf.Empty\x1a\x1c.pw_software_update.Manifest\"\x00\x30\x01\x12R\n\x15VerifyCurrentManifest\x12\x12.pw.protobuf.Empty\x1a#.pw_software_update.OperationResult\"\x00\x12G\n\x11GetStagedManifest\x12\x12.pw.protobuf.Empty\x1a\x1c.pw_software_update.Manifest\"\x00\x12Q\n\x10PrepareForUpdate\x12\x12.pw.protobuf.Empty\x1a\'.pw_software_update.PrepareUpdateResult\"\x00\x12O\n\x12VerifyStagedBundle\x12\x12.pw.protobuf.Empty\x1a#.pw_software_update.OperationResult\"\x00\x12H\n\x0b\x41pplyUpdate\x12\x12.pw.protobuf.Empty\x1a#.pw_software_update.OperationResult\"\x00\x62\x06proto3'
  ,
  dependencies=[pw__software__update_dot_tuf__pb2.DESCRIPTOR,pw__software__update_dot_update__bundle__pb2.DESCRIPTOR,pw__protobuf__protos_dot_common__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,])



_BUNDLEDUPDATESTATE_STATE = _descriptor.EnumDescriptor(
  name='State',
  full_name='pw_software_update.BundledUpdateState.State',
  filename=None,
  file=DESCRIPTOR,
  create_key=_descriptor._internal_create_key,
  values=[
    _descriptor.EnumValueDescriptor(
      name='UNKNOWN', index=0, number=0,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='INACTIVE', index=1, number=1,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='READY_FOR_UPDATE', index=2, number=2,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='VERIFYING_UPDATE_BUNDLE', index=3, number=3,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='VERIFIED_AND_READY_TO_APPLY', index=4, number=4,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='APPLYING_UPDATE', index=5, number=5,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=333,
  serialized_end=472,
)
_sym_db.RegisterEnumDescriptor(_BUNDLEDUPDATESTATE_STATE)


_BUNDLEDUPDATESTATE = _descriptor.Descriptor(
  name='BundledUpdateState',
  full_name='pw_software_update.BundledUpdateState',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='manager_state', full_name='pw_software_update.BundledUpdateState.manager_state', index=0,
      number=1, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      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='current_state_progress_hundreth_percent', full_name='pw_software_update.BundledUpdateState.current_state_progress_hundreth_percent', index=1,
      number=2, type=13, cpp_type=3, label=1,
      has_default_value=False, default_value=0,
      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=[
    _BUNDLEDUPDATESTATE_STATE,
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
    _descriptor.OneofDescriptor(
      name='_current_state_progress_hundreth_percent', full_name='pw_software_update.BundledUpdateState._current_state_progress_hundreth_percent',
      index=0, containing_type=None,
      create_key=_descriptor._internal_create_key,
    fields=[]),
  ],
  serialized_start=187,
  serialized_end=516,
)


_OPERATIONRESULT = _descriptor.Descriptor(
  name='OperationResult',
  full_name='pw_software_update.OperationResult',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='state', full_name='pw_software_update.OperationResult.state', 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='extended_status', full_name='pw_software_update.OperationResult.extended_status', 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='_extended_status', full_name='pw_software_update.OperationResult._extended_status',
      index=0, containing_type=None,
      create_key=_descriptor._internal_create_key,
    fields=[]),
  ],
  serialized_start=519,
  serialized_end=663,
)


_PREPAREUPDATERESULT = _descriptor.Descriptor(
  name='PrepareUpdateResult',
  full_name='pw_software_update.PrepareUpdateResult',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='result', full_name='pw_software_update.PrepareUpdateResult.result', 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='transfer_endpoint', full_name='pw_software_update.PrepareUpdateResult.transfer_endpoint', index=1,
      number=2, type=13, cpp_type=3, label=1,
      has_default_value=False, default_value=0,
      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='_transfer_endpoint', full_name='pw_software_update.PrepareUpdateResult._transfer_endpoint',
      index=0, containing_type=None,
      create_key=_descriptor._internal_create_key,
    fields=[]),
  ],
  serialized_start=666,
  serialized_end=794,
)

_BUNDLEDUPDATESTATE.fields_by_name['manager_state'].enum_type = _BUNDLEDUPDATESTATE_STATE
_BUNDLEDUPDATESTATE_STATE.containing_type = _BUNDLEDUPDATESTATE
_BUNDLEDUPDATESTATE.oneofs_by_name['_current_state_progress_hundreth_percent'].fields.append(
  _BUNDLEDUPDATESTATE.fields_by_name['current_state_progress_hundreth_percent'])
_BUNDLEDUPDATESTATE.fields_by_name['current_state_progress_hundreth_percent'].containing_oneof = _BUNDLEDUPDATESTATE.oneofs_by_name['_current_state_progress_hundreth_percent']
_OPERATIONRESULT.fields_by_name['state'].message_type = _BUNDLEDUPDATESTATE
_OPERATIONRESULT.fields_by_name['extended_status'].message_type = google_dot_protobuf_dot_any__pb2._ANY
_OPERATIONRESULT.oneofs_by_name['_extended_status'].fields.append(
  _OPERATIONRESULT.fields_by_name['extended_status'])
_OPERATIONRESULT.fields_by_name['extended_status'].containing_oneof = _OPERATIONRESULT.oneofs_by_name['_extended_status']
_PREPAREUPDATERESULT.fields_by_name['result'].message_type = _OPERATIONRESULT
_PREPAREUPDATERESULT.oneofs_by_name['_transfer_endpoint'].fields.append(
  _PREPAREUPDATERESULT.fields_by_name['transfer_endpoint'])
_PREPAREUPDATERESULT.fields_by_name['transfer_endpoint'].containing_oneof = _PREPAREUPDATERESULT.oneofs_by_name['_transfer_endpoint']
DESCRIPTOR.message_types_by_name['BundledUpdateState'] = _BUNDLEDUPDATESTATE
DESCRIPTOR.message_types_by_name['OperationResult'] = _OPERATIONRESULT
DESCRIPTOR.message_types_by_name['PrepareUpdateResult'] = _PREPAREUPDATERESULT
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

BundledUpdateState = _reflection.GeneratedProtocolMessageType('BundledUpdateState', (_message.Message,), {
  'DESCRIPTOR' : _BUNDLEDUPDATESTATE,
  '__module__' : 'pw_software_update.service_pb2'
  # @@protoc_insertion_point(class_scope:pw_software_update.BundledUpdateState)
  })
_sym_db.RegisterMessage(BundledUpdateState)

OperationResult = _reflection.GeneratedProtocolMessageType('OperationResult', (_message.Message,), {
  'DESCRIPTOR' : _OPERATIONRESULT,
  '__module__' : 'pw_software_update.service_pb2'
  # @@protoc_insertion_point(class_scope:pw_software_update.OperationResult)
  })
_sym_db.RegisterMessage(OperationResult)

PrepareUpdateResult = _reflection.GeneratedProtocolMessageType('PrepareUpdateResult', (_message.Message,), {
  'DESCRIPTOR' : _PREPAREUPDATERESULT,
  '__module__' : 'pw_software_update.service_pb2'
  # @@protoc_insertion_point(class_scope:pw_software_update.PrepareUpdateResult)
  })
_sym_db.RegisterMessage(PrepareUpdateResult)



_BUNDLEDUPDATESERVICE = _descriptor.ServiceDescriptor(
  name='BundledUpdateService',
  full_name='pw_software_update.BundledUpdateService',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_start=797,
  serialized_end=1440,
  methods=[
  _descriptor.MethodDescriptor(
    name='Abort',
    full_name='pw_software_update.BundledUpdateService.Abort',
    index=0,
    containing_service=None,
    input_type=pw__protobuf__protos_dot_common__pb2._EMPTY,
    output_type=_OPERATIONRESULT,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='SoftwareUpdateState',
    full_name='pw_software_update.BundledUpdateService.SoftwareUpdateState',
    index=1,
    containing_service=None,
    input_type=pw__protobuf__protos_dot_common__pb2._EMPTY,
    output_type=_OPERATIONRESULT,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='GetCurrentManifest',
    full_name='pw_software_update.BundledUpdateService.GetCurrentManifest',
    index=2,
    containing_service=None,
    input_type=pw__protobuf__protos_dot_common__pb2._EMPTY,
    output_type=pw__software__update_dot_update__bundle__pb2._MANIFEST,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='VerifyCurrentManifest',
    full_name='pw_software_update.BundledUpdateService.VerifyCurrentManifest',
    index=3,
    containing_service=None,
    input_type=pw__protobuf__protos_dot_common__pb2._EMPTY,
    output_type=_OPERATIONRESULT,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='GetStagedManifest',
    full_name='pw_software_update.BundledUpdateService.GetStagedManifest',
    index=4,
    containing_service=None,
    input_type=pw__protobuf__protos_dot_common__pb2._EMPTY,
    output_type=pw__software__update_dot_update__bundle__pb2._MANIFEST,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='PrepareForUpdate',
    full_name='pw_software_update.BundledUpdateService.PrepareForUpdate',
    index=5,
    containing_service=None,
    input_type=pw__protobuf__protos_dot_common__pb2._EMPTY,
    output_type=_PREPAREUPDATERESULT,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='VerifyStagedBundle',
    full_name='pw_software_update.BundledUpdateService.VerifyStagedBundle',
    index=6,
    containing_service=None,
    input_type=pw__protobuf__protos_dot_common__pb2._EMPTY,
    output_type=_OPERATIONRESULT,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='ApplyUpdate',
    full_name='pw_software_update.BundledUpdateService.ApplyUpdate',
    index=7,
    containing_service=None,
    input_type=pw__protobuf__protos_dot_common__pb2._EMPTY,
    output_type=_OPERATIONRESULT,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
])
_sym_db.RegisterServiceDescriptor(_BUNDLEDUPDATESERVICE)

DESCRIPTOR.services_by_name['BundledUpdateService'] = _BUNDLEDUPDATESERVICE

# @@protoc_insertion_point(module_scope)
