# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: v1/queue.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 . import common_pb2 as v1_dot_common__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='v1/queue.proto',
  package='nitric.v1.queue',
  syntax='proto3',
  serialized_options=b'\n\022io.nitric.v1.queueB\013NitricQueueP\001Z\014nitric/v1;v1',
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n\x0ev1/queue.proto\x12\x0fnitric.v1.queue\x1a\x0fv1/common.proto\"*\n\nPopRequest\x12\r\n\x05queue\x18\x01 \x01(\t\x12\r\n\x05\x64\x65pth\x18\x02 \x01(\x05\">\n\x0bPopResponse\x12/\n\x05items\x18\x01 \x03(\x0b\x32 .nitric.v1.queue.NitricQueueItem\"K\n\x0bPushRequest\x12\r\n\x05queue\x18\x01 \x01(\t\x12-\n\x06\x65vents\x18\x02 \x03(\x0b\x32\x1d.nitric.v1.common.NitricEvent\"F\n\x0cPushResponse\x12\x36\n\x0e\x66\x61iledMessages\x18\x01 \x03(\x0b\x32\x1e.nitric.v1.queue.FailedMessage\"N\n\rFailedMessage\x12,\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1d.nitric.v1.common.NitricEvent\x12\x0f\n\x07message\x18\x02 \x01(\t\"P\n\x0fNitricQueueItem\x12,\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1d.nitric.v1.common.NitricEvent\x12\x0f\n\x07leaseId\x18\x02 \x01(\t2\x8e\x01\n\x05Queue\x12\x43\n\x04Push\x12\x1c.nitric.v1.queue.PushRequest\x1a\x1d.nitric.v1.queue.PushResponse\x12@\n\x03Pop\x12\x1b.nitric.v1.queue.PopRequest\x1a\x1c.nitric.v1.queue.PopResponseB1\n\x12io.nitric.v1.queueB\x0bNitricQueueP\x01Z\x0cnitric/v1;v1b\x06proto3'
  ,
  dependencies=[v1_dot_common__pb2.DESCRIPTOR,])




