1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */ 2 /* Generated from: Parameters.proto */ 3 4 #ifndef PROTOBUF_C_Parameters_2eproto__INCLUDED 5 #define PROTOBUF_C_Parameters_2eproto__INCLUDED 6 7 #include <protobuf-c/protobuf-c.h> 8 9 PROTOBUF_C__BEGIN_DECLS 10 11 #if PROTOBUF_C_VERSION_NUMBER < 1003000 12 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. 13 #elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION 14 # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. 15 #endif 16 17 #include "DataStructures.pb-c.h" 18 19 typedef struct _CoreML__Specification__Int64Parameter CoreML__Specification__Int64Parameter; 20 typedef struct _CoreML__Specification__DoubleParameter CoreML__Specification__DoubleParameter; 21 typedef struct _CoreML__Specification__StringParameter CoreML__Specification__StringParameter; 22 typedef struct _CoreML__Specification__BoolParameter CoreML__Specification__BoolParameter; 23 24 25 /* --- enums --- */ 26 27 28 /* --- messages --- */ 29 30 typedef enum { 31 CORE_ML__SPECIFICATION__INT64_PARAMETER__ALLOWED_VALUES__NOT_SET = 0, 32 CORE_ML__SPECIFICATION__INT64_PARAMETER__ALLOWED_VALUES_RANGE = 10, 33 CORE_ML__SPECIFICATION__INT64_PARAMETER__ALLOWED_VALUES_SET = 11 34 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(CORE_ML__SPECIFICATION__INT64_PARAMETER__ALLOWED_VALUES) 35 } CoreML__Specification__Int64Parameter__AllowedValuesCase; 36 37 /* 38 ** 39 * Int64 parameter, 40 * consisting of a default int64 value, and allowed range or set of values 41 * value is unbounded if AllowedValues is not set. 42 */ 43 struct _CoreML__Specification__Int64Parameter 44 { 45 ProtobufCMessage base; 46 int64_t defaultvalue; 47 CoreML__Specification__Int64Parameter__AllowedValuesCase allowed_values_case; 48 union { 49 CoreML__Specification__Int64Range *range; 50 CoreML__Specification__Int64Set *set; 51 }; 52 }; 53 #define CORE_ML__SPECIFICATION__INT64_PARAMETER__INIT \ 54 { PROTOBUF_C_MESSAGE_INIT (&core_ml__specification__int64_parameter__descriptor) \ 55 , 0, CORE_ML__SPECIFICATION__INT64_PARAMETER__ALLOWED_VALUES__NOT_SET, {0} } 56 57 58 typedef enum { 59 CORE_ML__SPECIFICATION__DOUBLE_PARAMETER__ALLOWED_VALUES__NOT_SET = 0, 60 CORE_ML__SPECIFICATION__DOUBLE_PARAMETER__ALLOWED_VALUES_RANGE = 10 61 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(CORE_ML__SPECIFICATION__DOUBLE_PARAMETER__ALLOWED_VALUES) 62 } CoreML__Specification__DoubleParameter__AllowedValuesCase; 63 64 /* 65 ** 66 * Double parameter, 67 * consisting of a default double value, and allowed range of values 68 * value is unbounded if AllowedValues is not set. 69 */ 70 struct _CoreML__Specification__DoubleParameter 71 { 72 ProtobufCMessage base; 73 double defaultvalue; 74 CoreML__Specification__DoubleParameter__AllowedValuesCase allowed_values_case; 75 union { 76 CoreML__Specification__DoubleRange *range; 77 }; 78 }; 79 #define CORE_ML__SPECIFICATION__DOUBLE_PARAMETER__INIT \ 80 { PROTOBUF_C_MESSAGE_INIT (&core_ml__specification__double_parameter__descriptor) \ 81 , 0, CORE_ML__SPECIFICATION__DOUBLE_PARAMETER__ALLOWED_VALUES__NOT_SET, {0} } 82 83 84 /* 85 ** 86 * String parameter, 87 * A default string value must be provided 88 */ 89 struct _CoreML__Specification__StringParameter 90 { 91 ProtobufCMessage base; 92 char *defaultvalue; 93 }; 94 #define CORE_ML__SPECIFICATION__STRING_PARAMETER__INIT \ 95 { PROTOBUF_C_MESSAGE_INIT (&core_ml__specification__string_parameter__descriptor) \ 96 , (char *)protobuf_c_empty_string } 97 98 99 /* 100 ** 101 * String parameter, 102 * A default bool value must be provided 103 */ 104 struct _CoreML__Specification__BoolParameter 105 { 106 ProtobufCMessage base; 107 protobuf_c_boolean defaultvalue; 108 }; 109 #define CORE_ML__SPECIFICATION__BOOL_PARAMETER__INIT \ 110 { PROTOBUF_C_MESSAGE_INIT (&core_ml__specification__bool_parameter__descriptor) \ 111 , 0 } 112 113 114 /* CoreML__Specification__Int64Parameter methods */ 115 void core_ml__specification__int64_parameter__init 116 (CoreML__Specification__Int64Parameter *message); 117 size_t core_ml__specification__int64_parameter__get_packed_size 118 (const CoreML__Specification__Int64Parameter *message); 119 size_t core_ml__specification__int64_parameter__pack 120 (const CoreML__Specification__Int64Parameter *message, 121 uint8_t *out); 122 size_t core_ml__specification__int64_parameter__pack_to_buffer 123 (const CoreML__Specification__Int64Parameter *message, 124 ProtobufCBuffer *buffer); 125 CoreML__Specification__Int64Parameter * 126 core_ml__specification__int64_parameter__unpack 127 (ProtobufCAllocator *allocator, 128 size_t len, 129 const uint8_t *data); 130 void core_ml__specification__int64_parameter__free_unpacked 131 (CoreML__Specification__Int64Parameter *message, 132 ProtobufCAllocator *allocator); 133 /* CoreML__Specification__DoubleParameter methods */ 134 void core_ml__specification__double_parameter__init 135 (CoreML__Specification__DoubleParameter *message); 136 size_t core_ml__specification__double_parameter__get_packed_size 137 (const CoreML__Specification__DoubleParameter *message); 138 size_t core_ml__specification__double_parameter__pack 139 (const CoreML__Specification__DoubleParameter *message, 140 uint8_t *out); 141 size_t core_ml__specification__double_parameter__pack_to_buffer 142 (const CoreML__Specification__DoubleParameter *message, 143 ProtobufCBuffer *buffer); 144 CoreML__Specification__DoubleParameter * 145 core_ml__specification__double_parameter__unpack 146 (ProtobufCAllocator *allocator, 147 size_t len, 148 const uint8_t *data); 149 void core_ml__specification__double_parameter__free_unpacked 150 (CoreML__Specification__DoubleParameter *message, 151 ProtobufCAllocator *allocator); 152 /* CoreML__Specification__StringParameter methods */ 153 void core_ml__specification__string_parameter__init 154 (CoreML__Specification__StringParameter *message); 155 size_t core_ml__specification__string_parameter__get_packed_size 156 (const CoreML__Specification__StringParameter *message); 157 size_t core_ml__specification__string_parameter__pack 158 (const CoreML__Specification__StringParameter *message, 159 uint8_t *out); 160 size_t core_ml__specification__string_parameter__pack_to_buffer 161 (const CoreML__Specification__StringParameter *message, 162 ProtobufCBuffer *buffer); 163 CoreML__Specification__StringParameter * 164 core_ml__specification__string_parameter__unpack 165 (ProtobufCAllocator *allocator, 166 size_t len, 167 const uint8_t *data); 168 void core_ml__specification__string_parameter__free_unpacked 169 (CoreML__Specification__StringParameter *message, 170 ProtobufCAllocator *allocator); 171 /* CoreML__Specification__BoolParameter methods */ 172 void core_ml__specification__bool_parameter__init 173 (CoreML__Specification__BoolParameter *message); 174 size_t core_ml__specification__bool_parameter__get_packed_size 175 (const CoreML__Specification__BoolParameter *message); 176 size_t core_ml__specification__bool_parameter__pack 177 (const CoreML__Specification__BoolParameter *message, 178 uint8_t *out); 179 size_t core_ml__specification__bool_parameter__pack_to_buffer 180 (const CoreML__Specification__BoolParameter *message, 181 ProtobufCBuffer *buffer); 182 CoreML__Specification__BoolParameter * 183 core_ml__specification__bool_parameter__unpack 184 (ProtobufCAllocator *allocator, 185 size_t len, 186 const uint8_t *data); 187 void core_ml__specification__bool_parameter__free_unpacked 188 (CoreML__Specification__BoolParameter *message, 189 ProtobufCAllocator *allocator); 190 /* --- per-message closures --- */ 191 192 typedef void (*CoreML__Specification__Int64Parameter_Closure) 193 (const CoreML__Specification__Int64Parameter *message, 194 void *closure_data); 195 typedef void (*CoreML__Specification__DoubleParameter_Closure) 196 (const CoreML__Specification__DoubleParameter *message, 197 void *closure_data); 198 typedef void (*CoreML__Specification__StringParameter_Closure) 199 (const CoreML__Specification__StringParameter *message, 200 void *closure_data); 201 typedef void (*CoreML__Specification__BoolParameter_Closure) 202 (const CoreML__Specification__BoolParameter *message, 203 void *closure_data); 204 205 /* --- services --- */ 206 207 208 /* --- descriptors --- */ 209 210 extern const ProtobufCMessageDescriptor core_ml__specification__int64_parameter__descriptor; 211 extern const ProtobufCMessageDescriptor core_ml__specification__double_parameter__descriptor; 212 extern const ProtobufCMessageDescriptor core_ml__specification__string_parameter__descriptor; 213 extern const ProtobufCMessageDescriptor core_ml__specification__bool_parameter__descriptor; 214 215 PROTOBUF_C__END_DECLS 216 217 218 #endif /* PROTOBUF_C_Parameters_2eproto__INCLUDED */ 219