# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: references.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
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 google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
from . import annotations_pb2 as annotations__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='references.proto',
  package='org.couchers.api.references',
  syntax='proto3',
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n\x10references.proto\x12\x1borg.couchers.api.references\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x11\x61nnotations.proto\"\xe8\x01\n\tReference\x12\x14\n\x0creference_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x66rom_user_id\x18\x02 \x01(\x03\x12\x12\n\nto_user_id\x18\x03 \x01(\x03\x12\x42\n\x0ereference_type\x18\x04 \x01(\x0e\x32*.org.couchers.api.references.ReferenceType\x12\x0c\n\x04text\x18\x05 \x01(\t\x12\x30\n\x0cwritten_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fhost_request_id\x18\x07 \x01(\x03\"\xaf\x01\n\x11ListReferencesReq\x12\x14\n\x0c\x66rom_user_id\x18\x01 \x01(\x04\x12\x12\n\nto_user_id\x18\x02 \x01(\x04\x12I\n\x15reference_type_filter\x18\x03 \x03(\x0e\x32*.org.couchers.api.references.ReferenceType\x12\x11\n\tpage_size\x18\x04 \x01(\r\x12\x12\n\npage_token\x18\x05 \x01(\t\"h\n\x11ListReferencesRes\x12:\n\nreferences\x18\x01 \x03(\x0b\x32&.org.couchers.api.references.Reference\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x17WriteFriendReferenceReq\x12\x12\n\nto_user_id\x18\x01 \x01(\x03\x12\x0c\n\x04text\x18\x02 \x01(\t\x12\x17\n\x0fwas_appropriate\x18\x03 \x01(\x08\x12\x0e\n\x06rating\x18\x04 \x01(\x01\"n\n\x1cWriteHostRequestReferenceReq\x12\x17\n\x0fhost_request_id\x18\x01 \x01(\x03\x12\x0c\n\x04text\x18\x02 \x01(\t\x12\x17\n\x0fwas_appropriate\x18\x03 \x01(\x08\x12\x0e\n\x06rating\x18\x04 \x01(\x01\"1\n\x1b\x41vailableWriteReferencesReq\x12\x12\n\nto_user_id\x18\x01 \x01(\x03\"\xac\x01\n\x1b\x41vailableWriteReferenceType\x12\x17\n\x0fhost_request_id\x18\x01 \x01(\x03\x12\x42\n\x0ereference_type\x18\x02 \x01(\x0e\x32*.org.couchers.api.references.ReferenceType\x12\x30\n\x0ctime_expires\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9f\x01\n\x1b\x41vailableWriteReferencesRes\x12\"\n\x1a\x63\x61n_write_friend_reference\x18\x01 \x01(\x08\x12\\\n\x1a\x61vailable_write_references\x18\x02 \x03(\x0b\x32\x38.org.couchers.api.references.AvailableWriteReferenceType\"w\n\x1fListPendingReferencesToWriteRes\x12T\n\x12pending_references\x18\x01 \x03(\x0b\x32\x38.org.couchers.api.references.AvailableWriteReferenceType*`\n\rReferenceType\x12\x19\n\x15REFERENCE_TYPE_FRIEND\x10\x00\x12\x19\n\x15REFERENCE_TYPE_SURFED\x10\x01\x12\x19\n\x15REFERENCE_TYPE_HOSTED\x10\x02\x32\x8c\x05\n\nReferences\x12r\n\x0eListReferences\x12..org.couchers.api.references.ListReferencesReq\x1a..org.couchers.api.references.ListReferencesRes\"\x00\x12v\n\x14WriteFriendReference\x12\x34.org.couchers.api.references.WriteFriendReferenceReq\x1a&.org.couchers.api.references.Reference\"\x00\x12\x80\x01\n\x19WriteHostRequestReference\x12\x39.org.couchers.api.references.WriteHostRequestReferenceReq\x1a&.org.couchers.api.references.Reference\"\x00\x12\x90\x01\n\x18\x41vailableWriteReferences\x12\x38.org.couchers.api.references.AvailableWriteReferencesReq\x1a\x38.org.couchers.api.references.AvailableWriteReferencesRes\"\x00\x12v\n\x1cListPendingReferencesToWrite\x12\x16.google.protobuf.Empty\x1a<.org.couchers.api.references.ListPendingReferencesToWriteRes\"\x00\x1a\x04\x88\xb5\x18\x03\x62\x06proto3'
  ,
  dependencies=[google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,annotations__pb2.DESCRIPTOR,])

