# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: truffle/app/background.proto
# Protobuf Python Version: 6.30.0
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
    _runtime_version.Domain.PUBLIC,
    6,
    30,
    0,
    '',
    'truffle/app/background.proto'
)
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
from truffle.app import background_feed_pb2 as truffle_dot_app_dot_background__feed__pb2
from truffle.common import icon_pb2 as truffle_dot_common_dot_icon__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ctruffle/app/background.proto\x12\x0btruffle.app\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/descriptor.proto\x1a!truffle/app/background_feed.proto\x1a\x19truffle/common/icon.proto\"\x9b\x0b\n\x1a\x42\x61\x63kgroundAppRuntimePolicy\x12\x44\n\x08interval\x18\x01 \x01(\x0b\x32\x30.truffle.app.BackgroundAppRuntimePolicy.IntervalH\x00\x12\x46\n\x05times\x18\x02 \x01(\x0b\x32\x35.truffle.app.BackgroundAppRuntimePolicy.SpecificTimesH\x00\x12@\n\x06\x61lways\x18\x03 \x01(\x0b\x32..truffle.app.BackgroundAppRuntimePolicy.AlwaysH\x00\x12\x37\n\x14\x66\x65\x65\x64_entry_retention\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x39\n\tTimeOfDay\x12\x0c\n\x04hour\x18\x01 \x01(\r\x12\x0e\n\x06minute\x18\x02 \x01(\r\x12\x0e\n\x06second\x18\x03 \x01(\r\x1a\xa5\x01\n\x0b\x44\x61ilyWindow\x12K\n\x10\x64\x61ily_start_time\x18\x01 \x01(\x0b\x32\x31.truffle.app.BackgroundAppRuntimePolicy.TimeOfDay\x12I\n\x0e\x64\x61ily_end_time\x18\x02 \x01(\x0b\x32\x31.truffle.app.BackgroundAppRuntimePolicy.TimeOfDay\x1a\x91\x03\n\x0cWeeklyWindow\x12\x10\n\x08\x64\x61y_mask\x18\x01 \x01(\r\"\xee\x02\n\x05Masks\x12\x19\n\x15WEEKLY_WINDOW_DEFAULT\x10\x00\x12\x1a\n\x16WEEKLY_WINDOW_ALL_DAYS\x10\x00\x12\x1a\n\x16WEEKLY_WINDOW_SATURDAY\x10\x01\x12\x18\n\x14WEEKLY_WINDOW_FRIDAY\x10\x02\x12\x1a\n\x16WEEKLY_WINDOW_THURSDAY\x10\x04\x12\x1b\n\x17WEEKLY_WINDOW_WEDNESDAY\x10\x08\x12\x19\n\x15WEEKLY_WINDOW_TUESDAY\x10\x10\x12\x18\n\x14WEEKLY_WINDOW_MONDAY\x10 \x12\x18\n\x14WEEKLY_WINDOW_SUNDAY\x10@\x12\x1a\n\x16WEEKLY_WINDOW_WEEKENDS\x10\x41\x12\x1a\n\x16WEEKLY_WINDOW_WEEKDAYS\x10>\x12\x19\n\x15WEEKLY_WINDOW_NO_DAYS\x10\x7f\x12\x19\n\x15WEEKLY_WINDOW_INVALID\x10\x7f\x1a\x02\x10\x01\x1a\xbf\x02\n\x08Interval\x12+\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12K\n\x08schedule\x18\x02 \x01(\x0b\x32\x39.truffle.app.BackgroundAppRuntimePolicy.Interval.Schedule\x1a\xb8\x01\n\x08Schedule\x12N\n\x0c\x64\x61ily_window\x18\x01 \x01(\x0b\x32\x33.truffle.app.BackgroundAppRuntimePolicy.DailyWindowH\x00\x88\x01\x01\x12K\n\rweekly_window\x18\x02 \x01(\x0b\x32\x34.truffle.app.BackgroundAppRuntimePolicy.WeeklyWindowB\x0f\n\r_daily_window\x1a\xa2\x01\n\rSpecificTimes\x12\x44\n\trun_times\x18\x01 \x03(\x0b\x32\x31.truffle.app.BackgroundAppRuntimePolicy.TimeOfDay\x12K\n\rweekly_window\x18\x02 \x01(\x0b\x32\x34.truffle.app.BackgroundAppRuntimePolicy.WeeklyWindow\x1a\x08\n\x06\x41lwaysB\x06\n\x04whenJ\x04\x08\x04\x10\n\"\xe8\x01\n\rBackgroundApp\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\x35\n\x08metadata\x18\x02 \x01(\x0b\x32#.truffle.app.BackgroundApp.Metadata\x12?\n\x0eruntime_policy\x18\x03 \x01(\x0b\x32\'.truffle.app.BackgroundAppRuntimePolicy\x1aQ\n\x08Metadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\"\n\x04icon\x18\x02 \x01(\x0b\x32\x14.truffle.common.Icon\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"\xdc\x01\n\x19\x42\x61\x63kgroundAppNotification\x12\x16\n\x0e\x66\x65\x65\x64_entry_ids\x18\x02 \x03(\x04\x12\x43\n\toperation\x18\x03 \x01(\x0e\x32\x30.truffle.app.BackgroundAppNotification.Operation\"b\n\tOperation\x12\x15\n\x11OPERATION_INVALID\x10\x00\x12\x11\n\rOPERATION_ADD\x10\x01\x12\x14\n\x10OPERATION_DELETE\x10\x02\x12\x15\n\x11OPERATION_REFRESH\x10\x03\"\x90\x01\n\x16\x42\x61\x63kgroundAppBuildInfo\x12\x35\n\x08metadata\x18\x01 \x01(\x0b\x32#.truffle.app.BackgroundApp.Metadata\x12?\n\x0eruntime_policy\x18\x02 \x01(\x0b\x32\'.truffle.app.BackgroundAppRuntimePolicy\"L\n%BackgroundAppSubmitFeedContentRequest\x12#\n\x04\x63\x61rd\x18\x02 \x01(\x0b\x32\x15.truffle.app.FeedCard\"?\n&BackgroundAppSubmitFeedContentResponse\x12\x15\n\rfeed_entry_id\x18\x01 \x01(\x04\"\x1b\n\x19\x42\x61\x63kgroundAppOnRunRequest\"\x1c\n\x1a\x42\x61\x63kgroundAppOnRunResponse\"\x1b\n\x19\x42\x61\x63kgroundAppYieldRequest\"Y\n\x1a\x42\x61\x63kgroundAppYieldResponse\x12;\n\x17next_scheduled_run_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xeb\x01\n\x12\x42\x61\x63kgroundAppError\x12=\n\nerror_type\x18\x01 \x01(\x0e\x32).truffle.app.BackgroundAppError.ErrorType\x12\x15\n\rerror_message\x18\x02 \x01(\t\"\x7f\n\tErrorType\x12\x1d\n\x19\x42G_APP_ERROR_TYPE_INVALID\x10\x00\x12\x1d\n\x19\x42G_APP_ERROR_TYPE_RUNTIME\x10\x01\x12\x15\n\x11\x42G_APP_ERROR_AUTH\x10\x02\x12\x1d\n\x19\x42G_APP_ERROR_TYPE_UNKNOWN\x10\x03\"m\n\x1f\x42\x61\x63kgroundAppReportErrorRequest\x12.\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1f.truffle.app.BackgroundAppError\x12\x1a\n\x12needs_intervention\x18\x02 \x01(\x08\"\"\n BackgroundAppReportErrorResponse2\xb4\x03\n\x14\x42\x61\x63kgroundAppService\x12|\n\x11SubmitFeedContent\x12\x32.truffle.app.BackgroundAppSubmitFeedContentRequest\x1a\x33.truffle.app.BackgroundAppSubmitFeedContentResponse\x12X\n\x05OnRun\x12&.truffle.app.BackgroundAppOnRunRequest\x1a\'.truffle.app.BackgroundAppOnRunResponse\x12X\n\x05Yield\x12&.truffle.app.BackgroundAppYieldRequest\x1a\'.truffle.app.BackgroundAppYieldResponse\x12j\n\x0bReportError\x12,.truffle.app.BackgroundAppReportErrorRequest\x1a-.truffle.app.BackgroundAppReportErrorResponseb\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'truffle.app.background_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  DESCRIPTOR._loaded_options = None
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_WEEKLYWINDOW_MASKS']._loaded_options = None
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_WEEKLYWINDOW_MASKS']._serialized_options = b'\020\001'
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY']._serialized_start=207
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY']._serialized_end=1642
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_TIMEOFDAY']._serialized_start=502
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_TIMEOFDAY']._serialized_end=559
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_DAILYWINDOW']._serialized_start=562
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_DAILYWINDOW']._serialized_end=727
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_WEEKLYWINDOW']._serialized_start=730
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_WEEKLYWINDOW']._serialized_end=1131
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_WEEKLYWINDOW_MASKS']._serialized_start=765
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_WEEKLYWINDOW_MASKS']._serialized_end=1131
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_INTERVAL']._serialized_start=1134
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_INTERVAL']._serialized_end=1453
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_INTERVAL_SCHEDULE']._serialized_start=1269
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_INTERVAL_SCHEDULE']._serialized_end=1453
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_SPECIFICTIMES']._serialized_start=1456
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_SPECIFICTIMES']._serialized_end=1618
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_ALWAYS']._serialized_start=1620
  _globals['_BACKGROUNDAPPRUNTIMEPOLICY_ALWAYS']._serialized_end=1628
  _globals['_BACKGROUNDAPP']._serialized_start=1645
  _globals['_BACKGROUNDAPP']._serialized_end=1877
  _globals['_BACKGROUNDAPP_METADATA']._serialized_start=1796
  _globals['_BACKGROUNDAPP_METADATA']._serialized_end=1877
  _globals['_BACKGROUNDAPPNOTIFICATION']._serialized_start=1880
  _globals['_BACKGROUNDAPPNOTIFICATION']._serialized_end=2100
  _globals['_BACKGROUNDAPPNOTIFICATION_OPERATION']._serialized_start=2002
  _globals['_BACKGROUNDAPPNOTIFICATION_OPERATION']._serialized_end=2100
  _globals['_BACKGROUNDAPPBUILDINFO']._serialized_start=2103
  _globals['_BACKGROUNDAPPBUILDINFO']._serialized_end=2247
  _globals['_BACKGROUNDAPPSUBMITFEEDCONTENTREQUEST']._serialized_start=2249
  _globals['_BACKGROUNDAPPSUBMITFEEDCONTENTREQUEST']._serialized_end=2325
  _globals['_BACKGROUNDAPPSUBMITFEEDCONTENTRESPONSE']._serialized_start=2327
  _globals['_BACKGROUNDAPPSUBMITFEEDCONTENTRESPONSE']._serialized_end=2390
  _globals['_BACKGROUNDAPPONRUNREQUEST']._serialized_start=2392
  _globals['_BACKGROUNDAPPONRUNREQUEST']._serialized_end=2419
  _globals['_BACKGROUNDAPPONRUNRESPONSE']._serialized_start=2421
  _globals['_BACKGROUNDAPPONRUNRESPONSE']._serialized_end=2449
  _globals['_BACKGROUNDAPPYIELDREQUEST']._serialized_start=2451
  _globals['_BACKGROUNDAPPYIELDREQUEST']._serialized_end=2478
  _globals['_BACKGROUNDAPPYIELDRESPONSE']._serialized_start=2480
  _globals['_BACKGROUNDAPPYIELDRESPONSE']._serialized_end=2569
  _globals['_BACKGROUNDAPPERROR']._serialized_start=2572
  _globals['_BACKGROUNDAPPERROR']._serialized_end=2807
  _globals['_BACKGROUNDAPPERROR_ERRORTYPE']._serialized_start=2680
  _globals['_BACKGROUNDAPPERROR_ERRORTYPE']._serialized_end=2807
  _globals['_BACKGROUNDAPPREPORTERRORREQUEST']._serialized_start=2809
  _globals['_BACKGROUNDAPPREPORTERRORREQUEST']._serialized_end=2918
  _globals['_BACKGROUNDAPPREPORTERRORRESPONSE']._serialized_start=2920
  _globals['_BACKGROUNDAPPREPORTERRORRESPONSE']._serialized_end=2954
  _globals['_BACKGROUNDAPPSERVICE']._serialized_start=2957
  _globals['_BACKGROUNDAPPSERVICE']._serialized_end=3393
# @@protoc_insertion_point(module_scope)
