/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: GetStorageInfoResponse.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "GetStorageInfoResponse.pb-c.h" void get_storage_info_response__init (GetStorageInfoResponse *message) { static const GetStorageInfoResponse init_value = GET_STORAGE_INFO_RESPONSE__INIT; *message = init_value; } size_t get_storage_info_response__get_packed_size (const GetStorageInfoResponse *message) { assert(message->base.descriptor == &get_storage_info_response__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t get_storage_info_response__pack (const GetStorageInfoResponse *message, uint8_t *out) { assert(message->base.descriptor == &get_storage_info_response__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t get_storage_info_response__pack_to_buffer (const GetStorageInfoResponse *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &get_storage_info_response__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GetStorageInfoResponse * get_storage_info_response__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (GetStorageInfoResponse *) protobuf_c_message_unpack (&get_storage_info_response__descriptor, allocator, len, data); } void get_storage_info_response__free_unpacked (GetStorageInfoResponse *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &get_storage_info_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor get_storage_info_response__field_descriptors[3] = { { "", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(GetStorageInfoResponse, has_capacity), offsetof(GetStorageInfoResponse, capacity), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT64, offsetof(GetStorageInfoResponse, has_freespace), offsetof(GetStorageInfoResponse, freespace), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(GetStorageInfoResponse, root), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned get_storage_info_response__field_indices_by_name[] = { 0, /* field[0] = Capacity */ 1, /* field[1] = FreeSpace */ 2, /* field[2] = Root */ }; static const ProtobufCIntRange get_storage_info_response__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; const ProtobufCMessageDescriptor get_storage_info_response__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(GetStorageInfoResponse), 3, get_storage_info_response__field_descriptors, get_storage_info_response__field_indices_by_name, 1, get_storage_info_response__number_ranges, (ProtobufCMessageInit) get_storage_info_response__init, NULL,NULL,NULL /* reserved[123] */ };