123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: svga.proto
- // This CPP symbol can be defined to use imports that match up to the framework
- // imports needed when using CocoaPods.
- #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
- #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
- #endif
- #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
- #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
- #else
- #import "GPBProtocolBuffers_RuntimeSupport.h"
- #endif
- #import "Svga.pbobjc.h"
- // @@protoc_insertion_point(imports)
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wdeprecated-declarations"
- #pragma clang diagnostic ignored "-Wdirect-ivar-access"
- #pragma mark - SVGAProtoSvgaRoot
- @implementation SVGAProtoSvgaRoot
- // No extensions in the file and no imports, so no need to generate
- // +extensionRegistry.
- @end
- #pragma mark - SVGAProtoSvgaRoot_FileDescriptor
- static GPBFileDescriptor *SVGAProtoSvgaRoot_FileDescriptor(void) {
- // This is called by +initialize so there is no need to worry
- // about thread safety of the singleton.
- static GPBFileDescriptor *descriptor = NULL;
- if (!descriptor) {
- GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
- descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"com.opensource.svga"
- objcPrefix:@"SVGAProto"
- syntax:GPBFileSyntaxProto3];
- }
- return descriptor;
- }
- #pragma mark - SVGAProtoMovieParams
- @implementation SVGAProtoMovieParams
- @dynamic viewBoxWidth;
- @dynamic viewBoxHeight;
- @dynamic fps;
- @dynamic frames;
- typedef struct SVGAProtoMovieParams__storage_ {
- uint32_t _has_storage_[1];
- float viewBoxWidth;
- float viewBoxHeight;
- int32_t fps;
- int32_t frames;
- } SVGAProtoMovieParams__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "viewBoxWidth",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoMovieParams_FieldNumber_ViewBoxWidth,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoMovieParams__storage_, viewBoxWidth),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "viewBoxHeight",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoMovieParams_FieldNumber_ViewBoxHeight,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoMovieParams__storage_, viewBoxHeight),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "fps",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoMovieParams_FieldNumber_Fps,
- .hasIndex = 2,
- .offset = (uint32_t)offsetof(SVGAProtoMovieParams__storage_, fps),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeInt32,
- },
- {
- .name = "frames",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoMovieParams_FieldNumber_Frames,
- .hasIndex = 3,
- .offset = (uint32_t)offsetof(SVGAProtoMovieParams__storage_, frames),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeInt32,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoMovieParams class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoMovieParams__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- static const char *extraTextFormatInfo =
- "\002\001\014\000\002\r\000";
- [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
- #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma mark - SVGAProtoSpriteEntity
- @implementation SVGAProtoSpriteEntity
- @dynamic imageKey;
- @dynamic framesArray, framesArray_Count;
- @dynamic matteKey;
- typedef struct SVGAProtoSpriteEntity__storage_ {
- uint32_t _has_storage_[1];
- NSString *imageKey;
- NSMutableArray *framesArray;
- NSString *matteKey;
- } SVGAProtoSpriteEntity__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "imageKey",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoSpriteEntity_FieldNumber_ImageKey,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoSpriteEntity__storage_, imageKey),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeString,
- },
- {
- .name = "framesArray",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoFrameEntity),
- .number = SVGAProtoSpriteEntity_FieldNumber_FramesArray,
- .hasIndex = GPBNoHasBit,
- .offset = (uint32_t)offsetof(SVGAProtoSpriteEntity__storage_, framesArray),
- .flags = GPBFieldRepeated,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "matteKey",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoSpriteEntity_FieldNumber_MatteKey,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoSpriteEntity__storage_, matteKey),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeString,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoSpriteEntity class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoSpriteEntity__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- static const char *extraTextFormatInfo =
- "\002\001\010\000\003\010\000";
- [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
- #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma mark - SVGAProtoAudioEntity
- @implementation SVGAProtoAudioEntity
- @dynamic audioKey;
- @dynamic startFrame;
- @dynamic endFrame;
- @dynamic startTime;
- @dynamic totalTime;
- typedef struct SVGAProtoAudioEntity__storage_ {
- uint32_t _has_storage_[1];
- int32_t startFrame;
- int32_t endFrame;
- int32_t startTime;
- int32_t totalTime;
- NSString *audioKey;
- } SVGAProtoAudioEntity__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "audioKey",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoAudioEntity_FieldNumber_AudioKey,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoAudioEntity__storage_, audioKey),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeString,
- },
- {
- .name = "startFrame",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoAudioEntity_FieldNumber_StartFrame,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoAudioEntity__storage_, startFrame),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeInt32,
- },
- {
- .name = "endFrame",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoAudioEntity_FieldNumber_EndFrame,
- .hasIndex = 2,
- .offset = (uint32_t)offsetof(SVGAProtoAudioEntity__storage_, endFrame),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeInt32,
- },
- {
- .name = "startTime",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoAudioEntity_FieldNumber_StartTime,
- .hasIndex = 3,
- .offset = (uint32_t)offsetof(SVGAProtoAudioEntity__storage_, startTime),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeInt32,
- },
- {
- .name = "totalTime",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoAudioEntity_FieldNumber_TotalTime,
- .hasIndex = 4,
- .offset = (uint32_t)offsetof(SVGAProtoAudioEntity__storage_, totalTime),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeInt32,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoAudioEntity class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoAudioEntity__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- static const char *extraTextFormatInfo =
- "\005\001\010\000\002\n\000\003\010\000\004\t\000\005\t\000";
- [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
- #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma mark - SVGAProtoLayout
- @implementation SVGAProtoLayout
- @dynamic x;
- @dynamic y;
- @dynamic width;
- @dynamic height;
- typedef struct SVGAProtoLayout__storage_ {
- uint32_t _has_storage_[1];
- float x;
- float y;
- float width;
- float height;
- } SVGAProtoLayout__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "x",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoLayout_FieldNumber_X,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoLayout__storage_, x),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "y",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoLayout_FieldNumber_Y,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoLayout__storage_, y),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "width",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoLayout_FieldNumber_Width,
- .hasIndex = 2,
- .offset = (uint32_t)offsetof(SVGAProtoLayout__storage_, width),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "height",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoLayout_FieldNumber_Height,
- .hasIndex = 3,
- .offset = (uint32_t)offsetof(SVGAProtoLayout__storage_, height),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoLayout class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoLayout__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma mark - SVGAProtoTransform
- @implementation SVGAProtoTransform
- @dynamic a;
- @dynamic b;
- @dynamic c;
- @dynamic d;
- @dynamic tx;
- @dynamic ty;
- typedef struct SVGAProtoTransform__storage_ {
- uint32_t _has_storage_[1];
- float a;
- float b;
- float c;
- float d;
- float tx;
- float ty;
- } SVGAProtoTransform__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "a",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoTransform_FieldNumber_A,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, a),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "b",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoTransform_FieldNumber_B,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, b),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "c",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoTransform_FieldNumber_C,
- .hasIndex = 2,
- .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, c),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "d",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoTransform_FieldNumber_D,
- .hasIndex = 3,
- .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, d),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "tx",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoTransform_FieldNumber_Tx,
- .hasIndex = 4,
- .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, tx),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "ty",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoTransform_FieldNumber_Ty,
- .hasIndex = 5,
- .offset = (uint32_t)offsetof(SVGAProtoTransform__storage_, ty),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoTransform class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoTransform__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma mark - SVGAProtoShapeEntity
- @implementation SVGAProtoShapeEntity
- @dynamic argsOneOfCase;
- @dynamic type;
- @dynamic shape;
- @dynamic rect;
- @dynamic ellipse;
- @dynamic hasStyles, styles;
- @dynamic hasTransform, transform;
- typedef struct SVGAProtoShapeEntity__storage_ {
- uint32_t _has_storage_[2];
- SVGAProtoShapeEntity_ShapeType type;
- SVGAProtoShapeEntity_ShapeArgs *shape;
- SVGAProtoShapeEntity_RectArgs *rect;
- SVGAProtoShapeEntity_EllipseArgs *ellipse;
- SVGAProtoShapeEntity_ShapeStyle *styles;
- SVGAProtoTransform *transform;
- } SVGAProtoShapeEntity__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "type",
- .dataTypeSpecific.enumDescFunc = SVGAProtoShapeEntity_ShapeType_EnumDescriptor,
- .number = SVGAProtoShapeEntity_FieldNumber_Type,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, type),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor),
- .dataType = GPBDataTypeEnum,
- },
- {
- .name = "shape",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_ShapeArgs),
- .number = SVGAProtoShapeEntity_FieldNumber_Shape,
- .hasIndex = -1,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, shape),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "rect",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_RectArgs),
- .number = SVGAProtoShapeEntity_FieldNumber_Rect,
- .hasIndex = -1,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, rect),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "ellipse",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_EllipseArgs),
- .number = SVGAProtoShapeEntity_FieldNumber_Ellipse,
- .hasIndex = -1,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, ellipse),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "styles",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_ShapeStyle),
- .number = SVGAProtoShapeEntity_FieldNumber_Styles,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, styles),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "transform",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoTransform),
- .number = SVGAProtoShapeEntity_FieldNumber_Transform,
- .hasIndex = 2,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity__storage_, transform),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeMessage,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoShapeEntity__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- static const char *oneofs[] = {
- "args",
- };
- [localDescriptor setupOneofs:oneofs
- count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
- firstHasIndex:-1];
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- int32_t SVGAProtoShapeEntity_Type_RawValue(SVGAProtoShapeEntity *message) {
- GPBDescriptor *descriptor = [SVGAProtoShapeEntity descriptor];
- GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_FieldNumber_Type];
- return GPBGetMessageInt32Field(message, field);
- }
- void SetSVGAProtoShapeEntity_Type_RawValue(SVGAProtoShapeEntity *message, int32_t value) {
- GPBDescriptor *descriptor = [SVGAProtoShapeEntity descriptor];
- GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_FieldNumber_Type];
- GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax);
- }
- void SVGAProtoShapeEntity_ClearArgsOneOfCase(SVGAProtoShapeEntity *message) {
- GPBDescriptor *descriptor = [message descriptor];
- GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
- GPBMaybeClearOneof(message, oneof, -1, 0);
- }
- #pragma mark - Enum SVGAProtoShapeEntity_ShapeType
- GPBEnumDescriptor *SVGAProtoShapeEntity_ShapeType_EnumDescriptor(void) {
- static GPBEnumDescriptor *descriptor = NULL;
- if (!descriptor) {
- static const char *valueNames =
- "Shape\000Rect\000Ellipse\000Keep\000";
- static const int32_t values[] = {
- SVGAProtoShapeEntity_ShapeType_Shape,
- SVGAProtoShapeEntity_ShapeType_Rect,
- SVGAProtoShapeEntity_ShapeType_Ellipse,
- SVGAProtoShapeEntity_ShapeType_Keep,
- };
- GPBEnumDescriptor *worker =
- [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(SVGAProtoShapeEntity_ShapeType)
- valueNames:valueNames
- values:values
- count:(uint32_t)(sizeof(values) / sizeof(int32_t))
- enumVerifier:SVGAProtoShapeEntity_ShapeType_IsValidValue];
- if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) {
- [worker release];
- }
- }
- return descriptor;
- }
- BOOL SVGAProtoShapeEntity_ShapeType_IsValidValue(int32_t value__) {
- switch (value__) {
- case SVGAProtoShapeEntity_ShapeType_Shape:
- case SVGAProtoShapeEntity_ShapeType_Rect:
- case SVGAProtoShapeEntity_ShapeType_Ellipse:
- case SVGAProtoShapeEntity_ShapeType_Keep:
- return YES;
- default:
- return NO;
- }
- }
- #pragma mark - SVGAProtoShapeEntity_ShapeArgs
- @implementation SVGAProtoShapeEntity_ShapeArgs
- @dynamic d;
- typedef struct SVGAProtoShapeEntity_ShapeArgs__storage_ {
- uint32_t _has_storage_[1];
- NSString *d;
- } SVGAProtoShapeEntity_ShapeArgs__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "d",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_ShapeArgs_FieldNumber_D,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeArgs__storage_, d),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeString,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity_ShapeArgs class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoShapeEntity_ShapeArgs__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- [localDescriptor setupContainingMessageClassName:GPBStringifySymbol(SVGAProtoShapeEntity)];
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma mark - SVGAProtoShapeEntity_RectArgs
- @implementation SVGAProtoShapeEntity_RectArgs
- @dynamic x;
- @dynamic y;
- @dynamic width;
- @dynamic height;
- @dynamic cornerRadius;
- typedef struct SVGAProtoShapeEntity_RectArgs__storage_ {
- uint32_t _has_storage_[1];
- float x;
- float y;
- float width;
- float height;
- float cornerRadius;
- } SVGAProtoShapeEntity_RectArgs__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "x",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_RectArgs_FieldNumber_X,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_RectArgs__storage_, x),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "y",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_RectArgs_FieldNumber_Y,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_RectArgs__storage_, y),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "width",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_RectArgs_FieldNumber_Width,
- .hasIndex = 2,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_RectArgs__storage_, width),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "height",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_RectArgs_FieldNumber_Height,
- .hasIndex = 3,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_RectArgs__storage_, height),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "cornerRadius",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_RectArgs_FieldNumber_CornerRadius,
- .hasIndex = 4,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_RectArgs__storage_, cornerRadius),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeFloat,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity_RectArgs class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoShapeEntity_RectArgs__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- static const char *extraTextFormatInfo =
- "\001\005\014\000";
- [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
- #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- [localDescriptor setupContainingMessageClassName:GPBStringifySymbol(SVGAProtoShapeEntity)];
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma mark - SVGAProtoShapeEntity_EllipseArgs
- @implementation SVGAProtoShapeEntity_EllipseArgs
- @dynamic x;
- @dynamic y;
- @dynamic radiusX;
- @dynamic radiusY;
- typedef struct SVGAProtoShapeEntity_EllipseArgs__storage_ {
- uint32_t _has_storage_[1];
- float x;
- float y;
- float radiusX;
- float radiusY;
- } SVGAProtoShapeEntity_EllipseArgs__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "x",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_EllipseArgs_FieldNumber_X,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_EllipseArgs__storage_, x),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "y",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_EllipseArgs_FieldNumber_Y,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_EllipseArgs__storage_, y),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "radiusX",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_EllipseArgs_FieldNumber_RadiusX,
- .hasIndex = 2,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_EllipseArgs__storage_, radiusX),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "radiusY",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_EllipseArgs_FieldNumber_RadiusY,
- .hasIndex = 3,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_EllipseArgs__storage_, radiusY),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeFloat,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity_EllipseArgs class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoShapeEntity_EllipseArgs__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- static const char *extraTextFormatInfo =
- "\002\003\007\000\004\007\000";
- [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
- #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- [localDescriptor setupContainingMessageClassName:GPBStringifySymbol(SVGAProtoShapeEntity)];
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma mark - SVGAProtoShapeEntity_ShapeStyle
- @implementation SVGAProtoShapeEntity_ShapeStyle
- @dynamic hasFill, fill;
- @dynamic hasStroke, stroke;
- @dynamic strokeWidth;
- @dynamic lineCap;
- @dynamic lineJoin;
- @dynamic miterLimit;
- @dynamic lineDashI;
- @dynamic lineDashIi;
- @dynamic lineDashIii;
- typedef struct SVGAProtoShapeEntity_ShapeStyle__storage_ {
- uint32_t _has_storage_[1];
- float strokeWidth;
- SVGAProtoShapeEntity_ShapeStyle_LineCap lineCap;
- SVGAProtoShapeEntity_ShapeStyle_LineJoin lineJoin;
- float miterLimit;
- float lineDashI;
- float lineDashIi;
- float lineDashIii;
- SVGAProtoShapeEntity_ShapeStyle_RGBAColor *fill;
- SVGAProtoShapeEntity_ShapeStyle_RGBAColor *stroke;
- } SVGAProtoShapeEntity_ShapeStyle__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "fill",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_ShapeStyle_RGBAColor),
- .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_Fill,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, fill),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "stroke",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity_ShapeStyle_RGBAColor),
- .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_Stroke,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, stroke),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "strokeWidth",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_StrokeWidth,
- .hasIndex = 2,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, strokeWidth),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "lineCap",
- .dataTypeSpecific.enumDescFunc = SVGAProtoShapeEntity_ShapeStyle_LineCap_EnumDescriptor,
- .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineCap,
- .hasIndex = 3,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, lineCap),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldHasEnumDescriptor),
- .dataType = GPBDataTypeEnum,
- },
- {
- .name = "lineJoin",
- .dataTypeSpecific.enumDescFunc = SVGAProtoShapeEntity_ShapeStyle_LineJoin_EnumDescriptor,
- .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineJoin,
- .hasIndex = 4,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, lineJoin),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldHasEnumDescriptor),
- .dataType = GPBDataTypeEnum,
- },
- {
- .name = "miterLimit",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_MiterLimit,
- .hasIndex = 5,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, miterLimit),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "lineDashI",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineDashI,
- .hasIndex = 6,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, lineDashI),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "lineDashIi",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineDashIi,
- .hasIndex = 7,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, lineDashIi),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "lineDashIii",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineDashIii,
- .hasIndex = 8,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle__storage_, lineDashIii),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeFloat,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity_ShapeStyle class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoShapeEntity_ShapeStyle__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- static const char *extraTextFormatInfo =
- "\007\003\013\000\004\007\000\005\010\000\006\n\000\007\t\000\010\tA\000\t\tb\000";
- [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
- #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- [localDescriptor setupContainingMessageClassName:GPBStringifySymbol(SVGAProtoShapeEntity)];
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- int32_t SVGAProtoShapeEntity_ShapeStyle_LineCap_RawValue(SVGAProtoShapeEntity_ShapeStyle *message) {
- GPBDescriptor *descriptor = [SVGAProtoShapeEntity_ShapeStyle descriptor];
- GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineCap];
- return GPBGetMessageInt32Field(message, field);
- }
- void SetSVGAProtoShapeEntity_ShapeStyle_LineCap_RawValue(SVGAProtoShapeEntity_ShapeStyle *message, int32_t value) {
- GPBDescriptor *descriptor = [SVGAProtoShapeEntity_ShapeStyle descriptor];
- GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineCap];
- GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax);
- }
- int32_t SVGAProtoShapeEntity_ShapeStyle_LineJoin_RawValue(SVGAProtoShapeEntity_ShapeStyle *message) {
- GPBDescriptor *descriptor = [SVGAProtoShapeEntity_ShapeStyle descriptor];
- GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineJoin];
- return GPBGetMessageInt32Field(message, field);
- }
- void SetSVGAProtoShapeEntity_ShapeStyle_LineJoin_RawValue(SVGAProtoShapeEntity_ShapeStyle *message, int32_t value) {
- GPBDescriptor *descriptor = [SVGAProtoShapeEntity_ShapeStyle descriptor];
- GPBFieldDescriptor *field = [descriptor fieldWithNumber:SVGAProtoShapeEntity_ShapeStyle_FieldNumber_LineJoin];
- GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax);
- }
- #pragma mark - Enum SVGAProtoShapeEntity_ShapeStyle_LineCap
- GPBEnumDescriptor *SVGAProtoShapeEntity_ShapeStyle_LineCap_EnumDescriptor(void) {
- static GPBEnumDescriptor *descriptor = NULL;
- if (!descriptor) {
- static const char *valueNames =
- "LineCapButt\000LineCapRound\000LineCapSquare\000";
- static const int32_t values[] = {
- SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapButt,
- SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapRound,
- SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapSquare,
- };
- static const char *extraTextFormatInfo = "\003\000\007\344\000\001\007\345\000\002\007\346\000";
- GPBEnumDescriptor *worker =
- [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(SVGAProtoShapeEntity_ShapeStyle_LineCap)
- valueNames:valueNames
- values:values
- count:(uint32_t)(sizeof(values) / sizeof(int32_t))
- enumVerifier:SVGAProtoShapeEntity_ShapeStyle_LineCap_IsValidValue
- extraTextFormatInfo:extraTextFormatInfo];
- if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) {
- [worker release];
- }
- }
- return descriptor;
- }
- BOOL SVGAProtoShapeEntity_ShapeStyle_LineCap_IsValidValue(int32_t value__) {
- switch (value__) {
- case SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapButt:
- case SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapRound:
- case SVGAProtoShapeEntity_ShapeStyle_LineCap_LineCapSquare:
- return YES;
- default:
- return NO;
- }
- }
- #pragma mark - Enum SVGAProtoShapeEntity_ShapeStyle_LineJoin
- GPBEnumDescriptor *SVGAProtoShapeEntity_ShapeStyle_LineJoin_EnumDescriptor(void) {
- static GPBEnumDescriptor *descriptor = NULL;
- if (!descriptor) {
- static const char *valueNames =
- "LineJoinMiter\000LineJoinRound\000LineJoinBeve"
- "l\000";
- static const int32_t values[] = {
- SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinMiter,
- SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinRound,
- SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinBevel,
- };
- static const char *extraTextFormatInfo = "\003\000\010\345\000\001\010\345\000\002\010\345\000";
- GPBEnumDescriptor *worker =
- [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(SVGAProtoShapeEntity_ShapeStyle_LineJoin)
- valueNames:valueNames
- values:values
- count:(uint32_t)(sizeof(values) / sizeof(int32_t))
- enumVerifier:SVGAProtoShapeEntity_ShapeStyle_LineJoin_IsValidValue
- extraTextFormatInfo:extraTextFormatInfo];
- if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) {
- [worker release];
- }
- }
- return descriptor;
- }
- BOOL SVGAProtoShapeEntity_ShapeStyle_LineJoin_IsValidValue(int32_t value__) {
- switch (value__) {
- case SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinMiter:
- case SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinRound:
- case SVGAProtoShapeEntity_ShapeStyle_LineJoin_LineJoinBevel:
- return YES;
- default:
- return NO;
- }
- }
- #pragma mark - SVGAProtoShapeEntity_ShapeStyle_RGBAColor
- @implementation SVGAProtoShapeEntity_ShapeStyle_RGBAColor
- @dynamic r;
- @dynamic g;
- @dynamic b;
- @dynamic a;
- typedef struct SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_ {
- uint32_t _has_storage_[1];
- float r;
- float g;
- float b;
- float a;
- } SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "r",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_ShapeStyle_RGBAColor_FieldNumber_R,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_, r),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "g",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_ShapeStyle_RGBAColor_FieldNumber_G,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_, g),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "b",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_ShapeStyle_RGBAColor_FieldNumber_B,
- .hasIndex = 2,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_, b),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "a",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoShapeEntity_ShapeStyle_RGBAColor_FieldNumber_A,
- .hasIndex = 3,
- .offset = (uint32_t)offsetof(SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_, a),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoShapeEntity_ShapeStyle_RGBAColor class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoShapeEntity_ShapeStyle_RGBAColor__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- [localDescriptor setupContainingMessageClassName:GPBStringifySymbol(SVGAProtoShapeEntity_ShapeStyle)];
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma mark - SVGAProtoFrameEntity
- @implementation SVGAProtoFrameEntity
- @dynamic alpha;
- @dynamic hasLayout, layout;
- @dynamic hasTransform, transform;
- @dynamic clipPath;
- @dynamic shapesArray, shapesArray_Count;
- typedef struct SVGAProtoFrameEntity__storage_ {
- uint32_t _has_storage_[1];
- float alpha;
- SVGAProtoLayout *layout;
- SVGAProtoTransform *transform;
- NSString *clipPath;
- NSMutableArray *shapesArray;
- } SVGAProtoFrameEntity__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "alpha",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoFrameEntity_FieldNumber_Alpha,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoFrameEntity__storage_, alpha),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeFloat,
- },
- {
- .name = "layout",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoLayout),
- .number = SVGAProtoFrameEntity_FieldNumber_Layout,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoFrameEntity__storage_, layout),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "transform",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoTransform),
- .number = SVGAProtoFrameEntity_FieldNumber_Transform,
- .hasIndex = 2,
- .offset = (uint32_t)offsetof(SVGAProtoFrameEntity__storage_, transform),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "clipPath",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoFrameEntity_FieldNumber_ClipPath,
- .hasIndex = 3,
- .offset = (uint32_t)offsetof(SVGAProtoFrameEntity__storage_, clipPath),
- .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
- .dataType = GPBDataTypeString,
- },
- {
- .name = "shapesArray",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoShapeEntity),
- .number = SVGAProtoFrameEntity_FieldNumber_ShapesArray,
- .hasIndex = GPBNoHasBit,
- .offset = (uint32_t)offsetof(SVGAProtoFrameEntity__storage_, shapesArray),
- .flags = GPBFieldRepeated,
- .dataType = GPBDataTypeMessage,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoFrameEntity class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoFrameEntity__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- static const char *extraTextFormatInfo =
- "\001\004\010\000";
- [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
- #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma mark - SVGAProtoMovieEntity
- @implementation SVGAProtoMovieEntity
- @dynamic version;
- @dynamic hasParams, params;
- @dynamic images, images_Count;
- @dynamic spritesArray, spritesArray_Count;
- @dynamic audiosArray, audiosArray_Count;
- typedef struct SVGAProtoMovieEntity__storage_ {
- uint32_t _has_storage_[1];
- NSString *version;
- SVGAProtoMovieParams *params;
- NSMutableDictionary *images;
- NSMutableArray *spritesArray;
- NSMutableArray *audiosArray;
- } SVGAProtoMovieEntity__storage_;
- // This method is threadsafe because it is initially called
- // in +initialize for each subclass.
- + (GPBDescriptor *)descriptor {
- static GPBDescriptor *descriptor = nil;
- if (!descriptor) {
- static GPBMessageFieldDescription fields[] = {
- {
- .name = "version",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoMovieEntity_FieldNumber_Version,
- .hasIndex = 0,
- .offset = (uint32_t)offsetof(SVGAProtoMovieEntity__storage_, version),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeString,
- },
- {
- .name = "params",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoMovieParams),
- .number = SVGAProtoMovieEntity_FieldNumber_Params,
- .hasIndex = 1,
- .offset = (uint32_t)offsetof(SVGAProtoMovieEntity__storage_, params),
- .flags = GPBFieldOptional,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "images",
- .dataTypeSpecific.className = NULL,
- .number = SVGAProtoMovieEntity_FieldNumber_Images,
- .hasIndex = GPBNoHasBit,
- .offset = (uint32_t)offsetof(SVGAProtoMovieEntity__storage_, images),
- .flags = GPBFieldMapKeyString,
- .dataType = GPBDataTypeBytes,
- },
- {
- .name = "spritesArray",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoSpriteEntity),
- .number = SVGAProtoMovieEntity_FieldNumber_SpritesArray,
- .hasIndex = GPBNoHasBit,
- .offset = (uint32_t)offsetof(SVGAProtoMovieEntity__storage_, spritesArray),
- .flags = GPBFieldRepeated,
- .dataType = GPBDataTypeMessage,
- },
- {
- .name = "audiosArray",
- .dataTypeSpecific.className = GPBStringifySymbol(SVGAProtoAudioEntity),
- .number = SVGAProtoMovieEntity_FieldNumber_AudiosArray,
- .hasIndex = GPBNoHasBit,
- .offset = (uint32_t)offsetof(SVGAProtoMovieEntity__storage_, audiosArray),
- .flags = GPBFieldRepeated,
- .dataType = GPBDataTypeMessage,
- },
- };
- GPBDescriptor *localDescriptor =
- [GPBDescriptor allocDescriptorForClass:[SVGAProtoMovieEntity class]
- rootClass:[SVGAProtoSvgaRoot class]
- file:SVGAProtoSvgaRoot_FileDescriptor()
- fields:fields
- fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
- storageSize:sizeof(SVGAProtoMovieEntity__storage_)
- flags:GPBDescriptorInitializationFlag_None];
- NSAssert(descriptor == nil, @"Startup recursed!");
- descriptor = localDescriptor;
- }
- return descriptor;
- }
- @end
- #pragma clang diagnostic pop
- // @@protoc_insertion_point(global_scope)
|