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


DESCRIPTOR = _descriptor.FileDescriptor(
  name='v1/eventing.proto',
  package='nitric.v1.eventing',
  syntax='proto3',
  serialized_options=b'\n\025io.nitric.v1.eventingB\016NitricEventingP\001Z\014nitric/v1;v1',
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n\x11v1/eventing.proto\x12\x12nitric.v1.eventing\x1a\x1bgoogle/protobuf/empty.proto\x1a\x0fv1/common.proto\"Q\n\x0ePublishRequest\x12\x11\n\ttopicName\x18\x01 \x01(\t\x12,\n\x05\x65vent\x18\x02 \x01(\x0b\x32\x1d.nitric.v1.common.NitricEvent\" \n\x0eGetTopicsReply\x12\x0e\n\x06topics\x18\x01 \x03(\t2\x9a\x01\n\x08\x45venting\x12\x45\n\x07Publish\x12\".nitric.v1.eventing.PublishRequest\x1a\x16.google.protobuf.Empty\x12G\n\tGetTopics\x12\x16.google.protobuf.Empty\x1a\".nitric.v1.eventing.GetTopicsReplyB7\n\x15io.nitric.v1.eventingB\x0eNitricEventingP\x01Z\x0cnitric/v1;v1b\x06proto3'
  ,
  dependencies=[google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,v1_dot_common__pb2.DESCRIPTOR,])




_PUBLISHREQUEST = _descriptor.Descriptor(
  name='PublishRequest',
  full_name='nitric.v1.eventing.PublishRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='topicName', full_name='nitric.v1.eventing.PublishRequest.topicName', 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='event', full_name='nitric.v1.eventing.PublishRequest.event', 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=[
  ],
  serialized_start=87,
  serialized_end=168,
)


_GETTOPICSREPLY = _descriptor.Descriptor(
  name='GetTopicsReply',
  full_name='nitric.v1.eventing.GetTopicsReply',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='topics', full_name='nitric.v1.eventing.GetTopicsReply.topics', index=0,
      number=1, type=9, cpp_type=9, 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=170,
  serialized_end=202,
)

_PUBLISHREQUEST.fields_by_name['event'].message_type = v1_dot_common__pb2._NITRICEVENT
DESCRIPTOR.message_types_by_name['PublishRequest'] = _PUBLISHREQUEST
DESCRIPTOR.message_types_by_name['GetTopicsReply'] = _GETTOPICSREPLY
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

PublishRequest = _reflection.GeneratedProtocolMessageType('PublishRequest', (_message.Message,), {
  'DESCRIPTOR' : _PUBLISHREQUEST,
  '__module__' : 'v1.eventing_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.eventing.PublishRequest)
  })
_sym_db.RegisterMessage(PublishRequest)

GetTopicsReply = _reflection.GeneratedProtocolMessageType('GetTopicsReply', (_message.Message,), {
  'DESCRIPTOR' : _GETTOPICSREPLY,
  '__module__' : 'v1.eventing_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.eventing.GetTopicsReply)
  })
_sym_db.RegisterMessage(GetTopicsReply)


DESCRIPTOR._options = None

_EVENTING = _descriptor.ServiceDescriptor(
  name='Eventing',
  full_name='nitric.v1.eventing.Eventing',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_start=205,
  serialized_end=359,
  methods=[
  _descriptor.MethodDescriptor(
    name='Publish',
    full_name='nitric.v1.eventing.Eventing.Publish',
    index=0,
    containing_service=None,
    input_type=_PUBLISHREQUEST,
    output_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='GetTopics',
    full_name='nitric.v1.eventing.Eventing.GetTopics',
    index=1,
    containing_service=None,
    input_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
    output_type=_GETTOPICSREPLY,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
])
_sym_db.RegisterServiceDescriptor(_EVENTING)

DESCRIPTOR.services_by_name['Eventing'] = _EVENTING

# @@protoc_insertion_point(module_scope)
