presence_pb2.py 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: chatto/api/v1/presence.proto
  5. # Protobuf Python Version: 7.34.1
  6. """Generated protocol buffer code."""
  7. from google.protobuf import descriptor as _descriptor
  8. from google.protobuf import descriptor_pool as _descriptor_pool
  9. from google.protobuf import runtime_version as _runtime_version
  10. from google.protobuf import symbol_database as _symbol_database
  11. from google.protobuf.internal import builder as _builder
  12. _runtime_version.ValidateProtobufRuntimeVersion(
  13. _runtime_version.Domain.PUBLIC,
  14. 7,
  15. 34,
  16. 1,
  17. '',
  18. 'chatto/api/v1/presence.proto'
  19. )
  20. # @@protoc_insertion_point(imports)
  21. _sym_db = _symbol_database.Default()
  22. from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
  23. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63hatto/api/v1/presence.proto\x12\rchatto.api.v1\x1a\x1b\x62uf/validate/validate.proto\"k\n\x15UpdatePresenceRequest\x12;\n\x06status\x18\x01 \x01(\x0e\x32\x1d.chatto.api.v1.PresenceStatusB\x0c\xbaH\t\x82\x01\x06\x10\x01 \x00 \x04\x12\x15\n\ruser_selected\x18\x02 \x01(\x08\"G\n\x16UpdatePresenceResponse\x12-\n\x06status\x18\x01 \x01(\x0e\x32\x1d.chatto.api.v1.PresenceStatus*\xa8\x01\n\x0ePresenceStatus\x12\x1f\n\x1bPRESENCE_STATUS_UNSPECIFIED\x10\x00\x12\x1a\n\x16PRESENCE_STATUS_ONLINE\x10\x01\x12\x18\n\x14PRESENCE_STATUS_AWAY\x10\x02\x12\"\n\x1ePRESENCE_STATUS_DO_NOT_DISTURB\x10\x03\x12\x1b\n\x17PRESENCE_STATUS_OFFLINE\x10\x04\x62\x06proto3')
  24. _globals = globals()
  25. _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
  26. _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.api.v1.presence_pb2', _globals)
  27. if not _descriptor._USE_C_DESCRIPTORS:
  28. DESCRIPTOR._loaded_options = None
  29. _globals['_UPDATEPRESENCEREQUEST'].fields_by_name['status']._loaded_options = None
  30. _globals['_UPDATEPRESENCEREQUEST'].fields_by_name['status']._serialized_options = b'\272H\t\202\001\006\020\001 \000 \004'
  31. _globals['_PRESENCESTATUS']._serialized_start=259
  32. _globals['_PRESENCESTATUS']._serialized_end=427
  33. _globals['_UPDATEPRESENCEREQUEST']._serialized_start=76
  34. _globals['_UPDATEPRESENCEREQUEST']._serialized_end=183
  35. _globals['_UPDATEPRESENCERESPONSE']._serialized_start=185
  36. _globals['_UPDATEPRESENCERESPONSE']._serialized_end=256
  37. # @@protoc_insertion_point(module_scope)