_POPREQUEST = _descriptor.Descriptor(
  name='PopRequest',
  full_name='nitric.v1.queue.PopRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='queue', full_name='nitric.v1.queue.PopRequest.queue', 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),
    _descriptor.FieldDescriptor(
      name='depth', full_name='nitric.v1.queue.PopRequest.depth', index=1,
      number=2, type=5, cpp_type=1, 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=[
  ],
  serialized_start=52,
  serialized_end=94,
)


_POPRESPONSE = _descriptor.Descriptor(
  name='PopResponse',
  full_name='nitric.v1.queue.PopResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='items', full_name='nitric.v1.queue.PopResponse.items', index=0,
      number=1, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      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=96,
  serialized_end=158,
)


_PUSHREQUEST = _descriptor.Descriptor(
  name='PushRequest',
  full_name='nitric.v1.queue.PushRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='queue', full_name='nitric.v1.queue.PushRequest.queue', 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),
    _descriptor.FieldDescriptor(
      name='events', full_name='nitric.v1.queue.PushRequest.events', index=1,
      number=2, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      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=160,
  serialized_end=235,
)


_PUSHRESPONSE = _descriptor.Descriptor(
  name='PushResponse',
  full_name='nitric.v1.queue.PushResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='failedMessages', full_name='nitric.v1.queue.PushResponse.failedMessages', index=0,
      number=1, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      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=237,
  serialized_end=307,
)


_FAILEDMESSAGE = _descriptor.Descriptor(
  name='FailedMessage',
  full_name='nitric.v1.queue.FailedMessage',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='event', full_name='nitric.v1.queue.FailedMessage.event', 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='message', full_name='nitric.v1.queue.FailedMessage.message', index=1,
      number=2, 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=309,
  serialized_end=387,
)


_NITRICQUEUEITEM = _descriptor.Descriptor(
  name='NitricQueueItem',
  full_name='nitric.v1.queue.NitricQueueItem',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='event', full_name='nitric.v1.queue.NitricQueueItem.event', 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='leaseId', full_name='nitric.v1.queue.NitricQueueItem.leaseId', index=1,
      number=2, 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=389,
  serialized_end=469,
)

_POPRESPONSE.fields_by_name['items'].message_type = _NITRICQUEUEITEM
_PUSHREQUEST.fields_by_name['events'].message_type = v1_dot_common__pb2._NITRICEVENT
_PUSHRESPONSE.fields_by_name['failedMessages'].message_type = _FAILEDMESSAGE
_FAILEDMESSAGE.fields_by_name['event'].message_type = v1_dot_common__pb2._NITRICEVENT
_NITRICQUEUEITEM.fields_by_name['event'].message_type = v1_dot_common__pb2._NITRICEVENT
DESCRIPTOR.message_types_by_name['PopRequest'] = _POPREQUEST
DESCRIPTOR.message_types_by_name['PopResponse'] = _POPRESPONSE
DESCRIPTOR.message_types_by_name['PushRequest'] = _PUSHREQUEST
DESCRIPTOR.message_types_by_name['PushResponse'] = _PUSHRESPONSE
DESCRIPTOR.message_types_by_name['FailedMessage'] = _FAILEDMESSAGE
DESCRIPTOR.message_types_by_name['NitricQueueItem'] = _NITRICQUEUEITEM
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

PopRequest = _reflection.GeneratedProtocolMessageType('PopRequest', (_message.Message,), {
  'DESCRIPTOR' : _POPREQUEST,
  '__module__' : 'v1.queue_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.queue.PopRequest)
  })
_sym_db.RegisterMessage(PopRequest)

PopResponse = _reflection.GeneratedProtocolMessageType('PopResponse', (_message.Message,), {
  'DESCRIPTOR' : _POPRESPONSE,
  '__module__' : 'v1.queue_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.queue.PopResponse)
  })
_sym_db.RegisterMessage(PopResponse)

PushRequest = _reflection.GeneratedProtocolMessageType('PushRequest', (_message.Message,), {
  'DESCRIPTOR' : _PUSHREQUEST,
  '__module__' : 'v1.queue_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.queue.PushRequest)
  })
_sym_db.RegisterMessage(PushRequest)

PushResponse = _reflection.GeneratedProtocolMessageType('PushResponse', (_message.Message,), {
  'DESCRIPTOR' : _PUSHRESPONSE,
  '__module__' : 'v1.queue_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.queue.PushResponse)
  })
_sym_db.RegisterMessage(PushResponse)

FailedMessage = _reflection.GeneratedProtocolMessageType('FailedMessage', (_message.Message,), {
  'DESCRIPTOR' : _FAILEDMESSAGE,
  '__module__' : 'v1.queue_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.queue.FailedMessage)
  })
_sym_db.RegisterMessage(FailedMessage)

NitricQueueItem = _reflection.GeneratedProtocolMessageType('NitricQueueItem', (_message.Message,), {
  'DESCRIPTOR' : _NITRICQUEUEITEM,
  '__module__' : 'v1.queue_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.queue.NitricQueueItem)
  })
_sym_db.RegisterMessage(NitricQueueItem)


DESCRIPTOR._options = None

_QUEUE = _descriptor.ServiceDescriptor(
  name='Queue',
  full_name='nitric.v1.queue.Queue',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_start=472,
  serialized_end=614,
  methods=[
  _descriptor.MethodDescriptor(
    name='Push',
    full_name='nitric.v1.queue.Queue.Push',
    index=0,
    containing_service=None,
    input_type=_PUSHREQUEST,
    output_type=_PUSHRESPONSE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='Pop',
    full_name='nitric.v1.queue.Queue.Pop',
    index=1,
    containing_service=None,
    input_type=_POPREQUEST,
    output_type=_POPRESPONSE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
])
_sym_db.RegisterServiceDescriptor(_QUEUE)

DESCRIPTOR.services_by_name['Queue'] = _QUEUE

# @@protoc_insertion_point(module_scope)