_REFERENCETYPE = _descriptor.EnumDescriptor(
  name='ReferenceType',
  full_name='org.couchers.api.references.ReferenceType',
  filename=None,
  file=DESCRIPTOR,
  create_key=_descriptor._internal_create_key,
  values=[
    _descriptor.EnumValueDescriptor(
      name='REFERENCE_TYPE_FRIEND', index=0, number=0,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='REFERENCE_TYPE_SURFED', index=1, number=1,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='REFERENCE_TYPE_HOSTED', index=2, number=2,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=1372,
  serialized_end=1468,
)
_sym_db.RegisterEnumDescriptor(_REFERENCETYPE)

ReferenceType = enum_type_wrapper.EnumTypeWrapper(_REFERENCETYPE)
REFERENCE_TYPE_FRIEND = 0
REFERENCE_TYPE_SURFED = 1
REFERENCE_TYPE_HOSTED = 2



_REFERENCE = _descriptor.Descriptor(
  name='Reference',
  full_name='org.couchers.api.references.Reference',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='reference_id', full_name='org.couchers.api.references.Reference.reference_id', index=0,
      number=1, type=3, cpp_type=2, 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='from_user_id', full_name='org.couchers.api.references.Reference.from_user_id', index=1,
      number=2, type=3, cpp_type=2, 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='to_user_id', full_name='org.couchers.api.references.Reference.to_user_id', index=2,
      number=3, type=3, cpp_type=2, 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='reference_type', full_name='org.couchers.api.references.Reference.reference_type', index=3,
      number=4, 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='text', full_name='org.couchers.api.references.Reference.text', index=4,
      number=5, 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='written_time', full_name='org.couchers.api.references.Reference.written_time', index=5,
      number=6, 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='host_request_id', full_name='org.couchers.api.references.Reference.host_request_id', index=6,
      number=7, type=3, cpp_type=2, 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=131,
  serialized_end=363,
)


_LISTREFERENCESREQ = _descriptor.Descriptor(
  name='ListReferencesReq',
  full_name='org.couchers.api.references.ListReferencesReq',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='from_user_id', full_name='org.couchers.api.references.ListReferencesReq.from_user_id', index=0,
      number=1, type=4, cpp_type=4, 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='to_user_id', full_name='org.couchers.api.references.ListReferencesReq.to_user_id', index=1,
      number=2, type=4, cpp_type=4, 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='reference_type_filter', full_name='org.couchers.api.references.ListReferencesReq.reference_type_filter', index=2,
      number=3, type=14, cpp_type=8, 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),
    _descriptor.FieldDescriptor(
      name='page_size', full_name='org.couchers.api.references.ListReferencesReq.page_size', index=3,
      number=4, 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),
    _descriptor.FieldDescriptor(
      name='page_token', full_name='org.couchers.api.references.ListReferencesReq.page_token', index=4,
      number=5, 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=366,
  serialized_end=541,
)


_LISTREFERENCESRES = _descriptor.Descriptor(
  name='ListReferencesRes',
  full_name='org.couchers.api.references.ListReferencesRes',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='references', full_name='org.couchers.api.references.ListReferencesRes.references', 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),
    _descriptor.FieldDescriptor(
      name='next_page_token', full_name='org.couchers.api.references.ListReferencesRes.next_page_token', 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=543,
  serialized_end=647,
)


_WRITEFRIENDREFERENCEREQ = _descriptor.Descriptor(
  name='WriteFriendReferenceReq',
  full_name='org.couchers.api.references.WriteFriendReferenceReq',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='to_user_id', full_name='org.couchers.api.references.WriteFriendReferenceReq.to_user_id', index=0,
      number=1, type=3, cpp_type=2, 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='text', full_name='org.couchers.api.references.WriteFriendReferenceReq.text', 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),
    _descriptor.FieldDescriptor(
      name='was_appropriate', full_name='org.couchers.api.references.WriteFriendReferenceReq.was_appropriate', index=2,
      number=3, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      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='rating', full_name='org.couchers.api.references.WriteFriendReferenceReq.rating', index=3,
      number=4, type=1, cpp_type=5, label=1,
      has_default_value=False, default_value=float(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=649,
  serialized_end=749,
)


_WRITEHOSTREQUESTREFERENCEREQ = _descriptor.Descriptor(
  name='WriteHostRequestReferenceReq',
  full_name='org.couchers.api.references.WriteHostRequestReferenceReq',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='host_request_id', full_name='org.couchers.api.references.WriteHostRequestReferenceReq.host_request_id', index=0,
      number=1, type=3, cpp_type=2, 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='text', full_name='org.couchers.api.references.WriteHostRequestReferenceReq.text', 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),
    _descriptor.FieldDescriptor(
      name='was_appropriate', full_name='org.couchers.api.references.WriteHostRequestReferenceReq.was_appropriate', index=2,
      number=3, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      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='rating', full_name='org.couchers.api.references.WriteHostRequestReferenceReq.rating', index=3,
      number=4, type=1, cpp_type=5, label=1,
      has_default_value=False, default_value=float(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=751,
  serialized_end=861,
)


_AVAILABLEWRITEREFERENCESREQ = _descriptor.Descriptor(
  name='AvailableWriteReferencesReq',
  full_name='org.couchers.api.references.AvailableWriteReferencesReq',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='to_user_id', full_name='org.couchers.api.references.AvailableWriteReferencesReq.to_user_id', index=0,
      number=1, type=3, cpp_type=2, 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=863,
  serialized_end=912,
)


_AVAILABLEWRITEREFERENCETYPE = _descriptor.Descriptor(
  name='AvailableWriteReferenceType',
  full_name='org.couchers.api.references.AvailableWriteReferenceType',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='host_request_id', full_name='org.couchers.api.references.AvailableWriteReferenceType.host_request_id', index=0,
      number=1, type=3, cpp_type=2, 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='reference_type', full_name='org.couchers.api.references.AvailableWriteReferenceType.reference_type', index=1,
      number=2, 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='time_expires', full_name='org.couchers.api.references.AvailableWriteReferenceType.time_expires', index=2,
      number=3, 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=915,
  serialized_end=1087,
)


_AVAILABLEWRITEREFERENCESRES = _descriptor.Descriptor(
  name='AvailableWriteReferencesRes',
  full_name='org.couchers.api.references.AvailableWriteReferencesRes',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='can_write_friend_reference', full_name='org.couchers.api.references.AvailableWriteReferencesRes.can_write_friend_reference', index=0,
      number=1, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      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='available_write_references', full_name='org.couchers.api.references.AvailableWriteReferencesRes.available_write_references', 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=1090,
  serialized_end=1249,
)


_LISTPENDINGREFERENCESTOWRITERES = _descriptor.Descriptor(
  name='ListPendingReferencesToWriteRes',
  full_name='org.couchers.api.references.ListPendingReferencesToWriteRes',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='pending_references', full_name='org.couchers.api.references.ListPendingReferencesToWriteRes.pending_references', 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=1251,
  serialized_end=1370,
)

_REFERENCE.fields_by_name['reference_type'].enum_type = _REFERENCETYPE
_REFERENCE.fields_by_name['written_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_LISTREFERENCESREQ.fields_by_name['reference_type_filter'].enum_type = _REFERENCETYPE
_LISTREFERENCESRES.fields_by_name['references'].message_type = _REFERENCE
_AVAILABLEWRITEREFERENCETYPE.fields_by_name['reference_type'].enum_type = _REFERENCETYPE
_AVAILABLEWRITEREFERENCETYPE.fields_by_name['time_expires'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_AVAILABLEWRITEREFERENCESRES.fields_by_name['available_write_references'].message_type = _AVAILABLEWRITEREFERENCETYPE
_LISTPENDINGREFERENCESTOWRITERES.fields_by_name['pending_references'].message_type = _AVAILABLEWRITEREFERENCETYPE
DESCRIPTOR.message_types_by_name['Reference'] = _REFERENCE
DESCRIPTOR.message_types_by_name['ListReferencesReq'] = _LISTREFERENCESREQ
DESCRIPTOR.message_types_by_name['ListReferencesRes'] = _LISTREFERENCESRES
DESCRIPTOR.message_types_by_name['WriteFriendReferenceReq'] = _WRITEFRIENDREFERENCEREQ
DESCRIPTOR.message_types_by_name['WriteHostRequestReferenceReq'] = _WRITEHOSTREQUESTREFERENCEREQ
DESCRIPTOR.message_types_by_name['AvailableWriteReferencesReq'] = _AVAILABLEWRITEREFERENCESREQ
DESCRIPTOR.message_types_by_name['AvailableWriteReferenceType'] = _AVAILABLEWRITEREFERENCETYPE
DESCRIPTOR.message_types_by_name['AvailableWriteReferencesRes'] = _AVAILABLEWRITEREFERENCESRES
DESCRIPTOR.message_types_by_name['ListPendingReferencesToWriteRes'] = _LISTPENDINGREFERENCESTOWRITERES
DESCRIPTOR.enum_types_by_name['ReferenceType'] = _REFERENCETYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

Reference = _reflection.GeneratedProtocolMessageType('Reference', (_message.Message,), {
  'DESCRIPTOR' : _REFERENCE,
  '__module__' : 'references_pb2'
  # @@protoc_insertion_point(class_scope:org.couchers.api.references.Reference)
  })
_sym_db.RegisterMessage(Reference)

ListReferencesReq = _reflection.GeneratedProtocolMessageType('ListReferencesReq', (_message.Message,), {
  'DESCRIPTOR' : _LISTREFERENCESREQ,
  '__module__' : 'references_pb2'
  # @@protoc_insertion_point(class_scope:org.couchers.api.references.ListReferencesReq)
  })
_sym_db.RegisterMessage(ListReferencesReq)

ListReferencesRes = _reflection.GeneratedProtocolMessageType('ListReferencesRes', (_message.Message,), {
  'DESCRIPTOR' : _LISTREFERENCESRES,
  '__module__' : 'references_pb2'
  # @@protoc_insertion_point(class_scope:org.couchers.api.references.ListReferencesRes)
  })
_sym_db.RegisterMessage(ListReferencesRes)

WriteFriendReferenceReq = _reflection.GeneratedProtocolMessageType('WriteFriendReferenceReq', (_message.Message,), {
  'DESCRIPTOR' : _WRITEFRIENDREFERENCEREQ,
  '__module__' : 'references_pb2'
  # @@protoc_insertion_point(class_scope:org.couchers.api.references.WriteFriendReferenceReq)
  })
_sym_db.RegisterMessage(WriteFriendReferenceReq)

WriteHostRequestReferenceReq = _reflection.GeneratedProtocolMessageType('WriteHostRequestReferenceReq', (_message.Message,), {
  'DESCRIPTOR' : _WRITEHOSTREQUESTREFERENCEREQ,
  '__module__' : 'references_pb2'
  # @@protoc_insertion_point(class_scope:org.couchers.api.references.WriteHostRequestReferenceReq)
  })
_sym_db.RegisterMessage(WriteHostRequestReferenceReq)

AvailableWriteReferencesReq = _reflection.GeneratedProtocolMessageType('AvailableWriteReferencesReq', (_message.Message,), {
  'DESCRIPTOR' : _AVAILABLEWRITEREFERENCESREQ,
  '__module__' : 'references_pb2'
  # @@protoc_insertion_point(class_scope:org.couchers.api.references.AvailableWriteReferencesReq)
  })
_sym_db.RegisterMessage(AvailableWriteReferencesReq)

AvailableWriteReferenceType = _reflection.GeneratedProtocolMessageType('AvailableWriteReferenceType', (_message.Message,), {
  'DESCRIPTOR' : _AVAILABLEWRITEREFERENCETYPE,
  '__module__' : 'references_pb2'
  # @@protoc_insertion_point(class_scope:org.couchers.api.references.AvailableWriteReferenceType)
  })
_sym_db.RegisterMessage(AvailableWriteReferenceType)

AvailableWriteReferencesRes = _reflection.GeneratedProtocolMessageType('AvailableWriteReferencesRes', (_message.Message,), {
  'DESCRIPTOR' : _AVAILABLEWRITEREFERENCESRES,
  '__module__' : 'references_pb2'
  # @@protoc_insertion_point(class_scope:org.couchers.api.references.AvailableWriteReferencesRes)
  })
_sym_db.RegisterMessage(AvailableWriteReferencesRes)

ListPendingReferencesToWriteRes = _reflection.GeneratedProtocolMessageType('ListPendingReferencesToWriteRes', (_message.Message,), {
  'DESCRIPTOR' : _LISTPENDINGREFERENCESTOWRITERES,
  '__module__' : 'references_pb2'
  # @@protoc_insertion_point(class_scope:org.couchers.api.references.ListPendingReferencesToWriteRes)
  })
_sym_db.RegisterMessage(ListPendingReferencesToWriteRes)



_REFERENCES = _descriptor.ServiceDescriptor(
  name='References',
  full_name='org.couchers.api.references.References',
  file=DESCRIPTOR,
  index=0,
  serialized_options=b'\210\265\030\003',
  create_key=_descriptor._internal_create_key,
  serialized_start=1471,
  serialized_end=2123,
  methods=[
  _descriptor.MethodDescriptor(
    name='ListReferences',
    full_name='org.couchers.api.references.References.ListReferences',
    index=0,
    containing_service=None,
    input_type=_LISTREFERENCESREQ,
    output_type=_LISTREFERENCESRES,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='WriteFriendReference',
    full_name='org.couchers.api.references.References.WriteFriendReference',
    index=1,
    containing_service=None,
    input_type=_WRITEFRIENDREFERENCEREQ,
    output_type=_REFERENCE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='WriteHostRequestReference',
    full_name='org.couchers.api.references.References.WriteHostRequestReference',
    index=2,
    containing_service=None,
    input_type=_WRITEHOSTREQUESTREFERENCEREQ,
    output_type=_REFERENCE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='AvailableWriteReferences',
    full_name='org.couchers.api.references.References.AvailableWriteReferences',
    index=3,
    containing_service=None,
    input_type=_AVAILABLEWRITEREFERENCESREQ,
    output_type=_AVAILABLEWRITEREFERENCESRES,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='ListPendingReferencesToWrite',
    full_name='org.couchers.api.references.References.ListPendingReferencesToWrite',
    index=4,
    containing_service=None,
    input_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
    output_type=_LISTPENDINGREFERENCESTOWRITERES,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
])
_sym_db.RegisterServiceDescriptor(_REFERENCES)

DESCRIPTOR.services_by_name['References'] = _REFERENCES

# @@protoc_insertion_point(module_scope)
