/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: Protos/ClientAPI/ClientMessageDtos.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "ClientMessageDtos.pb-c.h" void event_store__client__messages__new_event__init (EventStore__Client__Messages__NewEvent *message) { static const EventStore__Client__Messages__NewEvent init_value = EVENT_STORE__CLIENT__MESSAGES__NEW_EVENT__INIT; *message = init_value; } size_t event_store__client__messages__new_event__get_packed_size (const EventStore__Client__Messages__NewEvent *message) { assert(message->base.descriptor == &event_store__client__messages__new_event__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__new_event__pack (const EventStore__Client__Messages__NewEvent *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__new_event__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__new_event__pack_to_buffer (const EventStore__Client__Messages__NewEvent *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__new_event__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__NewEvent * event_store__client__messages__new_event__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__NewEvent *) protobuf_c_message_unpack (&event_store__client__messages__new_event__descriptor, allocator, len, data); } void event_store__client__messages__new_event__free_unpacked (EventStore__Client__Messages__NewEvent *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__new_event__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__event_record__init (EventStore__Client__Messages__EventRecord *message) { static const EventStore__Client__Messages__EventRecord init_value = EVENT_STORE__CLIENT__MESSAGES__EVENT_RECORD__INIT; *message = init_value; } size_t event_store__client__messages__event_record__get_packed_size (const EventStore__Client__Messages__EventRecord *message) { assert(message->base.descriptor == &event_store__client__messages__event_record__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__event_record__pack (const EventStore__Client__Messages__EventRecord *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__event_record__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__event_record__pack_to_buffer (const EventStore__Client__Messages__EventRecord *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__event_record__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__EventRecord * event_store__client__messages__event_record__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__EventRecord *) protobuf_c_message_unpack (&event_store__client__messages__event_record__descriptor, allocator, len, data); } void event_store__client__messages__event_record__free_unpacked (EventStore__Client__Messages__EventRecord *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__event_record__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__resolved_indexed_event__init (EventStore__Client__Messages__ResolvedIndexedEvent *message) { static const EventStore__Client__Messages__ResolvedIndexedEvent init_value = EVENT_STORE__CLIENT__MESSAGES__RESOLVED_INDEXED_EVENT__INIT; *message = init_value; } size_t event_store__client__messages__resolved_indexed_event__get_packed_size (const EventStore__Client__Messages__ResolvedIndexedEvent *message) { assert(message->base.descriptor == &event_store__client__messages__resolved_indexed_event__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__resolved_indexed_event__pack (const EventStore__Client__Messages__ResolvedIndexedEvent *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__resolved_indexed_event__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__resolved_indexed_event__pack_to_buffer (const EventStore__Client__Messages__ResolvedIndexedEvent *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__resolved_indexed_event__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ResolvedIndexedEvent * event_store__client__messages__resolved_indexed_event__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ResolvedIndexedEvent *) protobuf_c_message_unpack (&event_store__client__messages__resolved_indexed_event__descriptor, allocator, len, data); } void event_store__client__messages__resolved_indexed_event__free_unpacked (EventStore__Client__Messages__ResolvedIndexedEvent *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__resolved_indexed_event__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__resolved_event__init (EventStore__Client__Messages__ResolvedEvent *message) { static const EventStore__Client__Messages__ResolvedEvent init_value = EVENT_STORE__CLIENT__MESSAGES__RESOLVED_EVENT__INIT; *message = init_value; } size_t event_store__client__messages__resolved_event__get_packed_size (const EventStore__Client__Messages__ResolvedEvent *message) { assert(message->base.descriptor == &event_store__client__messages__resolved_event__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__resolved_event__pack (const EventStore__Client__Messages__ResolvedEvent *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__resolved_event__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__resolved_event__pack_to_buffer (const EventStore__Client__Messages__ResolvedEvent *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__resolved_event__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ResolvedEvent * event_store__client__messages__resolved_event__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ResolvedEvent *) protobuf_c_message_unpack (&event_store__client__messages__resolved_event__descriptor, allocator, len, data); } void event_store__client__messages__resolved_event__free_unpacked (EventStore__Client__Messages__ResolvedEvent *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__resolved_event__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__write_events__init (EventStore__Client__Messages__WriteEvents *message) { static const EventStore__Client__Messages__WriteEvents init_value = EVENT_STORE__CLIENT__MESSAGES__WRITE_EVENTS__INIT; *message = init_value; } size_t event_store__client__messages__write_events__get_packed_size (const EventStore__Client__Messages__WriteEvents *message) { assert(message->base.descriptor == &event_store__client__messages__write_events__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__write_events__pack (const EventStore__Client__Messages__WriteEvents *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__write_events__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__write_events__pack_to_buffer (const EventStore__Client__Messages__WriteEvents *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__write_events__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__WriteEvents * event_store__client__messages__write_events__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__WriteEvents *) protobuf_c_message_unpack (&event_store__client__messages__write_events__descriptor, allocator, len, data); } void event_store__client__messages__write_events__free_unpacked (EventStore__Client__Messages__WriteEvents *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__write_events__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__write_events_completed__init (EventStore__Client__Messages__WriteEventsCompleted *message) { static const EventStore__Client__Messages__WriteEventsCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__WRITE_EVENTS_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__write_events_completed__get_packed_size (const EventStore__Client__Messages__WriteEventsCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__write_events_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__write_events_completed__pack (const EventStore__Client__Messages__WriteEventsCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__write_events_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__write_events_completed__pack_to_buffer (const EventStore__Client__Messages__WriteEventsCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__write_events_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__WriteEventsCompleted * event_store__client__messages__write_events_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__WriteEventsCompleted *) protobuf_c_message_unpack (&event_store__client__messages__write_events_completed__descriptor, allocator, len, data); } void event_store__client__messages__write_events_completed__free_unpacked (EventStore__Client__Messages__WriteEventsCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__write_events_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__delete_stream__init (EventStore__Client__Messages__DeleteStream *message) { static const EventStore__Client__Messages__DeleteStream init_value = EVENT_STORE__CLIENT__MESSAGES__DELETE_STREAM__INIT; *message = init_value; } size_t event_store__client__messages__delete_stream__get_packed_size (const EventStore__Client__Messages__DeleteStream *message) { assert(message->base.descriptor == &event_store__client__messages__delete_stream__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__delete_stream__pack (const EventStore__Client__Messages__DeleteStream *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__delete_stream__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__delete_stream__pack_to_buffer (const EventStore__Client__Messages__DeleteStream *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__delete_stream__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__DeleteStream * event_store__client__messages__delete_stream__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__DeleteStream *) protobuf_c_message_unpack (&event_store__client__messages__delete_stream__descriptor, allocator, len, data); } void event_store__client__messages__delete_stream__free_unpacked (EventStore__Client__Messages__DeleteStream *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__delete_stream__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__delete_stream_completed__init (EventStore__Client__Messages__DeleteStreamCompleted *message) { static const EventStore__Client__Messages__DeleteStreamCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__DELETE_STREAM_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__delete_stream_completed__get_packed_size (const EventStore__Client__Messages__DeleteStreamCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__delete_stream_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__delete_stream_completed__pack (const EventStore__Client__Messages__DeleteStreamCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__delete_stream_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__delete_stream_completed__pack_to_buffer (const EventStore__Client__Messages__DeleteStreamCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__delete_stream_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__DeleteStreamCompleted * event_store__client__messages__delete_stream_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__DeleteStreamCompleted *) protobuf_c_message_unpack (&event_store__client__messages__delete_stream_completed__descriptor, allocator, len, data); } void event_store__client__messages__delete_stream_completed__free_unpacked (EventStore__Client__Messages__DeleteStreamCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__delete_stream_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__transaction_start__init (EventStore__Client__Messages__TransactionStart *message) { static const EventStore__Client__Messages__TransactionStart init_value = EVENT_STORE__CLIENT__MESSAGES__TRANSACTION_START__INIT; *message = init_value; } size_t event_store__client__messages__transaction_start__get_packed_size (const EventStore__Client__Messages__TransactionStart *message) { assert(message->base.descriptor == &event_store__client__messages__transaction_start__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__transaction_start__pack (const EventStore__Client__Messages__TransactionStart *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__transaction_start__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__transaction_start__pack_to_buffer (const EventStore__Client__Messages__TransactionStart *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__transaction_start__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__TransactionStart * event_store__client__messages__transaction_start__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__TransactionStart *) protobuf_c_message_unpack (&event_store__client__messages__transaction_start__descriptor, allocator, len, data); } void event_store__client__messages__transaction_start__free_unpacked (EventStore__Client__Messages__TransactionStart *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__transaction_start__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__transaction_start_completed__init (EventStore__Client__Messages__TransactionStartCompleted *message) { static const EventStore__Client__Messages__TransactionStartCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__TRANSACTION_START_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__transaction_start_completed__get_packed_size (const EventStore__Client__Messages__TransactionStartCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__transaction_start_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__transaction_start_completed__pack (const EventStore__Client__Messages__TransactionStartCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__transaction_start_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__transaction_start_completed__pack_to_buffer (const EventStore__Client__Messages__TransactionStartCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__transaction_start_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__TransactionStartCompleted * event_store__client__messages__transaction_start_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__TransactionStartCompleted *) protobuf_c_message_unpack (&event_store__client__messages__transaction_start_completed__descriptor, allocator, len, data); } void event_store__client__messages__transaction_start_completed__free_unpacked (EventStore__Client__Messages__TransactionStartCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__transaction_start_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__transaction_write__init (EventStore__Client__Messages__TransactionWrite *message) { static const EventStore__Client__Messages__TransactionWrite init_value = EVENT_STORE__CLIENT__MESSAGES__TRANSACTION_WRITE__INIT; *message = init_value; } size_t event_store__client__messages__transaction_write__get_packed_size (const EventStore__Client__Messages__TransactionWrite *message) { assert(message->base.descriptor == &event_store__client__messages__transaction_write__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__transaction_write__pack (const EventStore__Client__Messages__TransactionWrite *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__transaction_write__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__transaction_write__pack_to_buffer (const EventStore__Client__Messages__TransactionWrite *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__transaction_write__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__TransactionWrite * event_store__client__messages__transaction_write__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__TransactionWrite *) protobuf_c_message_unpack (&event_store__client__messages__transaction_write__descriptor, allocator, len, data); } void event_store__client__messages__transaction_write__free_unpacked (EventStore__Client__Messages__TransactionWrite *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__transaction_write__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__transaction_write_completed__init (EventStore__Client__Messages__TransactionWriteCompleted *message) { static const EventStore__Client__Messages__TransactionWriteCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__TRANSACTION_WRITE_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__transaction_write_completed__get_packed_size (const EventStore__Client__Messages__TransactionWriteCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__transaction_write_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__transaction_write_completed__pack (const EventStore__Client__Messages__TransactionWriteCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__transaction_write_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__transaction_write_completed__pack_to_buffer (const EventStore__Client__Messages__TransactionWriteCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__transaction_write_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__TransactionWriteCompleted * event_store__client__messages__transaction_write_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__TransactionWriteCompleted *) protobuf_c_message_unpack (&event_store__client__messages__transaction_write_completed__descriptor, allocator, len, data); } void event_store__client__messages__transaction_write_completed__free_unpacked (EventStore__Client__Messages__TransactionWriteCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__transaction_write_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__transaction_commit__init (EventStore__Client__Messages__TransactionCommit *message) { static const EventStore__Client__Messages__TransactionCommit init_value = EVENT_STORE__CLIENT__MESSAGES__TRANSACTION_COMMIT__INIT; *message = init_value; } size_t event_store__client__messages__transaction_commit__get_packed_size (const EventStore__Client__Messages__TransactionCommit *message) { assert(message->base.descriptor == &event_store__client__messages__transaction_commit__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__transaction_commit__pack (const EventStore__Client__Messages__TransactionCommit *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__transaction_commit__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__transaction_commit__pack_to_buffer (const EventStore__Client__Messages__TransactionCommit *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__transaction_commit__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__TransactionCommit * event_store__client__messages__transaction_commit__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__TransactionCommit *) protobuf_c_message_unpack (&event_store__client__messages__transaction_commit__descriptor, allocator, len, data); } void event_store__client__messages__transaction_commit__free_unpacked (EventStore__Client__Messages__TransactionCommit *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__transaction_commit__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__transaction_commit_completed__init (EventStore__Client__Messages__TransactionCommitCompleted *message) { static const EventStore__Client__Messages__TransactionCommitCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__TRANSACTION_COMMIT_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__transaction_commit_completed__get_packed_size (const EventStore__Client__Messages__TransactionCommitCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__transaction_commit_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__transaction_commit_completed__pack (const EventStore__Client__Messages__TransactionCommitCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__transaction_commit_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__transaction_commit_completed__pack_to_buffer (const EventStore__Client__Messages__TransactionCommitCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__transaction_commit_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__TransactionCommitCompleted * event_store__client__messages__transaction_commit_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__TransactionCommitCompleted *) protobuf_c_message_unpack (&event_store__client__messages__transaction_commit_completed__descriptor, allocator, len, data); } void event_store__client__messages__transaction_commit_completed__free_unpacked (EventStore__Client__Messages__TransactionCommitCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__transaction_commit_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__read_event__init (EventStore__Client__Messages__ReadEvent *message) { static const EventStore__Client__Messages__ReadEvent init_value = EVENT_STORE__CLIENT__MESSAGES__READ_EVENT__INIT; *message = init_value; } size_t event_store__client__messages__read_event__get_packed_size (const EventStore__Client__Messages__ReadEvent *message) { assert(message->base.descriptor == &event_store__client__messages__read_event__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__read_event__pack (const EventStore__Client__Messages__ReadEvent *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__read_event__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__read_event__pack_to_buffer (const EventStore__Client__Messages__ReadEvent *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__read_event__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ReadEvent * event_store__client__messages__read_event__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ReadEvent *) protobuf_c_message_unpack (&event_store__client__messages__read_event__descriptor, allocator, len, data); } void event_store__client__messages__read_event__free_unpacked (EventStore__Client__Messages__ReadEvent *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__read_event__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__read_event_completed__init (EventStore__Client__Messages__ReadEventCompleted *message) { static const EventStore__Client__Messages__ReadEventCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__READ_EVENT_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__read_event_completed__get_packed_size (const EventStore__Client__Messages__ReadEventCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__read_event_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__read_event_completed__pack (const EventStore__Client__Messages__ReadEventCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__read_event_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__read_event_completed__pack_to_buffer (const EventStore__Client__Messages__ReadEventCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__read_event_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ReadEventCompleted * event_store__client__messages__read_event_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ReadEventCompleted *) protobuf_c_message_unpack (&event_store__client__messages__read_event_completed__descriptor, allocator, len, data); } void event_store__client__messages__read_event_completed__free_unpacked (EventStore__Client__Messages__ReadEventCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__read_event_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__read_stream_events__init (EventStore__Client__Messages__ReadStreamEvents *message) { static const EventStore__Client__Messages__ReadStreamEvents init_value = EVENT_STORE__CLIENT__MESSAGES__READ_STREAM_EVENTS__INIT; *message = init_value; } size_t event_store__client__messages__read_stream_events__get_packed_size (const EventStore__Client__Messages__ReadStreamEvents *message) { assert(message->base.descriptor == &event_store__client__messages__read_stream_events__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__read_stream_events__pack (const EventStore__Client__Messages__ReadStreamEvents *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__read_stream_events__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__read_stream_events__pack_to_buffer (const EventStore__Client__Messages__ReadStreamEvents *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__read_stream_events__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ReadStreamEvents * event_store__client__messages__read_stream_events__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ReadStreamEvents *) protobuf_c_message_unpack (&event_store__client__messages__read_stream_events__descriptor, allocator, len, data); } void event_store__client__messages__read_stream_events__free_unpacked (EventStore__Client__Messages__ReadStreamEvents *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__read_stream_events__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__read_stream_events_completed__init (EventStore__Client__Messages__ReadStreamEventsCompleted *message) { static const EventStore__Client__Messages__ReadStreamEventsCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__READ_STREAM_EVENTS_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__read_stream_events_completed__get_packed_size (const EventStore__Client__Messages__ReadStreamEventsCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__read_stream_events_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__read_stream_events_completed__pack (const EventStore__Client__Messages__ReadStreamEventsCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__read_stream_events_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__read_stream_events_completed__pack_to_buffer (const EventStore__Client__Messages__ReadStreamEventsCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__read_stream_events_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ReadStreamEventsCompleted * event_store__client__messages__read_stream_events_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ReadStreamEventsCompleted *) protobuf_c_message_unpack (&event_store__client__messages__read_stream_events_completed__descriptor, allocator, len, data); } void event_store__client__messages__read_stream_events_completed__free_unpacked (EventStore__Client__Messages__ReadStreamEventsCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__read_stream_events_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__read_all_events__init (EventStore__Client__Messages__ReadAllEvents *message) { static const EventStore__Client__Messages__ReadAllEvents init_value = EVENT_STORE__CLIENT__MESSAGES__READ_ALL_EVENTS__INIT; *message = init_value; } size_t event_store__client__messages__read_all_events__get_packed_size (const EventStore__Client__Messages__ReadAllEvents *message) { assert(message->base.descriptor == &event_store__client__messages__read_all_events__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__read_all_events__pack (const EventStore__Client__Messages__ReadAllEvents *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__read_all_events__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__read_all_events__pack_to_buffer (const EventStore__Client__Messages__ReadAllEvents *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__read_all_events__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ReadAllEvents * event_store__client__messages__read_all_events__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ReadAllEvents *) protobuf_c_message_unpack (&event_store__client__messages__read_all_events__descriptor, allocator, len, data); } void event_store__client__messages__read_all_events__free_unpacked (EventStore__Client__Messages__ReadAllEvents *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__read_all_events__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__read_all_events_completed__init (EventStore__Client__Messages__ReadAllEventsCompleted *message) { static const EventStore__Client__Messages__ReadAllEventsCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__READ_ALL_EVENTS_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__read_all_events_completed__get_packed_size (const EventStore__Client__Messages__ReadAllEventsCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__read_all_events_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__read_all_events_completed__pack (const EventStore__Client__Messages__ReadAllEventsCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__read_all_events_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__read_all_events_completed__pack_to_buffer (const EventStore__Client__Messages__ReadAllEventsCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__read_all_events_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ReadAllEventsCompleted * event_store__client__messages__read_all_events_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ReadAllEventsCompleted *) protobuf_c_message_unpack (&event_store__client__messages__read_all_events_completed__descriptor, allocator, len, data); } void event_store__client__messages__read_all_events_completed__free_unpacked (EventStore__Client__Messages__ReadAllEventsCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__read_all_events_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__create_persistent_subscription__init (EventStore__Client__Messages__CreatePersistentSubscription *message) { static const EventStore__Client__Messages__CreatePersistentSubscription init_value = EVENT_STORE__CLIENT__MESSAGES__CREATE_PERSISTENT_SUBSCRIPTION__INIT; *message = init_value; } size_t event_store__client__messages__create_persistent_subscription__get_packed_size (const EventStore__Client__Messages__CreatePersistentSubscription *message) { assert(message->base.descriptor == &event_store__client__messages__create_persistent_subscription__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__create_persistent_subscription__pack (const EventStore__Client__Messages__CreatePersistentSubscription *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__create_persistent_subscription__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__create_persistent_subscription__pack_to_buffer (const EventStore__Client__Messages__CreatePersistentSubscription *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__create_persistent_subscription__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__CreatePersistentSubscription * event_store__client__messages__create_persistent_subscription__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__CreatePersistentSubscription *) protobuf_c_message_unpack (&event_store__client__messages__create_persistent_subscription__descriptor, allocator, len, data); } void event_store__client__messages__create_persistent_subscription__free_unpacked (EventStore__Client__Messages__CreatePersistentSubscription *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__create_persistent_subscription__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__delete_persistent_subscription__init (EventStore__Client__Messages__DeletePersistentSubscription *message) { static const EventStore__Client__Messages__DeletePersistentSubscription init_value = EVENT_STORE__CLIENT__MESSAGES__DELETE_PERSISTENT_SUBSCRIPTION__INIT; *message = init_value; } size_t event_store__client__messages__delete_persistent_subscription__get_packed_size (const EventStore__Client__Messages__DeletePersistentSubscription *message) { assert(message->base.descriptor == &event_store__client__messages__delete_persistent_subscription__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__delete_persistent_subscription__pack (const EventStore__Client__Messages__DeletePersistentSubscription *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__delete_persistent_subscription__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__delete_persistent_subscription__pack_to_buffer (const EventStore__Client__Messages__DeletePersistentSubscription *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__delete_persistent_subscription__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__DeletePersistentSubscription * event_store__client__messages__delete_persistent_subscription__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__DeletePersistentSubscription *) protobuf_c_message_unpack (&event_store__client__messages__delete_persistent_subscription__descriptor, allocator, len, data); } void event_store__client__messages__delete_persistent_subscription__free_unpacked (EventStore__Client__Messages__DeletePersistentSubscription *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__delete_persistent_subscription__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__update_persistent_subscription__init (EventStore__Client__Messages__UpdatePersistentSubscription *message) { static const EventStore__Client__Messages__UpdatePersistentSubscription init_value = EVENT_STORE__CLIENT__MESSAGES__UPDATE_PERSISTENT_SUBSCRIPTION__INIT; *message = init_value; } size_t event_store__client__messages__update_persistent_subscription__get_packed_size (const EventStore__Client__Messages__UpdatePersistentSubscription *message) { assert(message->base.descriptor == &event_store__client__messages__update_persistent_subscription__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__update_persistent_subscription__pack (const EventStore__Client__Messages__UpdatePersistentSubscription *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__update_persistent_subscription__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__update_persistent_subscription__pack_to_buffer (const EventStore__Client__Messages__UpdatePersistentSubscription *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__update_persistent_subscription__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__UpdatePersistentSubscription * event_store__client__messages__update_persistent_subscription__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__UpdatePersistentSubscription *) protobuf_c_message_unpack (&event_store__client__messages__update_persistent_subscription__descriptor, allocator, len, data); } void event_store__client__messages__update_persistent_subscription__free_unpacked (EventStore__Client__Messages__UpdatePersistentSubscription *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__update_persistent_subscription__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__update_persistent_subscription_completed__init (EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted *message) { static const EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__UPDATE_PERSISTENT_SUBSCRIPTION_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__update_persistent_subscription_completed__get_packed_size (const EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__update_persistent_subscription_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__update_persistent_subscription_completed__pack (const EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__update_persistent_subscription_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__update_persistent_subscription_completed__pack_to_buffer (const EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__update_persistent_subscription_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted * event_store__client__messages__update_persistent_subscription_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted *) protobuf_c_message_unpack (&event_store__client__messages__update_persistent_subscription_completed__descriptor, allocator, len, data); } void event_store__client__messages__update_persistent_subscription_completed__free_unpacked (EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__update_persistent_subscription_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__create_persistent_subscription_completed__init (EventStore__Client__Messages__CreatePersistentSubscriptionCompleted *message) { static const EventStore__Client__Messages__CreatePersistentSubscriptionCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__CREATE_PERSISTENT_SUBSCRIPTION_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__create_persistent_subscription_completed__get_packed_size (const EventStore__Client__Messages__CreatePersistentSubscriptionCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__create_persistent_subscription_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__create_persistent_subscription_completed__pack (const EventStore__Client__Messages__CreatePersistentSubscriptionCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__create_persistent_subscription_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__create_persistent_subscription_completed__pack_to_buffer (const EventStore__Client__Messages__CreatePersistentSubscriptionCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__create_persistent_subscription_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__CreatePersistentSubscriptionCompleted * event_store__client__messages__create_persistent_subscription_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__CreatePersistentSubscriptionCompleted *) protobuf_c_message_unpack (&event_store__client__messages__create_persistent_subscription_completed__descriptor, allocator, len, data); } void event_store__client__messages__create_persistent_subscription_completed__free_unpacked (EventStore__Client__Messages__CreatePersistentSubscriptionCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__create_persistent_subscription_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__delete_persistent_subscription_completed__init (EventStore__Client__Messages__DeletePersistentSubscriptionCompleted *message) { static const EventStore__Client__Messages__DeletePersistentSubscriptionCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__DELETE_PERSISTENT_SUBSCRIPTION_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__delete_persistent_subscription_completed__get_packed_size (const EventStore__Client__Messages__DeletePersistentSubscriptionCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__delete_persistent_subscription_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__delete_persistent_subscription_completed__pack (const EventStore__Client__Messages__DeletePersistentSubscriptionCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__delete_persistent_subscription_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__delete_persistent_subscription_completed__pack_to_buffer (const EventStore__Client__Messages__DeletePersistentSubscriptionCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__delete_persistent_subscription_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__DeletePersistentSubscriptionCompleted * event_store__client__messages__delete_persistent_subscription_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__DeletePersistentSubscriptionCompleted *) protobuf_c_message_unpack (&event_store__client__messages__delete_persistent_subscription_completed__descriptor, allocator, len, data); } void event_store__client__messages__delete_persistent_subscription_completed__free_unpacked (EventStore__Client__Messages__DeletePersistentSubscriptionCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__delete_persistent_subscription_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__connect_to_persistent_subscription__init (EventStore__Client__Messages__ConnectToPersistentSubscription *message) { static const EventStore__Client__Messages__ConnectToPersistentSubscription init_value = EVENT_STORE__CLIENT__MESSAGES__CONNECT_TO_PERSISTENT_SUBSCRIPTION__INIT; *message = init_value; } size_t event_store__client__messages__connect_to_persistent_subscription__get_packed_size (const EventStore__Client__Messages__ConnectToPersistentSubscription *message) { assert(message->base.descriptor == &event_store__client__messages__connect_to_persistent_subscription__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__connect_to_persistent_subscription__pack (const EventStore__Client__Messages__ConnectToPersistentSubscription *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__connect_to_persistent_subscription__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__connect_to_persistent_subscription__pack_to_buffer (const EventStore__Client__Messages__ConnectToPersistentSubscription *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__connect_to_persistent_subscription__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ConnectToPersistentSubscription * event_store__client__messages__connect_to_persistent_subscription__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ConnectToPersistentSubscription *) protobuf_c_message_unpack (&event_store__client__messages__connect_to_persistent_subscription__descriptor, allocator, len, data); } void event_store__client__messages__connect_to_persistent_subscription__free_unpacked (EventStore__Client__Messages__ConnectToPersistentSubscription *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__connect_to_persistent_subscription__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__persistent_subscription_ack_events__init (EventStore__Client__Messages__PersistentSubscriptionAckEvents *message) { static const EventStore__Client__Messages__PersistentSubscriptionAckEvents init_value = EVENT_STORE__CLIENT__MESSAGES__PERSISTENT_SUBSCRIPTION_ACK_EVENTS__INIT; *message = init_value; } size_t event_store__client__messages__persistent_subscription_ack_events__get_packed_size (const EventStore__Client__Messages__PersistentSubscriptionAckEvents *message) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_ack_events__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__persistent_subscription_ack_events__pack (const EventStore__Client__Messages__PersistentSubscriptionAckEvents *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_ack_events__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__persistent_subscription_ack_events__pack_to_buffer (const EventStore__Client__Messages__PersistentSubscriptionAckEvents *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_ack_events__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__PersistentSubscriptionAckEvents * event_store__client__messages__persistent_subscription_ack_events__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__PersistentSubscriptionAckEvents *) protobuf_c_message_unpack (&event_store__client__messages__persistent_subscription_ack_events__descriptor, allocator, len, data); } void event_store__client__messages__persistent_subscription_ack_events__free_unpacked (EventStore__Client__Messages__PersistentSubscriptionAckEvents *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_ack_events__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__persistent_subscription_nak_events__init (EventStore__Client__Messages__PersistentSubscriptionNakEvents *message) { static const EventStore__Client__Messages__PersistentSubscriptionNakEvents init_value = EVENT_STORE__CLIENT__MESSAGES__PERSISTENT_SUBSCRIPTION_NAK_EVENTS__INIT; *message = init_value; } size_t event_store__client__messages__persistent_subscription_nak_events__get_packed_size (const EventStore__Client__Messages__PersistentSubscriptionNakEvents *message) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_nak_events__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__persistent_subscription_nak_events__pack (const EventStore__Client__Messages__PersistentSubscriptionNakEvents *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_nak_events__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__persistent_subscription_nak_events__pack_to_buffer (const EventStore__Client__Messages__PersistentSubscriptionNakEvents *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_nak_events__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__PersistentSubscriptionNakEvents * event_store__client__messages__persistent_subscription_nak_events__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__PersistentSubscriptionNakEvents *) protobuf_c_message_unpack (&event_store__client__messages__persistent_subscription_nak_events__descriptor, allocator, len, data); } void event_store__client__messages__persistent_subscription_nak_events__free_unpacked (EventStore__Client__Messages__PersistentSubscriptionNakEvents *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_nak_events__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__persistent_subscription_confirmation__init (EventStore__Client__Messages__PersistentSubscriptionConfirmation *message) { static const EventStore__Client__Messages__PersistentSubscriptionConfirmation init_value = EVENT_STORE__CLIENT__MESSAGES__PERSISTENT_SUBSCRIPTION_CONFIRMATION__INIT; *message = init_value; } size_t event_store__client__messages__persistent_subscription_confirmation__get_packed_size (const EventStore__Client__Messages__PersistentSubscriptionConfirmation *message) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_confirmation__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__persistent_subscription_confirmation__pack (const EventStore__Client__Messages__PersistentSubscriptionConfirmation *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_confirmation__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__persistent_subscription_confirmation__pack_to_buffer (const EventStore__Client__Messages__PersistentSubscriptionConfirmation *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_confirmation__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__PersistentSubscriptionConfirmation * event_store__client__messages__persistent_subscription_confirmation__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__PersistentSubscriptionConfirmation *) protobuf_c_message_unpack (&event_store__client__messages__persistent_subscription_confirmation__descriptor, allocator, len, data); } void event_store__client__messages__persistent_subscription_confirmation__free_unpacked (EventStore__Client__Messages__PersistentSubscriptionConfirmation *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_confirmation__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__persistent_subscription_stream_event_appeared__init (EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared *message) { static const EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared init_value = EVENT_STORE__CLIENT__MESSAGES__PERSISTENT_SUBSCRIPTION_STREAM_EVENT_APPEARED__INIT; *message = init_value; } size_t event_store__client__messages__persistent_subscription_stream_event_appeared__get_packed_size (const EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared *message) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_stream_event_appeared__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__persistent_subscription_stream_event_appeared__pack (const EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_stream_event_appeared__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__persistent_subscription_stream_event_appeared__pack_to_buffer (const EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_stream_event_appeared__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared * event_store__client__messages__persistent_subscription_stream_event_appeared__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared *) protobuf_c_message_unpack (&event_store__client__messages__persistent_subscription_stream_event_appeared__descriptor, allocator, len, data); } void event_store__client__messages__persistent_subscription_stream_event_appeared__free_unpacked (EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__persistent_subscription_stream_event_appeared__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__subscribe_to_stream__init (EventStore__Client__Messages__SubscribeToStream *message) { static const EventStore__Client__Messages__SubscribeToStream init_value = EVENT_STORE__CLIENT__MESSAGES__SUBSCRIBE_TO_STREAM__INIT; *message = init_value; } size_t event_store__client__messages__subscribe_to_stream__get_packed_size (const EventStore__Client__Messages__SubscribeToStream *message) { assert(message->base.descriptor == &event_store__client__messages__subscribe_to_stream__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__subscribe_to_stream__pack (const EventStore__Client__Messages__SubscribeToStream *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__subscribe_to_stream__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__subscribe_to_stream__pack_to_buffer (const EventStore__Client__Messages__SubscribeToStream *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__subscribe_to_stream__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__SubscribeToStream * event_store__client__messages__subscribe_to_stream__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__SubscribeToStream *) protobuf_c_message_unpack (&event_store__client__messages__subscribe_to_stream__descriptor, allocator, len, data); } void event_store__client__messages__subscribe_to_stream__free_unpacked (EventStore__Client__Messages__SubscribeToStream *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__subscribe_to_stream__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__subscription_confirmation__init (EventStore__Client__Messages__SubscriptionConfirmation *message) { static const EventStore__Client__Messages__SubscriptionConfirmation init_value = EVENT_STORE__CLIENT__MESSAGES__SUBSCRIPTION_CONFIRMATION__INIT; *message = init_value; } size_t event_store__client__messages__subscription_confirmation__get_packed_size (const EventStore__Client__Messages__SubscriptionConfirmation *message) { assert(message->base.descriptor == &event_store__client__messages__subscription_confirmation__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__subscription_confirmation__pack (const EventStore__Client__Messages__SubscriptionConfirmation *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__subscription_confirmation__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__subscription_confirmation__pack_to_buffer (const EventStore__Client__Messages__SubscriptionConfirmation *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__subscription_confirmation__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__SubscriptionConfirmation * event_store__client__messages__subscription_confirmation__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__SubscriptionConfirmation *) protobuf_c_message_unpack (&event_store__client__messages__subscription_confirmation__descriptor, allocator, len, data); } void event_store__client__messages__subscription_confirmation__free_unpacked (EventStore__Client__Messages__SubscriptionConfirmation *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__subscription_confirmation__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__stream_event_appeared__init (EventStore__Client__Messages__StreamEventAppeared *message) { static const EventStore__Client__Messages__StreamEventAppeared init_value = EVENT_STORE__CLIENT__MESSAGES__STREAM_EVENT_APPEARED__INIT; *message = init_value; } size_t event_store__client__messages__stream_event_appeared__get_packed_size (const EventStore__Client__Messages__StreamEventAppeared *message) { assert(message->base.descriptor == &event_store__client__messages__stream_event_appeared__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__stream_event_appeared__pack (const EventStore__Client__Messages__StreamEventAppeared *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__stream_event_appeared__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__stream_event_appeared__pack_to_buffer (const EventStore__Client__Messages__StreamEventAppeared *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__stream_event_appeared__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__StreamEventAppeared * event_store__client__messages__stream_event_appeared__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__StreamEventAppeared *) protobuf_c_message_unpack (&event_store__client__messages__stream_event_appeared__descriptor, allocator, len, data); } void event_store__client__messages__stream_event_appeared__free_unpacked (EventStore__Client__Messages__StreamEventAppeared *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__stream_event_appeared__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__unsubscribe_from_stream__init (EventStore__Client__Messages__UnsubscribeFromStream *message) { static const EventStore__Client__Messages__UnsubscribeFromStream init_value = EVENT_STORE__CLIENT__MESSAGES__UNSUBSCRIBE_FROM_STREAM__INIT; *message = init_value; } size_t event_store__client__messages__unsubscribe_from_stream__get_packed_size (const EventStore__Client__Messages__UnsubscribeFromStream *message) { assert(message->base.descriptor == &event_store__client__messages__unsubscribe_from_stream__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__unsubscribe_from_stream__pack (const EventStore__Client__Messages__UnsubscribeFromStream *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__unsubscribe_from_stream__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__unsubscribe_from_stream__pack_to_buffer (const EventStore__Client__Messages__UnsubscribeFromStream *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__unsubscribe_from_stream__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__UnsubscribeFromStream * event_store__client__messages__unsubscribe_from_stream__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__UnsubscribeFromStream *) protobuf_c_message_unpack (&event_store__client__messages__unsubscribe_from_stream__descriptor, allocator, len, data); } void event_store__client__messages__unsubscribe_from_stream__free_unpacked (EventStore__Client__Messages__UnsubscribeFromStream *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__unsubscribe_from_stream__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__subscription_dropped__init (EventStore__Client__Messages__SubscriptionDropped *message) { static const EventStore__Client__Messages__SubscriptionDropped init_value = EVENT_STORE__CLIENT__MESSAGES__SUBSCRIPTION_DROPPED__INIT; *message = init_value; } size_t event_store__client__messages__subscription_dropped__get_packed_size (const EventStore__Client__Messages__SubscriptionDropped *message) { assert(message->base.descriptor == &event_store__client__messages__subscription_dropped__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__subscription_dropped__pack (const EventStore__Client__Messages__SubscriptionDropped *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__subscription_dropped__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__subscription_dropped__pack_to_buffer (const EventStore__Client__Messages__SubscriptionDropped *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__subscription_dropped__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__SubscriptionDropped * event_store__client__messages__subscription_dropped__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__SubscriptionDropped *) protobuf_c_message_unpack (&event_store__client__messages__subscription_dropped__descriptor, allocator, len, data); } void event_store__client__messages__subscription_dropped__free_unpacked (EventStore__Client__Messages__SubscriptionDropped *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__subscription_dropped__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__not_handled__master_info__init (EventStore__Client__Messages__NotHandled__MasterInfo *message) { static const EventStore__Client__Messages__NotHandled__MasterInfo init_value = EVENT_STORE__CLIENT__MESSAGES__NOT_HANDLED__MASTER_INFO__INIT; *message = init_value; } void event_store__client__messages__not_handled__init (EventStore__Client__Messages__NotHandled *message) { static const EventStore__Client__Messages__NotHandled init_value = EVENT_STORE__CLIENT__MESSAGES__NOT_HANDLED__INIT; *message = init_value; } size_t event_store__client__messages__not_handled__get_packed_size (const EventStore__Client__Messages__NotHandled *message) { assert(message->base.descriptor == &event_store__client__messages__not_handled__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__not_handled__pack (const EventStore__Client__Messages__NotHandled *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__not_handled__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__not_handled__pack_to_buffer (const EventStore__Client__Messages__NotHandled *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__not_handled__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__NotHandled * event_store__client__messages__not_handled__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__NotHandled *) protobuf_c_message_unpack (&event_store__client__messages__not_handled__descriptor, allocator, len, data); } void event_store__client__messages__not_handled__free_unpacked (EventStore__Client__Messages__NotHandled *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__not_handled__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__scavenge_database__init (EventStore__Client__Messages__ScavengeDatabase *message) { static const EventStore__Client__Messages__ScavengeDatabase init_value = EVENT_STORE__CLIENT__MESSAGES__SCAVENGE_DATABASE__INIT; *message = init_value; } size_t event_store__client__messages__scavenge_database__get_packed_size (const EventStore__Client__Messages__ScavengeDatabase *message) { assert(message->base.descriptor == &event_store__client__messages__scavenge_database__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__scavenge_database__pack (const EventStore__Client__Messages__ScavengeDatabase *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__scavenge_database__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__scavenge_database__pack_to_buffer (const EventStore__Client__Messages__ScavengeDatabase *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__scavenge_database__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ScavengeDatabase * event_store__client__messages__scavenge_database__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ScavengeDatabase *) protobuf_c_message_unpack (&event_store__client__messages__scavenge_database__descriptor, allocator, len, data); } void event_store__client__messages__scavenge_database__free_unpacked (EventStore__Client__Messages__ScavengeDatabase *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__scavenge_database__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__scavenge_database_completed__init (EventStore__Client__Messages__ScavengeDatabaseCompleted *message) { static const EventStore__Client__Messages__ScavengeDatabaseCompleted init_value = EVENT_STORE__CLIENT__MESSAGES__SCAVENGE_DATABASE_COMPLETED__INIT; *message = init_value; } size_t event_store__client__messages__scavenge_database_completed__get_packed_size (const EventStore__Client__Messages__ScavengeDatabaseCompleted *message) { assert(message->base.descriptor == &event_store__client__messages__scavenge_database_completed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__scavenge_database_completed__pack (const EventStore__Client__Messages__ScavengeDatabaseCompleted *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__scavenge_database_completed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__scavenge_database_completed__pack_to_buffer (const EventStore__Client__Messages__ScavengeDatabaseCompleted *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__scavenge_database_completed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ScavengeDatabaseCompleted * event_store__client__messages__scavenge_database_completed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ScavengeDatabaseCompleted *) protobuf_c_message_unpack (&event_store__client__messages__scavenge_database_completed__descriptor, allocator, len, data); } void event_store__client__messages__scavenge_database_completed__free_unpacked (EventStore__Client__Messages__ScavengeDatabaseCompleted *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__scavenge_database_completed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__identify_client__init (EventStore__Client__Messages__IdentifyClient *message) { static const EventStore__Client__Messages__IdentifyClient init_value = EVENT_STORE__CLIENT__MESSAGES__IDENTIFY_CLIENT__INIT; *message = init_value; } size_t event_store__client__messages__identify_client__get_packed_size (const EventStore__Client__Messages__IdentifyClient *message) { assert(message->base.descriptor == &event_store__client__messages__identify_client__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__identify_client__pack (const EventStore__Client__Messages__IdentifyClient *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__identify_client__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__identify_client__pack_to_buffer (const EventStore__Client__Messages__IdentifyClient *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__identify_client__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__IdentifyClient * event_store__client__messages__identify_client__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__IdentifyClient *) protobuf_c_message_unpack (&event_store__client__messages__identify_client__descriptor, allocator, len, data); } void event_store__client__messages__identify_client__free_unpacked (EventStore__Client__Messages__IdentifyClient *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__identify_client__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void event_store__client__messages__client_identified__init (EventStore__Client__Messages__ClientIdentified *message) { static const EventStore__Client__Messages__ClientIdentified init_value = EVENT_STORE__CLIENT__MESSAGES__CLIENT_IDENTIFIED__INIT; *message = init_value; } size_t event_store__client__messages__client_identified__get_packed_size (const EventStore__Client__Messages__ClientIdentified *message) { assert(message->base.descriptor == &event_store__client__messages__client_identified__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t event_store__client__messages__client_identified__pack (const EventStore__Client__Messages__ClientIdentified *message, uint8_t *out) { assert(message->base.descriptor == &event_store__client__messages__client_identified__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t event_store__client__messages__client_identified__pack_to_buffer (const EventStore__Client__Messages__ClientIdentified *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &event_store__client__messages__client_identified__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } EventStore__Client__Messages__ClientIdentified * event_store__client__messages__client_identified__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (EventStore__Client__Messages__ClientIdentified *) protobuf_c_message_unpack (&event_store__client__messages__client_identified__descriptor, allocator, len, data); } void event_store__client__messages__client_identified__free_unpacked (EventStore__Client__Messages__ClientIdentified *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &event_store__client__messages__client_identified__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor event_store__client__messages__new_event__field_descriptors[6] = { { "event_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NewEvent, event_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "event_type", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NewEvent, event_type), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "data_content_type", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NewEvent, data_content_type), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "metadata_content_type", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NewEvent, metadata_content_type), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "data", 5, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NewEvent, data), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "metadata", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BYTES, offsetof(EventStore__Client__Messages__NewEvent, has_metadata), offsetof(EventStore__Client__Messages__NewEvent, metadata), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__new_event__field_indices_by_name[] = { 4, /* field[4] = data */ 2, /* field[2] = data_content_type */ 0, /* field[0] = event_id */ 1, /* field[1] = event_type */ 5, /* field[5] = metadata */ 3, /* field[3] = metadata_content_type */ }; static const ProtobufCIntRange event_store__client__messages__new_event__number_ranges[1 + 1] = { { 1, 0 }, { 0, 6 } }; const ProtobufCMessageDescriptor event_store__client__messages__new_event__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.NewEvent", "NewEvent", "EventStore__Client__Messages__NewEvent", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__NewEvent), 6, event_store__client__messages__new_event__field_descriptors, event_store__client__messages__new_event__field_indices_by_name, 1, event_store__client__messages__new_event__number_ranges, (ProtobufCMessageInit) event_store__client__messages__new_event__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__event_record__field_descriptors[10] = { { "event_stream_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__EventRecord, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "event_number", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__EventRecord, event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "event_id", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__EventRecord, event_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "event_type", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__EventRecord, event_type), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "data_content_type", 5, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__EventRecord, data_content_type), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "metadata_content_type", 6, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__EventRecord, metadata_content_type), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "data", 7, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__EventRecord, data), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "metadata", 8, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BYTES, offsetof(EventStore__Client__Messages__EventRecord, has_metadata), offsetof(EventStore__Client__Messages__EventRecord, metadata), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "created", 9, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__EventRecord, has_created), offsetof(EventStore__Client__Messages__EventRecord, created), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "created_epoch", 10, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__EventRecord, has_created_epoch), offsetof(EventStore__Client__Messages__EventRecord, created_epoch), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__event_record__field_indices_by_name[] = { 8, /* field[8] = created */ 9, /* field[9] = created_epoch */ 6, /* field[6] = data */ 4, /* field[4] = data_content_type */ 2, /* field[2] = event_id */ 1, /* field[1] = event_number */ 0, /* field[0] = event_stream_id */ 3, /* field[3] = event_type */ 7, /* field[7] = metadata */ 5, /* field[5] = metadata_content_type */ }; static const ProtobufCIntRange event_store__client__messages__event_record__number_ranges[1 + 1] = { { 1, 0 }, { 0, 10 } }; const ProtobufCMessageDescriptor event_store__client__messages__event_record__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.EventRecord", "EventRecord", "EventStore__Client__Messages__EventRecord", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__EventRecord), 10, event_store__client__messages__event_record__field_descriptors, event_store__client__messages__event_record__field_indices_by_name, 1, event_store__client__messages__event_record__number_ranges, (ProtobufCMessageInit) event_store__client__messages__event_record__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__resolved_indexed_event__field_descriptors[2] = { { "event", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ResolvedIndexedEvent, event), &event_store__client__messages__event_record__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "link", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ResolvedIndexedEvent, link), &event_store__client__messages__event_record__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__resolved_indexed_event__field_indices_by_name[] = { 0, /* field[0] = event */ 1, /* field[1] = link */ }; static const ProtobufCIntRange event_store__client__messages__resolved_indexed_event__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__resolved_indexed_event__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ResolvedIndexedEvent", "ResolvedIndexedEvent", "EventStore__Client__Messages__ResolvedIndexedEvent", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ResolvedIndexedEvent), 2, event_store__client__messages__resolved_indexed_event__field_descriptors, event_store__client__messages__resolved_indexed_event__field_indices_by_name, 1, event_store__client__messages__resolved_indexed_event__number_ranges, (ProtobufCMessageInit) event_store__client__messages__resolved_indexed_event__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__resolved_event__field_descriptors[4] = { { "event", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ResolvedEvent, event), &event_store__client__messages__event_record__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "link", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ResolvedEvent, link), &event_store__client__messages__event_record__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "commit_position", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ResolvedEvent, commit_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "prepare_position", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ResolvedEvent, prepare_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__resolved_event__field_indices_by_name[] = { 2, /* field[2] = commit_position */ 0, /* field[0] = event */ 1, /* field[1] = link */ 3, /* field[3] = prepare_position */ }; static const ProtobufCIntRange event_store__client__messages__resolved_event__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; const ProtobufCMessageDescriptor event_store__client__messages__resolved_event__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ResolvedEvent", "ResolvedEvent", "EventStore__Client__Messages__ResolvedEvent", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ResolvedEvent), 4, event_store__client__messages__resolved_event__field_descriptors, event_store__client__messages__resolved_event__field_indices_by_name, 1, event_store__client__messages__resolved_event__number_ranges, (ProtobufCMessageInit) event_store__client__messages__resolved_event__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__write_events__field_descriptors[4] = { { "event_stream_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__WriteEvents, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "expected_version", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__WriteEvents, expected_version), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "events", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, offsetof(EventStore__Client__Messages__WriteEvents, n_events), offsetof(EventStore__Client__Messages__WriteEvents, events), &event_store__client__messages__new_event__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "require_master", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__WriteEvents, require_master), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__write_events__field_indices_by_name[] = { 0, /* field[0] = event_stream_id */ 2, /* field[2] = events */ 1, /* field[1] = expected_version */ 3, /* field[3] = require_master */ }; static const ProtobufCIntRange event_store__client__messages__write_events__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; const ProtobufCMessageDescriptor event_store__client__messages__write_events__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.WriteEvents", "WriteEvents", "EventStore__Client__Messages__WriteEvents", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__WriteEvents), 4, event_store__client__messages__write_events__field_descriptors, event_store__client__messages__write_events__field_indices_by_name, 1, event_store__client__messages__write_events__number_ranges, (ProtobufCMessageInit) event_store__client__messages__write_events__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__write_events_completed__field_descriptors[7] = { { "result", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__WriteEventsCompleted, result), &event_store__client__messages__operation_result__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "message", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__WriteEventsCompleted, message), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "first_event_number", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__WriteEventsCompleted, first_event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "last_event_number", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__WriteEventsCompleted, last_event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "prepare_position", 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__WriteEventsCompleted, has_prepare_position), offsetof(EventStore__Client__Messages__WriteEventsCompleted, prepare_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "commit_position", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__WriteEventsCompleted, has_commit_position), offsetof(EventStore__Client__Messages__WriteEventsCompleted, commit_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "current_version", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__WriteEventsCompleted, has_current_version), offsetof(EventStore__Client__Messages__WriteEventsCompleted, current_version), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__write_events_completed__field_indices_by_name[] = { 5, /* field[5] = commit_position */ 6, /* field[6] = current_version */ 2, /* field[2] = first_event_number */ 3, /* field[3] = last_event_number */ 1, /* field[1] = message */ 4, /* field[4] = prepare_position */ 0, /* field[0] = result */ }; static const ProtobufCIntRange event_store__client__messages__write_events_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 7 } }; const ProtobufCMessageDescriptor event_store__client__messages__write_events_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.WriteEventsCompleted", "WriteEventsCompleted", "EventStore__Client__Messages__WriteEventsCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__WriteEventsCompleted), 7, event_store__client__messages__write_events_completed__field_descriptors, event_store__client__messages__write_events_completed__field_indices_by_name, 1, event_store__client__messages__write_events_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__write_events_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__delete_stream__field_descriptors[4] = { { "event_stream_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__DeleteStream, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "expected_version", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__DeleteStream, expected_version), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "require_master", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__DeleteStream, require_master), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "hard_delete", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(EventStore__Client__Messages__DeleteStream, has_hard_delete), offsetof(EventStore__Client__Messages__DeleteStream, hard_delete), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__delete_stream__field_indices_by_name[] = { 0, /* field[0] = event_stream_id */ 1, /* field[1] = expected_version */ 3, /* field[3] = hard_delete */ 2, /* field[2] = require_master */ }; static const ProtobufCIntRange event_store__client__messages__delete_stream__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; const ProtobufCMessageDescriptor event_store__client__messages__delete_stream__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.DeleteStream", "DeleteStream", "EventStore__Client__Messages__DeleteStream", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__DeleteStream), 4, event_store__client__messages__delete_stream__field_descriptors, event_store__client__messages__delete_stream__field_indices_by_name, 1, event_store__client__messages__delete_stream__number_ranges, (ProtobufCMessageInit) event_store__client__messages__delete_stream__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__delete_stream_completed__field_descriptors[4] = { { "result", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__DeleteStreamCompleted, result), &event_store__client__messages__operation_result__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "message", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__DeleteStreamCompleted, message), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "prepare_position", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__DeleteStreamCompleted, has_prepare_position), offsetof(EventStore__Client__Messages__DeleteStreamCompleted, prepare_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "commit_position", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__DeleteStreamCompleted, has_commit_position), offsetof(EventStore__Client__Messages__DeleteStreamCompleted, commit_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__delete_stream_completed__field_indices_by_name[] = { 3, /* field[3] = commit_position */ 1, /* field[1] = message */ 2, /* field[2] = prepare_position */ 0, /* field[0] = result */ }; static const ProtobufCIntRange event_store__client__messages__delete_stream_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; const ProtobufCMessageDescriptor event_store__client__messages__delete_stream_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.DeleteStreamCompleted", "DeleteStreamCompleted", "EventStore__Client__Messages__DeleteStreamCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__DeleteStreamCompleted), 4, event_store__client__messages__delete_stream_completed__field_descriptors, event_store__client__messages__delete_stream_completed__field_indices_by_name, 1, event_store__client__messages__delete_stream_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__delete_stream_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__transaction_start__field_descriptors[3] = { { "event_stream_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionStart, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "expected_version", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionStart, expected_version), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "require_master", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionStart, require_master), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__transaction_start__field_indices_by_name[] = { 0, /* field[0] = event_stream_id */ 1, /* field[1] = expected_version */ 2, /* field[2] = require_master */ }; static const ProtobufCIntRange event_store__client__messages__transaction_start__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; const ProtobufCMessageDescriptor event_store__client__messages__transaction_start__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.TransactionStart", "TransactionStart", "EventStore__Client__Messages__TransactionStart", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__TransactionStart), 3, event_store__client__messages__transaction_start__field_descriptors, event_store__client__messages__transaction_start__field_indices_by_name, 1, event_store__client__messages__transaction_start__number_ranges, (ProtobufCMessageInit) event_store__client__messages__transaction_start__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__transaction_start_completed__field_descriptors[3] = { { "transaction_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionStartCompleted, transaction_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "result", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionStartCompleted, result), &event_store__client__messages__operation_result__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "message", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionStartCompleted, message), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__transaction_start_completed__field_indices_by_name[] = { 2, /* field[2] = message */ 1, /* field[1] = result */ 0, /* field[0] = transaction_id */ }; static const ProtobufCIntRange event_store__client__messages__transaction_start_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; const ProtobufCMessageDescriptor event_store__client__messages__transaction_start_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.TransactionStartCompleted", "TransactionStartCompleted", "EventStore__Client__Messages__TransactionStartCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__TransactionStartCompleted), 3, event_store__client__messages__transaction_start_completed__field_descriptors, event_store__client__messages__transaction_start_completed__field_indices_by_name, 1, event_store__client__messages__transaction_start_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__transaction_start_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__transaction_write__field_descriptors[3] = { { "transaction_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionWrite, transaction_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "events", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, offsetof(EventStore__Client__Messages__TransactionWrite, n_events), offsetof(EventStore__Client__Messages__TransactionWrite, events), &event_store__client__messages__new_event__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "require_master", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionWrite, require_master), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__transaction_write__field_indices_by_name[] = { 1, /* field[1] = events */ 2, /* field[2] = require_master */ 0, /* field[0] = transaction_id */ }; static const ProtobufCIntRange event_store__client__messages__transaction_write__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; const ProtobufCMessageDescriptor event_store__client__messages__transaction_write__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.TransactionWrite", "TransactionWrite", "EventStore__Client__Messages__TransactionWrite", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__TransactionWrite), 3, event_store__client__messages__transaction_write__field_descriptors, event_store__client__messages__transaction_write__field_indices_by_name, 1, event_store__client__messages__transaction_write__number_ranges, (ProtobufCMessageInit) event_store__client__messages__transaction_write__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__transaction_write_completed__field_descriptors[3] = { { "transaction_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionWriteCompleted, transaction_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "result", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionWriteCompleted, result), &event_store__client__messages__operation_result__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "message", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionWriteCompleted, message), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__transaction_write_completed__field_indices_by_name[] = { 2, /* field[2] = message */ 1, /* field[1] = result */ 0, /* field[0] = transaction_id */ }; static const ProtobufCIntRange event_store__client__messages__transaction_write_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; const ProtobufCMessageDescriptor event_store__client__messages__transaction_write_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.TransactionWriteCompleted", "TransactionWriteCompleted", "EventStore__Client__Messages__TransactionWriteCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__TransactionWriteCompleted), 3, event_store__client__messages__transaction_write_completed__field_descriptors, event_store__client__messages__transaction_write_completed__field_indices_by_name, 1, event_store__client__messages__transaction_write_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__transaction_write_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__transaction_commit__field_descriptors[2] = { { "transaction_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionCommit, transaction_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "require_master", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionCommit, require_master), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__transaction_commit__field_indices_by_name[] = { 1, /* field[1] = require_master */ 0, /* field[0] = transaction_id */ }; static const ProtobufCIntRange event_store__client__messages__transaction_commit__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__transaction_commit__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.TransactionCommit", "TransactionCommit", "EventStore__Client__Messages__TransactionCommit", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__TransactionCommit), 2, event_store__client__messages__transaction_commit__field_descriptors, event_store__client__messages__transaction_commit__field_indices_by_name, 1, event_store__client__messages__transaction_commit__number_ranges, (ProtobufCMessageInit) event_store__client__messages__transaction_commit__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__transaction_commit_completed__field_descriptors[7] = { { "transaction_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionCommitCompleted, transaction_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "result", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionCommitCompleted, result), &event_store__client__messages__operation_result__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "message", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionCommitCompleted, message), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "first_event_number", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionCommitCompleted, first_event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "last_event_number", 5, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__TransactionCommitCompleted, last_event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "prepare_position", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__TransactionCommitCompleted, has_prepare_position), offsetof(EventStore__Client__Messages__TransactionCommitCompleted, prepare_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "commit_position", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__TransactionCommitCompleted, has_commit_position), offsetof(EventStore__Client__Messages__TransactionCommitCompleted, commit_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__transaction_commit_completed__field_indices_by_name[] = { 6, /* field[6] = commit_position */ 3, /* field[3] = first_event_number */ 4, /* field[4] = last_event_number */ 2, /* field[2] = message */ 5, /* field[5] = prepare_position */ 1, /* field[1] = result */ 0, /* field[0] = transaction_id */ }; static const ProtobufCIntRange event_store__client__messages__transaction_commit_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 7 } }; const ProtobufCMessageDescriptor event_store__client__messages__transaction_commit_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.TransactionCommitCompleted", "TransactionCommitCompleted", "EventStore__Client__Messages__TransactionCommitCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__TransactionCommitCompleted), 7, event_store__client__messages__transaction_commit_completed__field_descriptors, event_store__client__messages__transaction_commit_completed__field_indices_by_name, 1, event_store__client__messages__transaction_commit_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__transaction_commit_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__read_event__field_descriptors[4] = { { "event_stream_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadEvent, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "event_number", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadEvent, event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "resolve_link_tos", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadEvent, resolve_link_tos), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "require_master", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadEvent, require_master), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__read_event__field_indices_by_name[] = { 1, /* field[1] = event_number */ 0, /* field[0] = event_stream_id */ 3, /* field[3] = require_master */ 2, /* field[2] = resolve_link_tos */ }; static const ProtobufCIntRange event_store__client__messages__read_event__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; const ProtobufCMessageDescriptor event_store__client__messages__read_event__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ReadEvent", "ReadEvent", "EventStore__Client__Messages__ReadEvent", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ReadEvent), 4, event_store__client__messages__read_event__field_descriptors, event_store__client__messages__read_event__field_indices_by_name, 1, event_store__client__messages__read_event__number_ranges, (ProtobufCMessageInit) event_store__client__messages__read_event__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__read_event_completed__read_event_result__enum_values_by_number[6] = { { "Success", "EVENT_STORE__CLIENT__MESSAGES__READ_EVENT_COMPLETED__READ_EVENT_RESULT__Success", 0 }, { "NotFound", "EVENT_STORE__CLIENT__MESSAGES__READ_EVENT_COMPLETED__READ_EVENT_RESULT__NotFound", 1 }, { "NoStream", "EVENT_STORE__CLIENT__MESSAGES__READ_EVENT_COMPLETED__READ_EVENT_RESULT__NoStream", 2 }, { "StreamDeleted", "EVENT_STORE__CLIENT__MESSAGES__READ_EVENT_COMPLETED__READ_EVENT_RESULT__StreamDeleted", 3 }, { "Error", "EVENT_STORE__CLIENT__MESSAGES__READ_EVENT_COMPLETED__READ_EVENT_RESULT__Error", 4 }, { "AccessDenied", "EVENT_STORE__CLIENT__MESSAGES__READ_EVENT_COMPLETED__READ_EVENT_RESULT__AccessDenied", 5 }, }; static const ProtobufCIntRange event_store__client__messages__read_event_completed__read_event_result__value_ranges[] = { {0, 0},{0, 6} }; static const ProtobufCEnumValueIndex event_store__client__messages__read_event_completed__read_event_result__enum_values_by_name[6] = { { "AccessDenied", 5 }, { "Error", 4 }, { "NoStream", 2 }, { "NotFound", 1 }, { "StreamDeleted", 3 }, { "Success", 0 }, }; const ProtobufCEnumDescriptor event_store__client__messages__read_event_completed__read_event_result__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ReadEventCompleted.ReadEventResult", "ReadEventResult", "EventStore__Client__Messages__ReadEventCompleted__ReadEventResult", "EventStore.Client.Messages", 6, event_store__client__messages__read_event_completed__read_event_result__enum_values_by_number, 6, event_store__client__messages__read_event_completed__read_event_result__enum_values_by_name, 1, event_store__client__messages__read_event_completed__read_event_result__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__read_event_completed__field_descriptors[3] = { { "result", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadEventCompleted, result), &event_store__client__messages__read_event_completed__read_event_result__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "event", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadEventCompleted, event), &event_store__client__messages__resolved_indexed_event__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "error", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadEventCompleted, error), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__read_event_completed__field_indices_by_name[] = { 2, /* field[2] = error */ 1, /* field[1] = event */ 0, /* field[0] = result */ }; static const ProtobufCIntRange event_store__client__messages__read_event_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; const ProtobufCMessageDescriptor event_store__client__messages__read_event_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ReadEventCompleted", "ReadEventCompleted", "EventStore__Client__Messages__ReadEventCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ReadEventCompleted), 3, event_store__client__messages__read_event_completed__field_descriptors, event_store__client__messages__read_event_completed__field_indices_by_name, 1, event_store__client__messages__read_event_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__read_event_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__read_stream_events__field_descriptors[5] = { { "event_stream_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEvents, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "from_event_number", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEvents, from_event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "max_count", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEvents, max_count), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "resolve_link_tos", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEvents, resolve_link_tos), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "require_master", 5, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEvents, require_master), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__read_stream_events__field_indices_by_name[] = { 0, /* field[0] = event_stream_id */ 1, /* field[1] = from_event_number */ 2, /* field[2] = max_count */ 4, /* field[4] = require_master */ 3, /* field[3] = resolve_link_tos */ }; static const ProtobufCIntRange event_store__client__messages__read_stream_events__number_ranges[1 + 1] = { { 1, 0 }, { 0, 5 } }; const ProtobufCMessageDescriptor event_store__client__messages__read_stream_events__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ReadStreamEvents", "ReadStreamEvents", "EventStore__Client__Messages__ReadStreamEvents", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ReadStreamEvents), 5, event_store__client__messages__read_stream_events__field_descriptors, event_store__client__messages__read_stream_events__field_indices_by_name, 1, event_store__client__messages__read_stream_events__number_ranges, (ProtobufCMessageInit) event_store__client__messages__read_stream_events__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__read_stream_events_completed__read_stream_result__enum_values_by_number[6] = { { "Success", "EVENT_STORE__CLIENT__MESSAGES__READ_STREAM_EVENTS_COMPLETED__READ_STREAM_RESULT__Success", 0 }, { "NoStream", "EVENT_STORE__CLIENT__MESSAGES__READ_STREAM_EVENTS_COMPLETED__READ_STREAM_RESULT__NoStream", 1 }, { "StreamDeleted", "EVENT_STORE__CLIENT__MESSAGES__READ_STREAM_EVENTS_COMPLETED__READ_STREAM_RESULT__StreamDeleted", 2 }, { "NotModified", "EVENT_STORE__CLIENT__MESSAGES__READ_STREAM_EVENTS_COMPLETED__READ_STREAM_RESULT__NotModified", 3 }, { "Error", "EVENT_STORE__CLIENT__MESSAGES__READ_STREAM_EVENTS_COMPLETED__READ_STREAM_RESULT__Error", 4 }, { "AccessDenied", "EVENT_STORE__CLIENT__MESSAGES__READ_STREAM_EVENTS_COMPLETED__READ_STREAM_RESULT__AccessDenied", 5 }, }; static const ProtobufCIntRange event_store__client__messages__read_stream_events_completed__read_stream_result__value_ranges[] = { {0, 0},{0, 6} }; static const ProtobufCEnumValueIndex event_store__client__messages__read_stream_events_completed__read_stream_result__enum_values_by_name[6] = { { "AccessDenied", 5 }, { "Error", 4 }, { "NoStream", 1 }, { "NotModified", 3 }, { "StreamDeleted", 2 }, { "Success", 0 }, }; const ProtobufCEnumDescriptor event_store__client__messages__read_stream_events_completed__read_stream_result__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult", "ReadStreamResult", "EventStore__Client__Messages__ReadStreamEventsCompleted__ReadStreamResult", "EventStore.Client.Messages", 6, event_store__client__messages__read_stream_events_completed__read_stream_result__enum_values_by_number, 6, event_store__client__messages__read_stream_events_completed__read_stream_result__enum_values_by_name, 1, event_store__client__messages__read_stream_events_completed__read_stream_result__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__read_stream_events_completed__field_descriptors[7] = { { "events", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, offsetof(EventStore__Client__Messages__ReadStreamEventsCompleted, n_events), offsetof(EventStore__Client__Messages__ReadStreamEventsCompleted, events), &event_store__client__messages__resolved_indexed_event__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "result", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEventsCompleted, result), &event_store__client__messages__read_stream_events_completed__read_stream_result__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "next_event_number", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEventsCompleted, next_event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "last_event_number", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEventsCompleted, last_event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "is_end_of_stream", 5, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEventsCompleted, is_end_of_stream), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "last_commit_position", 6, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEventsCompleted, last_commit_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "error", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadStreamEventsCompleted, error), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__read_stream_events_completed__field_indices_by_name[] = { 6, /* field[6] = error */ 0, /* field[0] = events */ 4, /* field[4] = is_end_of_stream */ 5, /* field[5] = last_commit_position */ 3, /* field[3] = last_event_number */ 2, /* field[2] = next_event_number */ 1, /* field[1] = result */ }; static const ProtobufCIntRange event_store__client__messages__read_stream_events_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 7 } }; const ProtobufCMessageDescriptor event_store__client__messages__read_stream_events_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ReadStreamEventsCompleted", "ReadStreamEventsCompleted", "EventStore__Client__Messages__ReadStreamEventsCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ReadStreamEventsCompleted), 7, event_store__client__messages__read_stream_events_completed__field_descriptors, event_store__client__messages__read_stream_events_completed__field_indices_by_name, 1, event_store__client__messages__read_stream_events_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__read_stream_events_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__read_all_events__field_descriptors[5] = { { "commit_position", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadAllEvents, commit_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "prepare_position", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadAllEvents, prepare_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "max_count", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadAllEvents, max_count), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "resolve_link_tos", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadAllEvents, resolve_link_tos), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "require_master", 5, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadAllEvents, require_master), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__read_all_events__field_indices_by_name[] = { 0, /* field[0] = commit_position */ 2, /* field[2] = max_count */ 1, /* field[1] = prepare_position */ 4, /* field[4] = require_master */ 3, /* field[3] = resolve_link_tos */ }; static const ProtobufCIntRange event_store__client__messages__read_all_events__number_ranges[1 + 1] = { { 1, 0 }, { 0, 5 } }; const ProtobufCMessageDescriptor event_store__client__messages__read_all_events__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ReadAllEvents", "ReadAllEvents", "EventStore__Client__Messages__ReadAllEvents", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ReadAllEvents), 5, event_store__client__messages__read_all_events__field_descriptors, event_store__client__messages__read_all_events__field_indices_by_name, 1, event_store__client__messages__read_all_events__number_ranges, (ProtobufCMessageInit) event_store__client__messages__read_all_events__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__read_all_events_completed__read_all_result__enum_values_by_number[4] = { { "Success", "EVENT_STORE__CLIENT__MESSAGES__READ_ALL_EVENTS_COMPLETED__READ_ALL_RESULT__Success", 0 }, { "NotModified", "EVENT_STORE__CLIENT__MESSAGES__READ_ALL_EVENTS_COMPLETED__READ_ALL_RESULT__NotModified", 1 }, { "Error", "EVENT_STORE__CLIENT__MESSAGES__READ_ALL_EVENTS_COMPLETED__READ_ALL_RESULT__Error", 2 }, { "AccessDenied", "EVENT_STORE__CLIENT__MESSAGES__READ_ALL_EVENTS_COMPLETED__READ_ALL_RESULT__AccessDenied", 3 }, }; static const ProtobufCIntRange event_store__client__messages__read_all_events_completed__read_all_result__value_ranges[] = { {0, 0},{0, 4} }; static const ProtobufCEnumValueIndex event_store__client__messages__read_all_events_completed__read_all_result__enum_values_by_name[4] = { { "AccessDenied", 3 }, { "Error", 2 }, { "NotModified", 1 }, { "Success", 0 }, }; const ProtobufCEnumDescriptor event_store__client__messages__read_all_events_completed__read_all_result__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult", "ReadAllResult", "EventStore__Client__Messages__ReadAllEventsCompleted__ReadAllResult", "EventStore.Client.Messages", 4, event_store__client__messages__read_all_events_completed__read_all_result__enum_values_by_number, 4, event_store__client__messages__read_all_events_completed__read_all_result__enum_values_by_name, 1, event_store__client__messages__read_all_events_completed__read_all_result__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; static const EventStore__Client__Messages__ReadAllEventsCompleted__ReadAllResult event_store__client__messages__read_all_events_completed__result__default_value = EVENT_STORE__CLIENT__MESSAGES__READ_ALL_EVENTS_COMPLETED__READ_ALL_RESULT__Success; static const ProtobufCFieldDescriptor event_store__client__messages__read_all_events_completed__field_descriptors[7] = { { "commit_position", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadAllEventsCompleted, commit_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "prepare_position", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadAllEventsCompleted, prepare_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "events", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, offsetof(EventStore__Client__Messages__ReadAllEventsCompleted, n_events), offsetof(EventStore__Client__Messages__ReadAllEventsCompleted, events), &event_store__client__messages__resolved_event__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "next_commit_position", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadAllEventsCompleted, next_commit_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "next_prepare_position", 5, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadAllEventsCompleted, next_prepare_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "result", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_ENUM, offsetof(EventStore__Client__Messages__ReadAllEventsCompleted, has_result), offsetof(EventStore__Client__Messages__ReadAllEventsCompleted, result), &event_store__client__messages__read_all_events_completed__read_all_result__descriptor, &event_store__client__messages__read_all_events_completed__result__default_value, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "error", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ReadAllEventsCompleted, error), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__read_all_events_completed__field_indices_by_name[] = { 0, /* field[0] = commit_position */ 6, /* field[6] = error */ 2, /* field[2] = events */ 3, /* field[3] = next_commit_position */ 4, /* field[4] = next_prepare_position */ 1, /* field[1] = prepare_position */ 5, /* field[5] = result */ }; static const ProtobufCIntRange event_store__client__messages__read_all_events_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 7 } }; const ProtobufCMessageDescriptor event_store__client__messages__read_all_events_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ReadAllEventsCompleted", "ReadAllEventsCompleted", "EventStore__Client__Messages__ReadAllEventsCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ReadAllEventsCompleted), 7, event_store__client__messages__read_all_events_completed__field_descriptors, event_store__client__messages__read_all_events_completed__field_indices_by_name, 1, event_store__client__messages__read_all_events_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__read_all_events_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__create_persistent_subscription__field_descriptors[16] = { { "subscription_group_name", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, subscription_group_name), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "event_stream_id", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "resolve_link_tos", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, resolve_link_tos), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "start_from", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, start_from), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "message_timeout_milliseconds", 5, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, message_timeout_milliseconds), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "record_statistics", 6, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, record_statistics), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "live_buffer_size", 7, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, live_buffer_size), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "read_batch_size", 8, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, read_batch_size), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "buffer_size", 9, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, buffer_size), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "max_retry_count", 10, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, max_retry_count), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "prefer_round_robin", 11, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, prefer_round_robin), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "checkpoint_after_time", 12, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, checkpoint_after_time), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "checkpoint_max_count", 13, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, checkpoint_max_count), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "checkpoint_min_count", 14, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, checkpoint_min_count), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "subscriber_max_count", 15, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, subscriber_max_count), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "named_consumer_strategy", 16, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscription, named_consumer_strategy), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__create_persistent_subscription__field_indices_by_name[] = { 8, /* field[8] = buffer_size */ 11, /* field[11] = checkpoint_after_time */ 12, /* field[12] = checkpoint_max_count */ 13, /* field[13] = checkpoint_min_count */ 1, /* field[1] = event_stream_id */ 6, /* field[6] = live_buffer_size */ 9, /* field[9] = max_retry_count */ 4, /* field[4] = message_timeout_milliseconds */ 15, /* field[15] = named_consumer_strategy */ 10, /* field[10] = prefer_round_robin */ 7, /* field[7] = read_batch_size */ 5, /* field[5] = record_statistics */ 2, /* field[2] = resolve_link_tos */ 3, /* field[3] = start_from */ 14, /* field[14] = subscriber_max_count */ 0, /* field[0] = subscription_group_name */ }; static const ProtobufCIntRange event_store__client__messages__create_persistent_subscription__number_ranges[1 + 1] = { { 1, 0 }, { 0, 16 } }; const ProtobufCMessageDescriptor event_store__client__messages__create_persistent_subscription__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.CreatePersistentSubscription", "CreatePersistentSubscription", "EventStore__Client__Messages__CreatePersistentSubscription", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__CreatePersistentSubscription), 16, event_store__client__messages__create_persistent_subscription__field_descriptors, event_store__client__messages__create_persistent_subscription__field_indices_by_name, 1, event_store__client__messages__create_persistent_subscription__number_ranges, (ProtobufCMessageInit) event_store__client__messages__create_persistent_subscription__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__delete_persistent_subscription__field_descriptors[2] = { { "subscription_group_name", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__DeletePersistentSubscription, subscription_group_name), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "event_stream_id", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__DeletePersistentSubscription, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__delete_persistent_subscription__field_indices_by_name[] = { 1, /* field[1] = event_stream_id */ 0, /* field[0] = subscription_group_name */ }; static const ProtobufCIntRange event_store__client__messages__delete_persistent_subscription__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__delete_persistent_subscription__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.DeletePersistentSubscription", "DeletePersistentSubscription", "EventStore__Client__Messages__DeletePersistentSubscription", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__DeletePersistentSubscription), 2, event_store__client__messages__delete_persistent_subscription__field_descriptors, event_store__client__messages__delete_persistent_subscription__field_indices_by_name, 1, event_store__client__messages__delete_persistent_subscription__number_ranges, (ProtobufCMessageInit) event_store__client__messages__delete_persistent_subscription__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__update_persistent_subscription__field_descriptors[16] = { { "subscription_group_name", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, subscription_group_name), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "event_stream_id", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "resolve_link_tos", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, resolve_link_tos), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "start_from", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, start_from), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "message_timeout_milliseconds", 5, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, message_timeout_milliseconds), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "record_statistics", 6, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, record_statistics), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "live_buffer_size", 7, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, live_buffer_size), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "read_batch_size", 8, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, read_batch_size), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "buffer_size", 9, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, buffer_size), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "max_retry_count", 10, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, max_retry_count), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "prefer_round_robin", 11, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, prefer_round_robin), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "checkpoint_after_time", 12, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, checkpoint_after_time), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "checkpoint_max_count", 13, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, checkpoint_max_count), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "checkpoint_min_count", 14, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, checkpoint_min_count), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "subscriber_max_count", 15, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, subscriber_max_count), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "named_consumer_strategy", 16, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscription, named_consumer_strategy), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__update_persistent_subscription__field_indices_by_name[] = { 8, /* field[8] = buffer_size */ 11, /* field[11] = checkpoint_after_time */ 12, /* field[12] = checkpoint_max_count */ 13, /* field[13] = checkpoint_min_count */ 1, /* field[1] = event_stream_id */ 6, /* field[6] = live_buffer_size */ 9, /* field[9] = max_retry_count */ 4, /* field[4] = message_timeout_milliseconds */ 15, /* field[15] = named_consumer_strategy */ 10, /* field[10] = prefer_round_robin */ 7, /* field[7] = read_batch_size */ 5, /* field[5] = record_statistics */ 2, /* field[2] = resolve_link_tos */ 3, /* field[3] = start_from */ 14, /* field[14] = subscriber_max_count */ 0, /* field[0] = subscription_group_name */ }; static const ProtobufCIntRange event_store__client__messages__update_persistent_subscription__number_ranges[1 + 1] = { { 1, 0 }, { 0, 16 } }; const ProtobufCMessageDescriptor event_store__client__messages__update_persistent_subscription__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.UpdatePersistentSubscription", "UpdatePersistentSubscription", "EventStore__Client__Messages__UpdatePersistentSubscription", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__UpdatePersistentSubscription), 16, event_store__client__messages__update_persistent_subscription__field_descriptors, event_store__client__messages__update_persistent_subscription__field_indices_by_name, 1, event_store__client__messages__update_persistent_subscription__number_ranges, (ProtobufCMessageInit) event_store__client__messages__update_persistent_subscription__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__update_persistent_subscription_completed__update_persistent_subscription_result__enum_values_by_number[4] = { { "Success", "EVENT_STORE__CLIENT__MESSAGES__UPDATE_PERSISTENT_SUBSCRIPTION_COMPLETED__UPDATE_PERSISTENT_SUBSCRIPTION_RESULT__Success", 0 }, { "DoesNotExist", "EVENT_STORE__CLIENT__MESSAGES__UPDATE_PERSISTENT_SUBSCRIPTION_COMPLETED__UPDATE_PERSISTENT_SUBSCRIPTION_RESULT__DoesNotExist", 1 }, { "Fail", "EVENT_STORE__CLIENT__MESSAGES__UPDATE_PERSISTENT_SUBSCRIPTION_COMPLETED__UPDATE_PERSISTENT_SUBSCRIPTION_RESULT__Fail", 2 }, { "AccessDenied", "EVENT_STORE__CLIENT__MESSAGES__UPDATE_PERSISTENT_SUBSCRIPTION_COMPLETED__UPDATE_PERSISTENT_SUBSCRIPTION_RESULT__AccessDenied", 3 }, }; static const ProtobufCIntRange event_store__client__messages__update_persistent_subscription_completed__update_persistent_subscription_result__value_ranges[] = { {0, 0},{0, 4} }; static const ProtobufCEnumValueIndex event_store__client__messages__update_persistent_subscription_completed__update_persistent_subscription_result__enum_values_by_name[4] = { { "AccessDenied", 3 }, { "DoesNotExist", 1 }, { "Fail", 2 }, { "Success", 0 }, }; const ProtobufCEnumDescriptor event_store__client__messages__update_persistent_subscription_completed__update_persistent_subscription_result__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult", "UpdatePersistentSubscriptionResult", "EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted__UpdatePersistentSubscriptionResult", "EventStore.Client.Messages", 4, event_store__client__messages__update_persistent_subscription_completed__update_persistent_subscription_result__enum_values_by_number, 4, event_store__client__messages__update_persistent_subscription_completed__update_persistent_subscription_result__enum_values_by_name, 1, event_store__client__messages__update_persistent_subscription_completed__update_persistent_subscription_result__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; static const EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted__UpdatePersistentSubscriptionResult event_store__client__messages__update_persistent_subscription_completed__result__default_value = EVENT_STORE__CLIENT__MESSAGES__UPDATE_PERSISTENT_SUBSCRIPTION_COMPLETED__UPDATE_PERSISTENT_SUBSCRIPTION_RESULT__Success; static const ProtobufCFieldDescriptor event_store__client__messages__update_persistent_subscription_completed__field_descriptors[2] = { { "result", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted, result), &event_store__client__messages__update_persistent_subscription_completed__update_persistent_subscription_result__descriptor, &event_store__client__messages__update_persistent_subscription_completed__result__default_value, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "reason", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted, reason), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__update_persistent_subscription_completed__field_indices_by_name[] = { 1, /* field[1] = reason */ 0, /* field[0] = result */ }; static const ProtobufCIntRange event_store__client__messages__update_persistent_subscription_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__update_persistent_subscription_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted", "UpdatePersistentSubscriptionCompleted", "EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__UpdatePersistentSubscriptionCompleted), 2, event_store__client__messages__update_persistent_subscription_completed__field_descriptors, event_store__client__messages__update_persistent_subscription_completed__field_indices_by_name, 1, event_store__client__messages__update_persistent_subscription_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__update_persistent_subscription_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__create_persistent_subscription_completed__create_persistent_subscription_result__enum_values_by_number[4] = { { "Success", "EVENT_STORE__CLIENT__MESSAGES__CREATE_PERSISTENT_SUBSCRIPTION_COMPLETED__CREATE_PERSISTENT_SUBSCRIPTION_RESULT__Success", 0 }, { "AlreadyExists", "EVENT_STORE__CLIENT__MESSAGES__CREATE_PERSISTENT_SUBSCRIPTION_COMPLETED__CREATE_PERSISTENT_SUBSCRIPTION_RESULT__AlreadyExists", 1 }, { "Fail", "EVENT_STORE__CLIENT__MESSAGES__CREATE_PERSISTENT_SUBSCRIPTION_COMPLETED__CREATE_PERSISTENT_SUBSCRIPTION_RESULT__Fail", 2 }, { "AccessDenied", "EVENT_STORE__CLIENT__MESSAGES__CREATE_PERSISTENT_SUBSCRIPTION_COMPLETED__CREATE_PERSISTENT_SUBSCRIPTION_RESULT__AccessDenied", 3 }, }; static const ProtobufCIntRange event_store__client__messages__create_persistent_subscription_completed__create_persistent_subscription_result__value_ranges[] = { {0, 0},{0, 4} }; static const ProtobufCEnumValueIndex event_store__client__messages__create_persistent_subscription_completed__create_persistent_subscription_result__enum_values_by_name[4] = { { "AccessDenied", 3 }, { "AlreadyExists", 1 }, { "Fail", 2 }, { "Success", 0 }, }; const ProtobufCEnumDescriptor event_store__client__messages__create_persistent_subscription_completed__create_persistent_subscription_result__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult", "CreatePersistentSubscriptionResult", "EventStore__Client__Messages__CreatePersistentSubscriptionCompleted__CreatePersistentSubscriptionResult", "EventStore.Client.Messages", 4, event_store__client__messages__create_persistent_subscription_completed__create_persistent_subscription_result__enum_values_by_number, 4, event_store__client__messages__create_persistent_subscription_completed__create_persistent_subscription_result__enum_values_by_name, 1, event_store__client__messages__create_persistent_subscription_completed__create_persistent_subscription_result__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; static const EventStore__Client__Messages__CreatePersistentSubscriptionCompleted__CreatePersistentSubscriptionResult event_store__client__messages__create_persistent_subscription_completed__result__default_value = EVENT_STORE__CLIENT__MESSAGES__CREATE_PERSISTENT_SUBSCRIPTION_COMPLETED__CREATE_PERSISTENT_SUBSCRIPTION_RESULT__Success; static const ProtobufCFieldDescriptor event_store__client__messages__create_persistent_subscription_completed__field_descriptors[2] = { { "result", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscriptionCompleted, result), &event_store__client__messages__create_persistent_subscription_completed__create_persistent_subscription_result__descriptor, &event_store__client__messages__create_persistent_subscription_completed__result__default_value, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "reason", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__CreatePersistentSubscriptionCompleted, reason), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__create_persistent_subscription_completed__field_indices_by_name[] = { 1, /* field[1] = reason */ 0, /* field[0] = result */ }; static const ProtobufCIntRange event_store__client__messages__create_persistent_subscription_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__create_persistent_subscription_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.CreatePersistentSubscriptionCompleted", "CreatePersistentSubscriptionCompleted", "EventStore__Client__Messages__CreatePersistentSubscriptionCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__CreatePersistentSubscriptionCompleted), 2, event_store__client__messages__create_persistent_subscription_completed__field_descriptors, event_store__client__messages__create_persistent_subscription_completed__field_indices_by_name, 1, event_store__client__messages__create_persistent_subscription_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__create_persistent_subscription_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__delete_persistent_subscription_completed__delete_persistent_subscription_result__enum_values_by_number[4] = { { "Success", "EVENT_STORE__CLIENT__MESSAGES__DELETE_PERSISTENT_SUBSCRIPTION_COMPLETED__DELETE_PERSISTENT_SUBSCRIPTION_RESULT__Success", 0 }, { "DoesNotExist", "EVENT_STORE__CLIENT__MESSAGES__DELETE_PERSISTENT_SUBSCRIPTION_COMPLETED__DELETE_PERSISTENT_SUBSCRIPTION_RESULT__DoesNotExist", 1 }, { "Fail", "EVENT_STORE__CLIENT__MESSAGES__DELETE_PERSISTENT_SUBSCRIPTION_COMPLETED__DELETE_PERSISTENT_SUBSCRIPTION_RESULT__Fail", 2 }, { "AccessDenied", "EVENT_STORE__CLIENT__MESSAGES__DELETE_PERSISTENT_SUBSCRIPTION_COMPLETED__DELETE_PERSISTENT_SUBSCRIPTION_RESULT__AccessDenied", 3 }, }; static const ProtobufCIntRange event_store__client__messages__delete_persistent_subscription_completed__delete_persistent_subscription_result__value_ranges[] = { {0, 0},{0, 4} }; static const ProtobufCEnumValueIndex event_store__client__messages__delete_persistent_subscription_completed__delete_persistent_subscription_result__enum_values_by_name[4] = { { "AccessDenied", 3 }, { "DoesNotExist", 1 }, { "Fail", 2 }, { "Success", 0 }, }; const ProtobufCEnumDescriptor event_store__client__messages__delete_persistent_subscription_completed__delete_persistent_subscription_result__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult", "DeletePersistentSubscriptionResult", "EventStore__Client__Messages__DeletePersistentSubscriptionCompleted__DeletePersistentSubscriptionResult", "EventStore.Client.Messages", 4, event_store__client__messages__delete_persistent_subscription_completed__delete_persistent_subscription_result__enum_values_by_number, 4, event_store__client__messages__delete_persistent_subscription_completed__delete_persistent_subscription_result__enum_values_by_name, 1, event_store__client__messages__delete_persistent_subscription_completed__delete_persistent_subscription_result__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; static const EventStore__Client__Messages__DeletePersistentSubscriptionCompleted__DeletePersistentSubscriptionResult event_store__client__messages__delete_persistent_subscription_completed__result__default_value = EVENT_STORE__CLIENT__MESSAGES__DELETE_PERSISTENT_SUBSCRIPTION_COMPLETED__DELETE_PERSISTENT_SUBSCRIPTION_RESULT__Success; static const ProtobufCFieldDescriptor event_store__client__messages__delete_persistent_subscription_completed__field_descriptors[2] = { { "result", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__DeletePersistentSubscriptionCompleted, result), &event_store__client__messages__delete_persistent_subscription_completed__delete_persistent_subscription_result__descriptor, &event_store__client__messages__delete_persistent_subscription_completed__result__default_value, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "reason", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__DeletePersistentSubscriptionCompleted, reason), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__delete_persistent_subscription_completed__field_indices_by_name[] = { 1, /* field[1] = reason */ 0, /* field[0] = result */ }; static const ProtobufCIntRange event_store__client__messages__delete_persistent_subscription_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__delete_persistent_subscription_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.DeletePersistentSubscriptionCompleted", "DeletePersistentSubscriptionCompleted", "EventStore__Client__Messages__DeletePersistentSubscriptionCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__DeletePersistentSubscriptionCompleted), 2, event_store__client__messages__delete_persistent_subscription_completed__field_descriptors, event_store__client__messages__delete_persistent_subscription_completed__field_indices_by_name, 1, event_store__client__messages__delete_persistent_subscription_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__delete_persistent_subscription_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__connect_to_persistent_subscription__field_descriptors[3] = { { "subscription_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ConnectToPersistentSubscription, subscription_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "event_stream_id", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ConnectToPersistentSubscription, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "allowed_in_flight_messages", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ConnectToPersistentSubscription, allowed_in_flight_messages), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__connect_to_persistent_subscription__field_indices_by_name[] = { 2, /* field[2] = allowed_in_flight_messages */ 1, /* field[1] = event_stream_id */ 0, /* field[0] = subscription_id */ }; static const ProtobufCIntRange event_store__client__messages__connect_to_persistent_subscription__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; const ProtobufCMessageDescriptor event_store__client__messages__connect_to_persistent_subscription__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ConnectToPersistentSubscription", "ConnectToPersistentSubscription", "EventStore__Client__Messages__ConnectToPersistentSubscription", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ConnectToPersistentSubscription), 3, event_store__client__messages__connect_to_persistent_subscription__field_descriptors, event_store__client__messages__connect_to_persistent_subscription__field_indices_by_name, 1, event_store__client__messages__connect_to_persistent_subscription__number_ranges, (ProtobufCMessageInit) event_store__client__messages__connect_to_persistent_subscription__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__persistent_subscription_ack_events__field_descriptors[2] = { { "subscription_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__PersistentSubscriptionAckEvents, subscription_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "processed_event_ids", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_BYTES, offsetof(EventStore__Client__Messages__PersistentSubscriptionAckEvents, n_processed_event_ids), offsetof(EventStore__Client__Messages__PersistentSubscriptionAckEvents, processed_event_ids), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__persistent_subscription_ack_events__field_indices_by_name[] = { 1, /* field[1] = processed_event_ids */ 0, /* field[0] = subscription_id */ }; static const ProtobufCIntRange event_store__client__messages__persistent_subscription_ack_events__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__persistent_subscription_ack_events__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.PersistentSubscriptionAckEvents", "PersistentSubscriptionAckEvents", "EventStore__Client__Messages__PersistentSubscriptionAckEvents", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__PersistentSubscriptionAckEvents), 2, event_store__client__messages__persistent_subscription_ack_events__field_descriptors, event_store__client__messages__persistent_subscription_ack_events__field_indices_by_name, 1, event_store__client__messages__persistent_subscription_ack_events__number_ranges, (ProtobufCMessageInit) event_store__client__messages__persistent_subscription_ack_events__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__persistent_subscription_nak_events__nak_action__enum_values_by_number[5] = { { "Unknown", "EVENT_STORE__CLIENT__MESSAGES__PERSISTENT_SUBSCRIPTION_NAK_EVENTS__NAK_ACTION__Unknown", 0 }, { "Park", "EVENT_STORE__CLIENT__MESSAGES__PERSISTENT_SUBSCRIPTION_NAK_EVENTS__NAK_ACTION__Park", 1 }, { "Retry", "EVENT_STORE__CLIENT__MESSAGES__PERSISTENT_SUBSCRIPTION_NAK_EVENTS__NAK_ACTION__Retry", 2 }, { "Skip", "EVENT_STORE__CLIENT__MESSAGES__PERSISTENT_SUBSCRIPTION_NAK_EVENTS__NAK_ACTION__Skip", 3 }, { "Stop", "EVENT_STORE__CLIENT__MESSAGES__PERSISTENT_SUBSCRIPTION_NAK_EVENTS__NAK_ACTION__Stop", 4 }, }; static const ProtobufCIntRange event_store__client__messages__persistent_subscription_nak_events__nak_action__value_ranges[] = { {0, 0},{0, 5} }; static const ProtobufCEnumValueIndex event_store__client__messages__persistent_subscription_nak_events__nak_action__enum_values_by_name[5] = { { "Park", 1 }, { "Retry", 2 }, { "Skip", 3 }, { "Stop", 4 }, { "Unknown", 0 }, }; const ProtobufCEnumDescriptor event_store__client__messages__persistent_subscription_nak_events__nak_action__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction", "NakAction", "EventStore__Client__Messages__PersistentSubscriptionNakEvents__NakAction", "EventStore.Client.Messages", 5, event_store__client__messages__persistent_subscription_nak_events__nak_action__enum_values_by_number, 5, event_store__client__messages__persistent_subscription_nak_events__nak_action__enum_values_by_name, 1, event_store__client__messages__persistent_subscription_nak_events__nak_action__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; static const EventStore__Client__Messages__PersistentSubscriptionNakEvents__NakAction event_store__client__messages__persistent_subscription_nak_events__action__default_value = EVENT_STORE__CLIENT__MESSAGES__PERSISTENT_SUBSCRIPTION_NAK_EVENTS__NAK_ACTION__Unknown; static const ProtobufCFieldDescriptor event_store__client__messages__persistent_subscription_nak_events__field_descriptors[4] = { { "subscription_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__PersistentSubscriptionNakEvents, subscription_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "processed_event_ids", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_BYTES, offsetof(EventStore__Client__Messages__PersistentSubscriptionNakEvents, n_processed_event_ids), offsetof(EventStore__Client__Messages__PersistentSubscriptionNakEvents, processed_event_ids), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "message", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__PersistentSubscriptionNakEvents, message), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "action", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__PersistentSubscriptionNakEvents, action), &event_store__client__messages__persistent_subscription_nak_events__nak_action__descriptor, &event_store__client__messages__persistent_subscription_nak_events__action__default_value, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__persistent_subscription_nak_events__field_indices_by_name[] = { 3, /* field[3] = action */ 2, /* field[2] = message */ 1, /* field[1] = processed_event_ids */ 0, /* field[0] = subscription_id */ }; static const ProtobufCIntRange event_store__client__messages__persistent_subscription_nak_events__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; const ProtobufCMessageDescriptor event_store__client__messages__persistent_subscription_nak_events__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.PersistentSubscriptionNakEvents", "PersistentSubscriptionNakEvents", "EventStore__Client__Messages__PersistentSubscriptionNakEvents", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__PersistentSubscriptionNakEvents), 4, event_store__client__messages__persistent_subscription_nak_events__field_descriptors, event_store__client__messages__persistent_subscription_nak_events__field_indices_by_name, 1, event_store__client__messages__persistent_subscription_nak_events__number_ranges, (ProtobufCMessageInit) event_store__client__messages__persistent_subscription_nak_events__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__persistent_subscription_confirmation__field_descriptors[3] = { { "last_commit_position", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__PersistentSubscriptionConfirmation, last_commit_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "subscription_id", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__PersistentSubscriptionConfirmation, subscription_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "last_event_number", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__PersistentSubscriptionConfirmation, has_last_event_number), offsetof(EventStore__Client__Messages__PersistentSubscriptionConfirmation, last_event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__persistent_subscription_confirmation__field_indices_by_name[] = { 0, /* field[0] = last_commit_position */ 2, /* field[2] = last_event_number */ 1, /* field[1] = subscription_id */ }; static const ProtobufCIntRange event_store__client__messages__persistent_subscription_confirmation__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; const ProtobufCMessageDescriptor event_store__client__messages__persistent_subscription_confirmation__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.PersistentSubscriptionConfirmation", "PersistentSubscriptionConfirmation", "EventStore__Client__Messages__PersistentSubscriptionConfirmation", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__PersistentSubscriptionConfirmation), 3, event_store__client__messages__persistent_subscription_confirmation__field_descriptors, event_store__client__messages__persistent_subscription_confirmation__field_indices_by_name, 1, event_store__client__messages__persistent_subscription_confirmation__number_ranges, (ProtobufCMessageInit) event_store__client__messages__persistent_subscription_confirmation__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__persistent_subscription_stream_event_appeared__field_descriptors[1] = { { "event", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared, event), &event_store__client__messages__resolved_indexed_event__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__persistent_subscription_stream_event_appeared__field_indices_by_name[] = { 0, /* field[0] = event */ }; static const ProtobufCIntRange event_store__client__messages__persistent_subscription_stream_event_appeared__number_ranges[1 + 1] = { { 1, 0 }, { 0, 1 } }; const ProtobufCMessageDescriptor event_store__client__messages__persistent_subscription_stream_event_appeared__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared", "PersistentSubscriptionStreamEventAppeared", "EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__PersistentSubscriptionStreamEventAppeared), 1, event_store__client__messages__persistent_subscription_stream_event_appeared__field_descriptors, event_store__client__messages__persistent_subscription_stream_event_appeared__field_indices_by_name, 1, event_store__client__messages__persistent_subscription_stream_event_appeared__number_ranges, (ProtobufCMessageInit) event_store__client__messages__persistent_subscription_stream_event_appeared__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__subscribe_to_stream__field_descriptors[2] = { { "event_stream_id", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__SubscribeToStream, event_stream_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "resolve_link_tos", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__SubscribeToStream, resolve_link_tos), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__subscribe_to_stream__field_indices_by_name[] = { 0, /* field[0] = event_stream_id */ 1, /* field[1] = resolve_link_tos */ }; static const ProtobufCIntRange event_store__client__messages__subscribe_to_stream__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__subscribe_to_stream__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.SubscribeToStream", "SubscribeToStream", "EventStore__Client__Messages__SubscribeToStream", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__SubscribeToStream), 2, event_store__client__messages__subscribe_to_stream__field_descriptors, event_store__client__messages__subscribe_to_stream__field_indices_by_name, 1, event_store__client__messages__subscribe_to_stream__number_ranges, (ProtobufCMessageInit) event_store__client__messages__subscribe_to_stream__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__subscription_confirmation__field_descriptors[2] = { { "last_commit_position", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__SubscriptionConfirmation, last_commit_position), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "last_event_number", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(EventStore__Client__Messages__SubscriptionConfirmation, has_last_event_number), offsetof(EventStore__Client__Messages__SubscriptionConfirmation, last_event_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__subscription_confirmation__field_indices_by_name[] = { 0, /* field[0] = last_commit_position */ 1, /* field[1] = last_event_number */ }; static const ProtobufCIntRange event_store__client__messages__subscription_confirmation__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__subscription_confirmation__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.SubscriptionConfirmation", "SubscriptionConfirmation", "EventStore__Client__Messages__SubscriptionConfirmation", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__SubscriptionConfirmation), 2, event_store__client__messages__subscription_confirmation__field_descriptors, event_store__client__messages__subscription_confirmation__field_indices_by_name, 1, event_store__client__messages__subscription_confirmation__number_ranges, (ProtobufCMessageInit) event_store__client__messages__subscription_confirmation__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__stream_event_appeared__field_descriptors[1] = { { "event", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__StreamEventAppeared, event), &event_store__client__messages__resolved_event__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__stream_event_appeared__field_indices_by_name[] = { 0, /* field[0] = event */ }; static const ProtobufCIntRange event_store__client__messages__stream_event_appeared__number_ranges[1 + 1] = { { 1, 0 }, { 0, 1 } }; const ProtobufCMessageDescriptor event_store__client__messages__stream_event_appeared__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.StreamEventAppeared", "StreamEventAppeared", "EventStore__Client__Messages__StreamEventAppeared", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__StreamEventAppeared), 1, event_store__client__messages__stream_event_appeared__field_descriptors, event_store__client__messages__stream_event_appeared__field_indices_by_name, 1, event_store__client__messages__stream_event_appeared__number_ranges, (ProtobufCMessageInit) event_store__client__messages__stream_event_appeared__init, NULL,NULL,NULL /* reserved[123] */ }; #define event_store__client__messages__unsubscribe_from_stream__field_descriptors NULL #define event_store__client__messages__unsubscribe_from_stream__field_indices_by_name NULL #define event_store__client__messages__unsubscribe_from_stream__number_ranges NULL const ProtobufCMessageDescriptor event_store__client__messages__unsubscribe_from_stream__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.UnsubscribeFromStream", "UnsubscribeFromStream", "EventStore__Client__Messages__UnsubscribeFromStream", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__UnsubscribeFromStream), 0, event_store__client__messages__unsubscribe_from_stream__field_descriptors, event_store__client__messages__unsubscribe_from_stream__field_indices_by_name, 0, event_store__client__messages__unsubscribe_from_stream__number_ranges, (ProtobufCMessageInit) event_store__client__messages__unsubscribe_from_stream__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__subscription_dropped__subscription_drop_reason__enum_values_by_number[5] = { { "Unsubscribed", "EVENT_STORE__CLIENT__MESSAGES__SUBSCRIPTION_DROPPED__SUBSCRIPTION_DROP_REASON__Unsubscribed", 0 }, { "AccessDenied", "EVENT_STORE__CLIENT__MESSAGES__SUBSCRIPTION_DROPPED__SUBSCRIPTION_DROP_REASON__AccessDenied", 1 }, { "NotFound", "EVENT_STORE__CLIENT__MESSAGES__SUBSCRIPTION_DROPPED__SUBSCRIPTION_DROP_REASON__NotFound", 2 }, { "PersistentSubscriptionDeleted", "EVENT_STORE__CLIENT__MESSAGES__SUBSCRIPTION_DROPPED__SUBSCRIPTION_DROP_REASON__PersistentSubscriptionDeleted", 3 }, { "SubscriberMaxCountReached", "EVENT_STORE__CLIENT__MESSAGES__SUBSCRIPTION_DROPPED__SUBSCRIPTION_DROP_REASON__SubscriberMaxCountReached", 4 }, }; static const ProtobufCIntRange event_store__client__messages__subscription_dropped__subscription_drop_reason__value_ranges[] = { {0, 0},{0, 5} }; static const ProtobufCEnumValueIndex event_store__client__messages__subscription_dropped__subscription_drop_reason__enum_values_by_name[5] = { { "AccessDenied", 1 }, { "NotFound", 2 }, { "PersistentSubscriptionDeleted", 3 }, { "SubscriberMaxCountReached", 4 }, { "Unsubscribed", 0 }, }; const ProtobufCEnumDescriptor event_store__client__messages__subscription_dropped__subscription_drop_reason__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason", "SubscriptionDropReason", "EventStore__Client__Messages__SubscriptionDropped__SubscriptionDropReason", "EventStore.Client.Messages", 5, event_store__client__messages__subscription_dropped__subscription_drop_reason__enum_values_by_number, 5, event_store__client__messages__subscription_dropped__subscription_drop_reason__enum_values_by_name, 1, event_store__client__messages__subscription_dropped__subscription_drop_reason__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; static const EventStore__Client__Messages__SubscriptionDropped__SubscriptionDropReason event_store__client__messages__subscription_dropped__reason__default_value = EVENT_STORE__CLIENT__MESSAGES__SUBSCRIPTION_DROPPED__SUBSCRIPTION_DROP_REASON__Unsubscribed; static const ProtobufCFieldDescriptor event_store__client__messages__subscription_dropped__field_descriptors[1] = { { "reason", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_ENUM, offsetof(EventStore__Client__Messages__SubscriptionDropped, has_reason), offsetof(EventStore__Client__Messages__SubscriptionDropped, reason), &event_store__client__messages__subscription_dropped__subscription_drop_reason__descriptor, &event_store__client__messages__subscription_dropped__reason__default_value, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__subscription_dropped__field_indices_by_name[] = { 0, /* field[0] = reason */ }; static const ProtobufCIntRange event_store__client__messages__subscription_dropped__number_ranges[1 + 1] = { { 1, 0 }, { 0, 1 } }; const ProtobufCMessageDescriptor event_store__client__messages__subscription_dropped__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.SubscriptionDropped", "SubscriptionDropped", "EventStore__Client__Messages__SubscriptionDropped", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__SubscriptionDropped), 1, event_store__client__messages__subscription_dropped__field_descriptors, event_store__client__messages__subscription_dropped__field_indices_by_name, 1, event_store__client__messages__subscription_dropped__number_ranges, (ProtobufCMessageInit) event_store__client__messages__subscription_dropped__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__not_handled__master_info__field_descriptors[6] = { { "external_tcp_address", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NotHandled__MasterInfo, external_tcp_address), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "external_tcp_port", 2, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NotHandled__MasterInfo, external_tcp_port), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "external_http_address", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NotHandled__MasterInfo, external_http_address), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "external_http_port", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NotHandled__MasterInfo, external_http_port), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "external_secure_tcp_address", 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NotHandled__MasterInfo, external_secure_tcp_address), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "external_secure_tcp_port", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(EventStore__Client__Messages__NotHandled__MasterInfo, has_external_secure_tcp_port), offsetof(EventStore__Client__Messages__NotHandled__MasterInfo, external_secure_tcp_port), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__not_handled__master_info__field_indices_by_name[] = { 2, /* field[2] = external_http_address */ 3, /* field[3] = external_http_port */ 4, /* field[4] = external_secure_tcp_address */ 5, /* field[5] = external_secure_tcp_port */ 0, /* field[0] = external_tcp_address */ 1, /* field[1] = external_tcp_port */ }; static const ProtobufCIntRange event_store__client__messages__not_handled__master_info__number_ranges[1 + 1] = { { 1, 0 }, { 0, 6 } }; const ProtobufCMessageDescriptor event_store__client__messages__not_handled__master_info__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.NotHandled.MasterInfo", "MasterInfo", "EventStore__Client__Messages__NotHandled__MasterInfo", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__NotHandled__MasterInfo), 6, event_store__client__messages__not_handled__master_info__field_descriptors, event_store__client__messages__not_handled__master_info__field_indices_by_name, 1, event_store__client__messages__not_handled__master_info__number_ranges, (ProtobufCMessageInit) event_store__client__messages__not_handled__master_info__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__not_handled__not_handled_reason__enum_values_by_number[3] = { { "NotReady", "EVENT_STORE__CLIENT__MESSAGES__NOT_HANDLED__NOT_HANDLED_REASON__NotReady", 0 }, { "TooBusy", "EVENT_STORE__CLIENT__MESSAGES__NOT_HANDLED__NOT_HANDLED_REASON__TooBusy", 1 }, { "NotMaster", "EVENT_STORE__CLIENT__MESSAGES__NOT_HANDLED__NOT_HANDLED_REASON__NotMaster", 2 }, }; static const ProtobufCIntRange event_store__client__messages__not_handled__not_handled_reason__value_ranges[] = { {0, 0},{0, 3} }; static const ProtobufCEnumValueIndex event_store__client__messages__not_handled__not_handled_reason__enum_values_by_name[3] = { { "NotMaster", 2 }, { "NotReady", 0 }, { "TooBusy", 1 }, }; const ProtobufCEnumDescriptor event_store__client__messages__not_handled__not_handled_reason__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.NotHandled.NotHandledReason", "NotHandledReason", "EventStore__Client__Messages__NotHandled__NotHandledReason", "EventStore.Client.Messages", 3, event_store__client__messages__not_handled__not_handled_reason__enum_values_by_number, 3, event_store__client__messages__not_handled__not_handled_reason__enum_values_by_name, 1, event_store__client__messages__not_handled__not_handled_reason__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__not_handled__field_descriptors[2] = { { "reason", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__NotHandled, reason), &event_store__client__messages__not_handled__not_handled_reason__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "additional_info", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BYTES, offsetof(EventStore__Client__Messages__NotHandled, has_additional_info), offsetof(EventStore__Client__Messages__NotHandled, additional_info), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__not_handled__field_indices_by_name[] = { 1, /* field[1] = additional_info */ 0, /* field[0] = reason */ }; static const ProtobufCIntRange event_store__client__messages__not_handled__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__not_handled__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.NotHandled", "NotHandled", "EventStore__Client__Messages__NotHandled", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__NotHandled), 2, event_store__client__messages__not_handled__field_descriptors, event_store__client__messages__not_handled__field_indices_by_name, 1, event_store__client__messages__not_handled__number_ranges, (ProtobufCMessageInit) event_store__client__messages__not_handled__init, NULL,NULL,NULL /* reserved[123] */ }; #define event_store__client__messages__scavenge_database__field_descriptors NULL #define event_store__client__messages__scavenge_database__field_indices_by_name NULL #define event_store__client__messages__scavenge_database__number_ranges NULL const ProtobufCMessageDescriptor event_store__client__messages__scavenge_database__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ScavengeDatabase", "ScavengeDatabase", "EventStore__Client__Messages__ScavengeDatabase", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ScavengeDatabase), 0, event_store__client__messages__scavenge_database__field_descriptors, event_store__client__messages__scavenge_database__field_indices_by_name, 0, event_store__client__messages__scavenge_database__number_ranges, (ProtobufCMessageInit) event_store__client__messages__scavenge_database__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__scavenge_database_completed__scavenge_result__enum_values_by_number[3] = { { "Success", "EVENT_STORE__CLIENT__MESSAGES__SCAVENGE_DATABASE_COMPLETED__SCAVENGE_RESULT__Success", 0 }, { "InProgress", "EVENT_STORE__CLIENT__MESSAGES__SCAVENGE_DATABASE_COMPLETED__SCAVENGE_RESULT__InProgress", 1 }, { "Failed", "EVENT_STORE__CLIENT__MESSAGES__SCAVENGE_DATABASE_COMPLETED__SCAVENGE_RESULT__Failed", 2 }, }; static const ProtobufCIntRange event_store__client__messages__scavenge_database_completed__scavenge_result__value_ranges[] = { {0, 0},{0, 3} }; static const ProtobufCEnumValueIndex event_store__client__messages__scavenge_database_completed__scavenge_result__enum_values_by_name[3] = { { "Failed", 2 }, { "InProgress", 1 }, { "Success", 0 }, }; const ProtobufCEnumDescriptor event_store__client__messages__scavenge_database_completed__scavenge_result__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ScavengeDatabaseCompleted.ScavengeResult", "ScavengeResult", "EventStore__Client__Messages__ScavengeDatabaseCompleted__ScavengeResult", "EventStore.Client.Messages", 3, event_store__client__messages__scavenge_database_completed__scavenge_result__enum_values_by_number, 3, event_store__client__messages__scavenge_database_completed__scavenge_result__enum_values_by_name, 1, event_store__client__messages__scavenge_database_completed__scavenge_result__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__scavenge_database_completed__field_descriptors[4] = { { "result", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ScavengeDatabaseCompleted, result), &event_store__client__messages__scavenge_database_completed__scavenge_result__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "error", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ScavengeDatabaseCompleted, error), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "total_time_ms", 3, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ScavengeDatabaseCompleted, total_time_ms), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "total_space_saved", 4, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__ScavengeDatabaseCompleted, total_space_saved), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__scavenge_database_completed__field_indices_by_name[] = { 1, /* field[1] = error */ 0, /* field[0] = result */ 3, /* field[3] = total_space_saved */ 2, /* field[2] = total_time_ms */ }; static const ProtobufCIntRange event_store__client__messages__scavenge_database_completed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; const ProtobufCMessageDescriptor event_store__client__messages__scavenge_database_completed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ScavengeDatabaseCompleted", "ScavengeDatabaseCompleted", "EventStore__Client__Messages__ScavengeDatabaseCompleted", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ScavengeDatabaseCompleted), 4, event_store__client__messages__scavenge_database_completed__field_descriptors, event_store__client__messages__scavenge_database_completed__field_indices_by_name, 1, event_store__client__messages__scavenge_database_completed__number_ranges, (ProtobufCMessageInit) event_store__client__messages__scavenge_database_completed__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor event_store__client__messages__identify_client__field_descriptors[2] = { { "version", 1, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__IdentifyClient, version), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "connection_name", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(EventStore__Client__Messages__IdentifyClient, connection_name), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned event_store__client__messages__identify_client__field_indices_by_name[] = { 1, /* field[1] = connection_name */ 0, /* field[0] = version */ }; static const ProtobufCIntRange event_store__client__messages__identify_client__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor event_store__client__messages__identify_client__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.IdentifyClient", "IdentifyClient", "EventStore__Client__Messages__IdentifyClient", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__IdentifyClient), 2, event_store__client__messages__identify_client__field_descriptors, event_store__client__messages__identify_client__field_indices_by_name, 1, event_store__client__messages__identify_client__number_ranges, (ProtobufCMessageInit) event_store__client__messages__identify_client__init, NULL,NULL,NULL /* reserved[123] */ }; #define event_store__client__messages__client_identified__field_descriptors NULL #define event_store__client__messages__client_identified__field_indices_by_name NULL #define event_store__client__messages__client_identified__number_ranges NULL const ProtobufCMessageDescriptor event_store__client__messages__client_identified__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.ClientIdentified", "ClientIdentified", "EventStore__Client__Messages__ClientIdentified", "EventStore.Client.Messages", sizeof(EventStore__Client__Messages__ClientIdentified), 0, event_store__client__messages__client_identified__field_descriptors, event_store__client__messages__client_identified__field_indices_by_name, 0, event_store__client__messages__client_identified__number_ranges, (ProtobufCMessageInit) event_store__client__messages__client_identified__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue event_store__client__messages__operation_result__enum_values_by_number[8] = { { "Success", "EVENT_STORE__CLIENT__MESSAGES__OPERATION_RESULT__Success", 0 }, { "PrepareTimeout", "EVENT_STORE__CLIENT__MESSAGES__OPERATION_RESULT__PrepareTimeout", 1 }, { "CommitTimeout", "EVENT_STORE__CLIENT__MESSAGES__OPERATION_RESULT__CommitTimeout", 2 }, { "ForwardTimeout", "EVENT_STORE__CLIENT__MESSAGES__OPERATION_RESULT__ForwardTimeout", 3 }, { "WrongExpectedVersion", "EVENT_STORE__CLIENT__MESSAGES__OPERATION_RESULT__WrongExpectedVersion", 4 }, { "StreamDeleted", "EVENT_STORE__CLIENT__MESSAGES__OPERATION_RESULT__StreamDeleted", 5 }, { "InvalidTransaction", "EVENT_STORE__CLIENT__MESSAGES__OPERATION_RESULT__InvalidTransaction", 6 }, { "AccessDenied", "EVENT_STORE__CLIENT__MESSAGES__OPERATION_RESULT__AccessDenied", 7 }, }; static const ProtobufCIntRange event_store__client__messages__operation_result__value_ranges[] = { {0, 0},{0, 8} }; static const ProtobufCEnumValueIndex event_store__client__messages__operation_result__enum_values_by_name[8] = { { "AccessDenied", 7 }, { "CommitTimeout", 2 }, { "ForwardTimeout", 3 }, { "InvalidTransaction", 6 }, { "PrepareTimeout", 1 }, { "StreamDeleted", 5 }, { "Success", 0 }, { "WrongExpectedVersion", 4 }, }; const ProtobufCEnumDescriptor event_store__client__messages__operation_result__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "EventStore.Client.Messages.OperationResult", "OperationResult", "EventStore__Client__Messages__OperationResult", "EventStore.Client.Messages", 8, event_store__client__messages__operation_result__enum_values_by_number, 8, event_store__client__messages__operation_result__enum_values_by_name, 1, event_store__client__messages__operation_result__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ };