aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileUploadRequest.pb-c.c
blob: 25349a4e13f5d3a1ad6924c5101dca293d2f5b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: FileUploadRequest.proto */

/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif

#include "FileUploadRequest.pb-c.h"
void   file_upload_request__init
                     (FileUploadRequest         *message)
{
  static const FileUploadRequest init_value = FILE_UPLOAD_REQUEST__INIT;
  *message = init_value;
}
size_t file_upload_request__get_packed_size
                     (const FileUploadRequest *message)
{
  assert(message->base.descriptor == &file_upload_request__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t file_upload_request__pack
                     (const FileUploadRequest *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &file_upload_request__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t file_upload_request__pack_to_buffer
                     (const FileUploadRequest *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &file_upload_request__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
FileUploadRequest *
       file_upload_request__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (FileUploadRequest *)
     protobuf_c_message_unpack (&file_upload_request__descriptor,
                                allocator, len, data);
}
void   file_upload_request__free_unpacked
                     (FileUploadRequest *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &file_upload_request__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor file_upload_request__field_descriptors[2] =
{
  {
    "Path",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(FileUploadRequest, path),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "Length",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_INT64,
    offsetof(FileUploadRequest, has_length),
    offsetof(FileUploadRequest, length),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned file_upload_request__field_indices_by_name[] = {
  1,   /* field[1] = Length */
  0,   /* field[0] = Path */
};
static const ProtobufCIntRange file_upload_request__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor file_upload_request__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "FileUploadRequest",
  "FileUploadRequest",
  "FileUploadRequest",
  "",
  sizeof(FileUploadRequest),
  2,
  file_upload_request__field_descriptors,
  file_upload_request__field_indices_by_name,
  1,  file_upload_request__number_ranges,
  (ProtobufCMessageInit) file_upload_request__init,
  NULL,NULL,NULL    /* reserved[123] */
};
"n">StopDebugLogResponse& default_instance(); static inline const StopDebugLogResponse* internal_default_instance() { return reinterpret_cast<const StopDebugLogResponse*>( &_StopDebugLogResponse_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 0; void Swap(StopDebugLogResponse* other); friend void swap(StopDebugLogResponse& a, StopDebugLogResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline StopDebugLogResponse* New() const PROTOBUF_FINAL { return New(NULL); } StopDebugLogResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const StopDebugLogResponse& from); void MergeFrom(const StopDebugLogResponse& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(StopDebugLogResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:Tango.PMR.Debugging.StopDebugLogResponse) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; mutable int _cached_size_; friend struct protobuf_StopDebugLogResponse_2eproto::TableStruct; }; // =================================================================== // =================================================================== #if !PROTOBUF_INLINE_NOT_IN_HEADERS #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // StopDebugLogResponse #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace Debugging } // namespace PMR } // namespace Tango // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_StopDebugLogResponse_2eproto__INCLUDED