// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: svga.proto // #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Com.Opensource.Svga { /// Holder for reflection information generated from svga.proto public static partial class SvgaReflection { #region Descriptor /// File descriptor for svga.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static SvgaReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CgpzdmdhLnByb3RvEhNjb20ub3BlbnNvdXJjZS5zdmdhIlcKC01vdmllUGFy", "YW1zEhQKDHZpZXdCb3hXaWR0aBgBIAEoAhIVCg12aWV3Qm94SGVpZ2h0GAIg", "ASgCEgsKA2ZwcxgDIAEoBRIOCgZmcmFtZXMYBCABKAUiUgoMU3ByaXRlRW50", "aXR5EhAKCGltYWdlS2V5GAEgASgJEjAKBmZyYW1lcxgCIAMoCzIgLmNvbS5v", "cGVuc291cmNlLnN2Z2EuRnJhbWVFbnRpdHkiawoLQXVkaW9FbnRpdHkSEAoI", "YXVkaW9LZXkYASABKAkSEgoKc3RhcnRGcmFtZRgCIAEoBRIQCghlbmRGcmFt", "ZRgDIAEoBRIRCglzdGFydFRpbWUYBCABKAUSEQoJdG90YWxUaW1lGAUgASgF", "Ij0KBkxheW91dBIJCgF4GAEgASgCEgkKAXkYAiABKAISDQoFd2lkdGgYAyAB", "KAISDgoGaGVpZ2h0GAQgASgCIk8KCVRyYW5zZm9ybRIJCgFhGAEgASgCEgkK", "AWIYAiABKAISCQoBYxgDIAEoAhIJCgFkGAQgASgCEgoKAnR4GAUgASgCEgoK", "AnR5GAYgASgCIroJCgtTaGFwZUVudGl0eRI4CgR0eXBlGAEgASgOMiouY29t", "Lm9wZW5zb3VyY2Uuc3ZnYS5TaGFwZUVudGl0eS5TaGFwZVR5cGUSOwoFc2hh", "cGUYAiABKAsyKi5jb20ub3BlbnNvdXJjZS5zdmdhLlNoYXBlRW50aXR5LlNo", "YXBlQXJnc0gAEjkKBHJlY3QYAyABKAsyKS5jb20ub3BlbnNvdXJjZS5zdmdh", "LlNoYXBlRW50aXR5LlJlY3RBcmdzSAASPwoHZWxsaXBzZRgEIAEoCzIsLmNv", "bS5vcGVuc291cmNlLnN2Z2EuU2hhcGVFbnRpdHkuRWxsaXBzZUFyZ3NIABI7", "CgZzdHlsZXMYCiABKAsyKy5jb20ub3BlbnNvdXJjZS5zdmdhLlNoYXBlRW50", "aXR5LlNoYXBlU3R5bGUSMQoJdHJhbnNmb3JtGAsgASgLMh4uY29tLm9wZW5z", "b3VyY2Uuc3ZnYS5UcmFuc2Zvcm0aFgoJU2hhcGVBcmdzEgkKAWQYASABKAka", "VQoIUmVjdEFyZ3MSCQoBeBgBIAEoAhIJCgF5GAIgASgCEg0KBXdpZHRoGAMg", "ASgCEg4KBmhlaWdodBgEIAEoAhIUCgxjb3JuZXJSYWRpdXMYBSABKAIaRQoL", "RWxsaXBzZUFyZ3MSCQoBeBgBIAEoAhIJCgF5GAIgASgCEg8KB3JhZGl1c1gY", "AyABKAISDwoHcmFkaXVzWRgEIAEoAhrQBAoKU2hhcGVTdHlsZRJDCgRmaWxs", "GAEgASgLMjUuY29tLm9wZW5zb3VyY2Uuc3ZnYS5TaGFwZUVudGl0eS5TaGFw", "ZVN0eWxlLlJHQkFDb2xvchJFCgZzdHJva2UYAiABKAsyNS5jb20ub3BlbnNv", "dXJjZS5zdmdhLlNoYXBlRW50aXR5LlNoYXBlU3R5bGUuUkdCQUNvbG9yEhMK", "C3N0cm9rZVdpZHRoGAMgASgCEkQKB2xpbmVDYXAYBCABKA4yMy5jb20ub3Bl", "bnNvdXJjZS5zdmdhLlNoYXBlRW50aXR5LlNoYXBlU3R5bGUuTGluZUNhcBJG", "CghsaW5lSm9pbhgFIAEoDjI0LmNvbS5vcGVuc291cmNlLnN2Z2EuU2hhcGVF", "bnRpdHkuU2hhcGVTdHlsZS5MaW5lSm9pbhISCgptaXRlckxpbWl0GAYgASgC", "EhEKCWxpbmVEYXNoSRgHIAEoAhISCgpsaW5lRGFzaElJGAggASgCEhMKC2xp", "bmVEYXNoSUlJGAkgASgCGjcKCVJHQkFDb2xvchIJCgFyGAEgASgCEgkKAWcY", "AiABKAISCQoBYhgDIAEoAhIJCgFhGAQgASgCIkIKB0xpbmVDYXASEAoMTGlu", "ZUNhcF9CVVRUEAASEQoNTGluZUNhcF9ST1VORBABEhIKDkxpbmVDYXBfU1FV", "QVJFEAIiRgoITGluZUpvaW4SEgoOTGluZUpvaW5fTUlURVIQABISCg5MaW5l", "Sm9pbl9ST1VORBABEhIKDkxpbmVKb2luX0JFVkVMEAIiNwoJU2hhcGVUeXBl", "EgkKBVNIQVBFEAASCAoEUkVDVBABEgsKB0VMTElQU0UQAhIICgRLRUVQEANC", "BgoEYXJncyLAAQoLRnJhbWVFbnRpdHkSDQoFYWxwaGEYASABKAISKwoGbGF5", "b3V0GAIgASgLMhsuY29tLm9wZW5zb3VyY2Uuc3ZnYS5MYXlvdXQSMQoJdHJh", "bnNmb3JtGAMgASgLMh4uY29tLm9wZW5zb3VyY2Uuc3ZnYS5UcmFuc2Zvcm0S", "EAoIY2xpcFBhdGgYBCABKAkSMAoGc2hhcGVzGAUgAygLMiAuY29tLm9wZW5z", "b3VyY2Uuc3ZnYS5TaGFwZUVudGl0eSKjAgoLTW92aWVFbnRpdHkSDwoHdmVy", "c2lvbhgBIAEoCRIwCgZwYXJhbXMYAiABKAsyIC5jb20ub3BlbnNvdXJjZS5z", "dmdhLk1vdmllUGFyYW1zEjwKBmltYWdlcxgDIAMoCzIsLmNvbS5vcGVuc291", "cmNlLnN2Z2EuTW92aWVFbnRpdHkuSW1hZ2VzRW50cnkSMgoHc3ByaXRlcxgE", "IAMoCzIhLmNvbS5vcGVuc291cmNlLnN2Z2EuU3ByaXRlRW50aXR5EjAKBmF1", "ZGlvcxgFIAMoCzIgLmNvbS5vcGVuc291cmNlLnN2Z2EuQXVkaW9FbnRpdHka", "LQoLSW1hZ2VzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgMOgI4", "AUItCh9jb20ub3BlbnNvdXJjZS5zdmdhcGxheWVyLnByb3RvogIJU1ZHQVBy", "b3RvYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.MovieParams), global::Com.Opensource.Svga.MovieParams.Parser, new[]{ "ViewBoxWidth", "ViewBoxHeight", "Fps", "Frames" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.SpriteEntity), global::Com.Opensource.Svga.SpriteEntity.Parser, new[]{ "ImageKey", "Frames" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.AudioEntity), global::Com.Opensource.Svga.AudioEntity.Parser, new[]{ "AudioKey", "StartFrame", "EndFrame", "StartTime", "TotalTime" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.Layout), global::Com.Opensource.Svga.Layout.Parser, new[]{ "X", "Y", "Width", "Height" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.Transform), global::Com.Opensource.Svga.Transform.Parser, new[]{ "A", "B", "C", "D", "Tx", "Ty" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.ShapeEntity), global::Com.Opensource.Svga.ShapeEntity.Parser, new[]{ "Type", "Shape", "Rect", "Ellipse", "Styles", "Transform" }, new[]{ "Args" }, new[]{ typeof(global::Com.Opensource.Svga.ShapeEntity.Types.ShapeType) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.ShapeEntity.Types.ShapeArgs), global::Com.Opensource.Svga.ShapeEntity.Types.ShapeArgs.Parser, new[]{ "D" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.ShapeEntity.Types.RectArgs), global::Com.Opensource.Svga.ShapeEntity.Types.RectArgs.Parser, new[]{ "X", "Y", "Width", "Height", "CornerRadius" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.ShapeEntity.Types.EllipseArgs), global::Com.Opensource.Svga.ShapeEntity.Types.EllipseArgs.Parser, new[]{ "X", "Y", "RadiusX", "RadiusY" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle), global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Parser, new[]{ "Fill", "Stroke", "StrokeWidth", "LineCap", "LineJoin", "MiterLimit", "LineDashI", "LineDashII", "LineDashIII" }, null, new[]{ typeof(global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.LineCap), typeof(global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.LineJoin) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.RGBAColor), global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.RGBAColor.Parser, new[]{ "R", "G", "B", "A" }, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.FrameEntity), global::Com.Opensource.Svga.FrameEntity.Parser, new[]{ "Alpha", "Layout", "Transform", "ClipPath", "Shapes" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Com.Opensource.Svga.MovieEntity), global::Com.Opensource.Svga.MovieEntity.Parser, new[]{ "Version", "Params", "Images", "Sprites", "Audios" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) })); } #endregion } #region Messages public sealed partial class MovieParams : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MovieParams()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.SvgaReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MovieParams() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MovieParams(MovieParams other) : this() { viewBoxWidth_ = other.viewBoxWidth_; viewBoxHeight_ = other.viewBoxHeight_; fps_ = other.fps_; frames_ = other.frames_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MovieParams Clone() { return new MovieParams(this); } /// Field number for the "viewBoxWidth" field. public const int ViewBoxWidthFieldNumber = 1; private float viewBoxWidth_; /// /// Canvas width /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float ViewBoxWidth { get { return viewBoxWidth_; } set { viewBoxWidth_ = value; } } /// Field number for the "viewBoxHeight" field. public const int ViewBoxHeightFieldNumber = 2; private float viewBoxHeight_; /// /// Canvas height /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float ViewBoxHeight { get { return viewBoxHeight_; } set { viewBoxHeight_ = value; } } /// Field number for the "fps" field. public const int FpsFieldNumber = 3; private int fps_; /// /// Animation frames per second, valid values are any of [1, 2, 3, 5, 6, 10, 12, 15, 20, 30, 60]. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Fps { get { return fps_; } set { fps_ = value; } } /// Field number for the "frames" field. public const int FramesFieldNumber = 4; private int frames_; /// /// Total animation frames /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Frames { get { return frames_; } set { frames_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as MovieParams); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(MovieParams other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ViewBoxWidth, other.ViewBoxWidth)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ViewBoxHeight, other.ViewBoxHeight)) return false; if (Fps != other.Fps) return false; if (Frames != other.Frames) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (ViewBoxWidth != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ViewBoxWidth); if (ViewBoxHeight != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ViewBoxHeight); if (Fps != 0) hash ^= Fps.GetHashCode(); if (Frames != 0) hash ^= Frames.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (ViewBoxWidth != 0F) { output.WriteRawTag(13); output.WriteFloat(ViewBoxWidth); } if (ViewBoxHeight != 0F) { output.WriteRawTag(21); output.WriteFloat(ViewBoxHeight); } if (Fps != 0) { output.WriteRawTag(24); output.WriteInt32(Fps); } if (Frames != 0) { output.WriteRawTag(32); output.WriteInt32(Frames); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (ViewBoxWidth != 0F) { size += 1 + 4; } if (ViewBoxHeight != 0F) { size += 1 + 4; } if (Fps != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Fps); } if (Frames != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Frames); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(MovieParams other) { if (other == null) { return; } if (other.ViewBoxWidth != 0F) { ViewBoxWidth = other.ViewBoxWidth; } if (other.ViewBoxHeight != 0F) { ViewBoxHeight = other.ViewBoxHeight; } if (other.Fps != 0) { Fps = other.Fps; } if (other.Frames != 0) { Frames = other.Frames; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { ViewBoxWidth = input.ReadFloat(); break; } case 21: { ViewBoxHeight = input.ReadFloat(); break; } case 24: { Fps = input.ReadInt32(); break; } case 32: { Frames = input.ReadInt32(); break; } } } } } public sealed partial class SpriteEntity : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpriteEntity()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.SvgaReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SpriteEntity() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SpriteEntity(SpriteEntity other) : this() { imageKey_ = other.imageKey_; frames_ = other.frames_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SpriteEntity Clone() { return new SpriteEntity(this); } /// Field number for the "imageKey" field. public const int ImageKeyFieldNumber = 1; private string imageKey_ = ""; /// /// The bitmap key name corresponding to the component. If imageKey contains the .vector suffix, this sprite is a vector layer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ImageKey { get { return imageKey_; } set { imageKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "frames" field. public const int FramesFieldNumber = 2; private static readonly pb::FieldCodec _repeated_frames_codec = pb::FieldCodec.ForMessage(18, global::Com.Opensource.Svga.FrameEntity.Parser); private readonly pbc::RepeatedField frames_ = new pbc::RepeatedField(); /// /// Frame list /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Frames { get { return frames_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SpriteEntity); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SpriteEntity other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ImageKey != other.ImageKey) return false; if (!frames_.Equals(other.frames_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (ImageKey.Length != 0) hash ^= ImageKey.GetHashCode(); hash ^= frames_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (ImageKey.Length != 0) { output.WriteRawTag(10); output.WriteString(ImageKey); } frames_.WriteTo(output, _repeated_frames_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (ImageKey.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageKey); } size += frames_.CalculateSize(_repeated_frames_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SpriteEntity other) { if (other == null) { return; } if (other.ImageKey.Length != 0) { ImageKey = other.ImageKey; } frames_.Add(other.frames_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ImageKey = input.ReadString(); break; } case 18: { frames_.AddEntriesFrom(input, _repeated_frames_codec); break; } } } } } public sealed partial class AudioEntity : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioEntity()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.SvgaReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public AudioEntity() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public AudioEntity(AudioEntity other) : this() { audioKey_ = other.audioKey_; startFrame_ = other.startFrame_; endFrame_ = other.endFrame_; startTime_ = other.startTime_; totalTime_ = other.totalTime_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public AudioEntity Clone() { return new AudioEntity(this); } /// Field number for the "audioKey" field. public const int AudioKeyFieldNumber = 1; private string audioKey_ = ""; /// /// Audio file name /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string AudioKey { get { return audioKey_; } set { audioKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "startFrame" field. public const int StartFrameFieldNumber = 2; private int startFrame_; /// /// Audio playback start frame /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int StartFrame { get { return startFrame_; } set { startFrame_ = value; } } /// Field number for the "endFrame" field. public const int EndFrameFieldNumber = 3; private int endFrame_; /// /// Audio playback end frame /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int EndFrame { get { return endFrame_; } set { endFrame_ = value; } } /// Field number for the "startTime" field. public const int StartTimeFieldNumber = 4; private int startTime_; /// /// Audio playback start time (relative to audio length) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int StartTime { get { return startTime_; } set { startTime_ = value; } } /// Field number for the "totalTime" field. public const int TotalTimeFieldNumber = 5; private int totalTime_; /// /// Total audio duration /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int TotalTime { get { return totalTime_; } set { totalTime_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as AudioEntity); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(AudioEntity other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (AudioKey != other.AudioKey) return false; if (StartFrame != other.StartFrame) return false; if (EndFrame != other.EndFrame) return false; if (StartTime != other.StartTime) return false; if (TotalTime != other.TotalTime) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (AudioKey.Length != 0) hash ^= AudioKey.GetHashCode(); if (StartFrame != 0) hash ^= StartFrame.GetHashCode(); if (EndFrame != 0) hash ^= EndFrame.GetHashCode(); if (StartTime != 0) hash ^= StartTime.GetHashCode(); if (TotalTime != 0) hash ^= TotalTime.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (AudioKey.Length != 0) { output.WriteRawTag(10); output.WriteString(AudioKey); } if (StartFrame != 0) { output.WriteRawTag(16); output.WriteInt32(StartFrame); } if (EndFrame != 0) { output.WriteRawTag(24); output.WriteInt32(EndFrame); } if (StartTime != 0) { output.WriteRawTag(32); output.WriteInt32(StartTime); } if (TotalTime != 0) { output.WriteRawTag(40); output.WriteInt32(TotalTime); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (AudioKey.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioKey); } if (StartFrame != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartFrame); } if (EndFrame != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndFrame); } if (StartTime != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartTime); } if (TotalTime != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(TotalTime); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(AudioEntity other) { if (other == null) { return; } if (other.AudioKey.Length != 0) { AudioKey = other.AudioKey; } if (other.StartFrame != 0) { StartFrame = other.StartFrame; } if (other.EndFrame != 0) { EndFrame = other.EndFrame; } if (other.StartTime != 0) { StartTime = other.StartTime; } if (other.TotalTime != 0) { TotalTime = other.TotalTime; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { AudioKey = input.ReadString(); break; } case 16: { StartFrame = input.ReadInt32(); break; } case 24: { EndFrame = input.ReadInt32(); break; } case 32: { StartTime = input.ReadInt32(); break; } case 40: { TotalTime = input.ReadInt32(); break; } } } } } public sealed partial class Layout : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Layout()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.SvgaReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Layout() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Layout(Layout other) : this() { x_ = other.x_; y_ = other.y_; width_ = other.width_; height_ = other.height_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Layout Clone() { return new Layout(this); } /// Field number for the "x" field. public const int XFieldNumber = 1; private float x_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float X { get { return x_; } set { x_ = value; } } /// Field number for the "y" field. public const int YFieldNumber = 2; private float y_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Y { get { return y_; } set { y_ = value; } } /// Field number for the "width" field. public const int WidthFieldNumber = 3; private float width_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Width { get { return width_; } set { width_ = value; } } /// Field number for the "height" field. public const int HeightFieldNumber = 4; private float height_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Height { get { return height_; } set { height_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Layout); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Layout other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); if (Width != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width); if (Height != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (X != 0F) { output.WriteRawTag(13); output.WriteFloat(X); } if (Y != 0F) { output.WriteRawTag(21); output.WriteFloat(Y); } if (Width != 0F) { output.WriteRawTag(29); output.WriteFloat(Width); } if (Height != 0F) { output.WriteRawTag(37); output.WriteFloat(Height); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (X != 0F) { size += 1 + 4; } if (Y != 0F) { size += 1 + 4; } if (Width != 0F) { size += 1 + 4; } if (Height != 0F) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Layout other) { if (other == null) { return; } if (other.X != 0F) { X = other.X; } if (other.Y != 0F) { Y = other.Y; } if (other.Width != 0F) { Width = other.Width; } if (other.Height != 0F) { Height = other.Height; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { X = input.ReadFloat(); break; } case 21: { Y = input.ReadFloat(); break; } case 29: { Width = input.ReadFloat(); break; } case 37: { Height = input.ReadFloat(); break; } } } } } public sealed partial class Transform : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Transform()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.SvgaReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Transform() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Transform(Transform other) : this() { a_ = other.a_; b_ = other.b_; c_ = other.c_; d_ = other.d_; tx_ = other.tx_; ty_ = other.ty_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Transform Clone() { return new Transform(this); } /// Field number for the "a" field. public const int AFieldNumber = 1; private float a_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float A { get { return a_; } set { a_ = value; } } /// Field number for the "b" field. public const int BFieldNumber = 2; private float b_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float B { get { return b_; } set { b_ = value; } } /// Field number for the "c" field. public const int CFieldNumber = 3; private float c_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float C { get { return c_; } set { c_ = value; } } /// Field number for the "d" field. public const int DFieldNumber = 4; private float d_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float D { get { return d_; } set { d_ = value; } } /// Field number for the "tx" field. public const int TxFieldNumber = 5; private float tx_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Tx { get { return tx_; } set { tx_ = value; } } /// Field number for the "ty" field. public const int TyFieldNumber = 6; private float ty_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Ty { get { return ty_; } set { ty_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Transform); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Transform other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(C, other.C)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(D, other.D)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Tx, other.Tx)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Ty, other.Ty)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (A != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); if (B != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); if (C != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(C); if (D != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(D); if (Tx != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Tx); if (Ty != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Ty); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (A != 0F) { output.WriteRawTag(13); output.WriteFloat(A); } if (B != 0F) { output.WriteRawTag(21); output.WriteFloat(B); } if (C != 0F) { output.WriteRawTag(29); output.WriteFloat(C); } if (D != 0F) { output.WriteRawTag(37); output.WriteFloat(D); } if (Tx != 0F) { output.WriteRawTag(45); output.WriteFloat(Tx); } if (Ty != 0F) { output.WriteRawTag(53); output.WriteFloat(Ty); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (A != 0F) { size += 1 + 4; } if (B != 0F) { size += 1 + 4; } if (C != 0F) { size += 1 + 4; } if (D != 0F) { size += 1 + 4; } if (Tx != 0F) { size += 1 + 4; } if (Ty != 0F) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Transform other) { if (other == null) { return; } if (other.A != 0F) { A = other.A; } if (other.B != 0F) { B = other.B; } if (other.C != 0F) { C = other.C; } if (other.D != 0F) { D = other.D; } if (other.Tx != 0F) { Tx = other.Tx; } if (other.Ty != 0F) { Ty = other.Ty; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { A = input.ReadFloat(); break; } case 21: { B = input.ReadFloat(); break; } case 29: { C = input.ReadFloat(); break; } case 37: { D = input.ReadFloat(); break; } case 45: { Tx = input.ReadFloat(); break; } case 53: { Ty = input.ReadFloat(); break; } } } } } public sealed partial class ShapeEntity : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShapeEntity()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.SvgaReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ShapeEntity() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ShapeEntity(ShapeEntity other) : this() { type_ = other.type_; styles_ = other.styles_ != null ? other.styles_.Clone() : null; transform_ = other.transform_ != null ? other.transform_.Clone() : null; switch (other.ArgsCase) { case ArgsOneofCase.Shape: Shape = other.Shape.Clone(); break; case ArgsOneofCase.Rect: Rect = other.Rect.Clone(); break; case ArgsOneofCase.Ellipse: Ellipse = other.Ellipse.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ShapeEntity Clone() { return new ShapeEntity(this); } /// Field number for the "type" field. public const int TypeFieldNumber = 1; private global::Com.Opensource.Svga.ShapeEntity.Types.ShapeType type_ = 0; /// /// Vector type /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.ShapeEntity.Types.ShapeType Type { get { return type_; } set { type_ = value; } } /// Field number for the "shape" field. public const int ShapeFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.ShapeEntity.Types.ShapeArgs Shape { get { return argsCase_ == ArgsOneofCase.Shape ? (global::Com.Opensource.Svga.ShapeEntity.Types.ShapeArgs)args_ : null; } set { args_ = value; argsCase_ = value == null ? ArgsOneofCase.None : ArgsOneofCase.Shape; } } /// Field number for the "rect" field. public const int RectFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.ShapeEntity.Types.RectArgs Rect { get { return argsCase_ == ArgsOneofCase.Rect ? (global::Com.Opensource.Svga.ShapeEntity.Types.RectArgs)args_ : null; } set { args_ = value; argsCase_ = value == null ? ArgsOneofCase.None : ArgsOneofCase.Rect; } } /// Field number for the "ellipse" field. public const int EllipseFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.ShapeEntity.Types.EllipseArgs Ellipse { get { return argsCase_ == ArgsOneofCase.Ellipse ? (global::Com.Opensource.Svga.ShapeEntity.Types.EllipseArgs)args_ : null; } set { args_ = value; argsCase_ = value == null ? ArgsOneofCase.None : ArgsOneofCase.Ellipse; } } /// Field number for the "styles" field. public const int StylesFieldNumber = 10; private global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle styles_; /// /// Rendering parameters /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle Styles { get { return styles_; } set { styles_ = value; } } /// Field number for the "transform" field. public const int TransformFieldNumber = 11; private global::Com.Opensource.Svga.Transform transform_; /// /// Vector layer 2D transformation matrix /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.Transform Transform { get { return transform_; } set { transform_ = value; } } private object args_; /// Enum of possible cases for the "args" oneof. public enum ArgsOneofCase { None = 0, Shape = 2, Rect = 3, Ellipse = 4, } private ArgsOneofCase argsCase_ = ArgsOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ArgsOneofCase ArgsCase { get { return argsCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearArgs() { argsCase_ = ArgsOneofCase.None; args_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ShapeEntity); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ShapeEntity other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Type != other.Type) return false; if (!object.Equals(Shape, other.Shape)) return false; if (!object.Equals(Rect, other.Rect)) return false; if (!object.Equals(Ellipse, other.Ellipse)) return false; if (!object.Equals(Styles, other.Styles)) return false; if (!object.Equals(Transform, other.Transform)) return false; if (ArgsCase != other.ArgsCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Type != 0) hash ^= Type.GetHashCode(); if (argsCase_ == ArgsOneofCase.Shape) hash ^= Shape.GetHashCode(); if (argsCase_ == ArgsOneofCase.Rect) hash ^= Rect.GetHashCode(); if (argsCase_ == ArgsOneofCase.Ellipse) hash ^= Ellipse.GetHashCode(); if (styles_ != null) hash ^= Styles.GetHashCode(); if (transform_ != null) hash ^= Transform.GetHashCode(); hash ^= (int)argsCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (Type != 0) { output.WriteRawTag(8); output.WriteEnum((int)Type); } if (argsCase_ == ArgsOneofCase.Shape) { output.WriteRawTag(18); output.WriteMessage(Shape); } if (argsCase_ == ArgsOneofCase.Rect) { output.WriteRawTag(26); output.WriteMessage(Rect); } if (argsCase_ == ArgsOneofCase.Ellipse) { output.WriteRawTag(34); output.WriteMessage(Ellipse); } if (styles_ != null) { output.WriteRawTag(82); output.WriteMessage(Styles); } if (transform_ != null) { output.WriteRawTag(90); output.WriteMessage(Transform); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Type != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)Type); } if (argsCase_ == ArgsOneofCase.Shape) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shape); } if (argsCase_ == ArgsOneofCase.Rect) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rect); } if (argsCase_ == ArgsOneofCase.Ellipse) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ellipse); } if (styles_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Styles); } if (transform_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Transform); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ShapeEntity other) { if (other == null) { return; } if (other.Type != 0) { Type = other.Type; } if (other.styles_ != null) { if (styles_ == null) { styles_ = new global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle(); } Styles.MergeFrom(other.Styles); } if (other.transform_ != null) { if (transform_ == null) { transform_ = new global::Com.Opensource.Svga.Transform(); } Transform.MergeFrom(other.Transform); } switch (other.ArgsCase) { case ArgsOneofCase.Shape: if (Shape == null) { Shape = new global::Com.Opensource.Svga.ShapeEntity.Types.ShapeArgs(); } Shape.MergeFrom(other.Shape); break; case ArgsOneofCase.Rect: if (Rect == null) { Rect = new global::Com.Opensource.Svga.ShapeEntity.Types.RectArgs(); } Rect.MergeFrom(other.Rect); break; case ArgsOneofCase.Ellipse: if (Ellipse == null) { Ellipse = new global::Com.Opensource.Svga.ShapeEntity.Types.EllipseArgs(); } Ellipse.MergeFrom(other.Ellipse); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { type_ = (global::Com.Opensource.Svga.ShapeEntity.Types.ShapeType)input.ReadEnum(); break; } case 18: { global::Com.Opensource.Svga.ShapeEntity.Types.ShapeArgs subBuilder = new global::Com.Opensource.Svga.ShapeEntity.Types.ShapeArgs(); if (argsCase_ == ArgsOneofCase.Shape) { subBuilder.MergeFrom(Shape); } input.ReadMessage(subBuilder); Shape = subBuilder; break; } case 26: { global::Com.Opensource.Svga.ShapeEntity.Types.RectArgs subBuilder = new global::Com.Opensource.Svga.ShapeEntity.Types.RectArgs(); if (argsCase_ == ArgsOneofCase.Rect) { subBuilder.MergeFrom(Rect); } input.ReadMessage(subBuilder); Rect = subBuilder; break; } case 34: { global::Com.Opensource.Svga.ShapeEntity.Types.EllipseArgs subBuilder = new global::Com.Opensource.Svga.ShapeEntity.Types.EllipseArgs(); if (argsCase_ == ArgsOneofCase.Ellipse) { subBuilder.MergeFrom(Ellipse); } input.ReadMessage(subBuilder); Ellipse = subBuilder; break; } case 82: { if (styles_ == null) { styles_ = new global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle(); } input.ReadMessage(styles_); break; } case 90: { if (transform_ == null) { transform_ = new global::Com.Opensource.Svga.Transform(); } input.ReadMessage(transform_); break; } } } } #region Nested types /// Container for nested types declared in the ShapeEntity message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { public enum ShapeType { /// /// Path /// [pbr::OriginalName("SHAPE")] Shape = 0, /// /// Rectangle /// [pbr::OriginalName("RECT")] Rect = 1, /// /// Ellipse /// [pbr::OriginalName("ELLIPSE")] Ellipse = 2, /// /// Keep same as previous frame /// [pbr::OriginalName("KEEP")] Keep = 3, } public sealed partial class ShapeArgs : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShapeArgs()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.ShapeEntity.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ShapeArgs() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ShapeArgs(ShapeArgs other) : this() { d_ = other.d_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ShapeArgs Clone() { return new ShapeArgs(this); } /// Field number for the "d" field. public const int DFieldNumber = 1; private string d_ = ""; /// /// SVG path /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string D { get { return d_; } set { d_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ShapeArgs); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ShapeArgs other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (D != other.D) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (D.Length != 0) hash ^= D.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (D.Length != 0) { output.WriteRawTag(10); output.WriteString(D); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (D.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(D); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ShapeArgs other) { if (other == null) { return; } if (other.D.Length != 0) { D = other.D; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { D = input.ReadString(); break; } } } } } public sealed partial class RectArgs : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RectArgs()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.ShapeEntity.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RectArgs() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RectArgs(RectArgs other) : this() { x_ = other.x_; y_ = other.y_; width_ = other.width_; height_ = other.height_; cornerRadius_ = other.cornerRadius_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RectArgs Clone() { return new RectArgs(this); } /// Field number for the "x" field. public const int XFieldNumber = 1; private float x_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float X { get { return x_; } set { x_ = value; } } /// Field number for the "y" field. public const int YFieldNumber = 2; private float y_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Y { get { return y_; } set { y_ = value; } } /// Field number for the "width" field. public const int WidthFieldNumber = 3; private float width_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Width { get { return width_; } set { width_ = value; } } /// Field number for the "height" field. public const int HeightFieldNumber = 4; private float height_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Height { get { return height_; } set { height_ = value; } } /// Field number for the "cornerRadius" field. public const int CornerRadiusFieldNumber = 5; private float cornerRadius_; /// /// Corner radius /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float CornerRadius { get { return cornerRadius_; } set { cornerRadius_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as RectArgs); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(RectArgs other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CornerRadius, other.CornerRadius)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); if (Width != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width); if (Height != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height); if (CornerRadius != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CornerRadius); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (X != 0F) { output.WriteRawTag(13); output.WriteFloat(X); } if (Y != 0F) { output.WriteRawTag(21); output.WriteFloat(Y); } if (Width != 0F) { output.WriteRawTag(29); output.WriteFloat(Width); } if (Height != 0F) { output.WriteRawTag(37); output.WriteFloat(Height); } if (CornerRadius != 0F) { output.WriteRawTag(45); output.WriteFloat(CornerRadius); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (X != 0F) { size += 1 + 4; } if (Y != 0F) { size += 1 + 4; } if (Width != 0F) { size += 1 + 4; } if (Height != 0F) { size += 1 + 4; } if (CornerRadius != 0F) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(RectArgs other) { if (other == null) { return; } if (other.X != 0F) { X = other.X; } if (other.Y != 0F) { Y = other.Y; } if (other.Width != 0F) { Width = other.Width; } if (other.Height != 0F) { Height = other.Height; } if (other.CornerRadius != 0F) { CornerRadius = other.CornerRadius; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { X = input.ReadFloat(); break; } case 21: { Y = input.ReadFloat(); break; } case 29: { Width = input.ReadFloat(); break; } case 37: { Height = input.ReadFloat(); break; } case 45: { CornerRadius = input.ReadFloat(); break; } } } } } public sealed partial class EllipseArgs : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EllipseArgs()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.ShapeEntity.Descriptor.NestedTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public EllipseArgs() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public EllipseArgs(EllipseArgs other) : this() { x_ = other.x_; y_ = other.y_; radiusX_ = other.radiusX_; radiusY_ = other.radiusY_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public EllipseArgs Clone() { return new EllipseArgs(this); } /// Field number for the "x" field. public const int XFieldNumber = 1; private float x_; /// /// Circle center point X /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float X { get { return x_; } set { x_ = value; } } /// Field number for the "y" field. public const int YFieldNumber = 2; private float y_; /// /// Circle center point Y /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Y { get { return y_; } set { y_ = value; } } /// Field number for the "radiusX" field. public const int RadiusXFieldNumber = 3; private float radiusX_; /// /// Horizontal radius /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float RadiusX { get { return radiusX_; } set { radiusX_ = value; } } /// Field number for the "radiusY" field. public const int RadiusYFieldNumber = 4; private float radiusY_; /// /// Vertical radius /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float RadiusY { get { return radiusY_; } set { radiusY_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as EllipseArgs); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(EllipseArgs other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RadiusX, other.RadiusX)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RadiusY, other.RadiusY)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); if (RadiusX != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RadiusX); if (RadiusY != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RadiusY); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (X != 0F) { output.WriteRawTag(13); output.WriteFloat(X); } if (Y != 0F) { output.WriteRawTag(21); output.WriteFloat(Y); } if (RadiusX != 0F) { output.WriteRawTag(29); output.WriteFloat(RadiusX); } if (RadiusY != 0F) { output.WriteRawTag(37); output.WriteFloat(RadiusY); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (X != 0F) { size += 1 + 4; } if (Y != 0F) { size += 1 + 4; } if (RadiusX != 0F) { size += 1 + 4; } if (RadiusY != 0F) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(EllipseArgs other) { if (other == null) { return; } if (other.X != 0F) { X = other.X; } if (other.Y != 0F) { Y = other.Y; } if (other.RadiusX != 0F) { RadiusX = other.RadiusX; } if (other.RadiusY != 0F) { RadiusY = other.RadiusY; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { X = input.ReadFloat(); break; } case 21: { Y = input.ReadFloat(); break; } case 29: { RadiusX = input.ReadFloat(); break; } case 37: { RadiusY = input.ReadFloat(); break; } } } } } public sealed partial class ShapeStyle : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShapeStyle()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.ShapeEntity.Descriptor.NestedTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ShapeStyle() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ShapeStyle(ShapeStyle other) : this() { fill_ = other.fill_ != null ? other.fill_.Clone() : null; stroke_ = other.stroke_ != null ? other.stroke_.Clone() : null; strokeWidth_ = other.strokeWidth_; lineCap_ = other.lineCap_; lineJoin_ = other.lineJoin_; miterLimit_ = other.miterLimit_; lineDashI_ = other.lineDashI_; lineDashII_ = other.lineDashII_; lineDashIII_ = other.lineDashIII_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ShapeStyle Clone() { return new ShapeStyle(this); } /// Field number for the "fill" field. public const int FillFieldNumber = 1; private global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.RGBAColor fill_; /// /// Fill color /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.RGBAColor Fill { get { return fill_; } set { fill_ = value; } } /// Field number for the "stroke" field. public const int StrokeFieldNumber = 2; private global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.RGBAColor stroke_; /// /// Stroke color /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.RGBAColor Stroke { get { return stroke_; } set { stroke_ = value; } } /// Field number for the "strokeWidth" field. public const int StrokeWidthFieldNumber = 3; private float strokeWidth_; /// /// Stroke width /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float StrokeWidth { get { return strokeWidth_; } set { strokeWidth_ = value; } } /// Field number for the "lineCap" field. public const int LineCapFieldNumber = 4; private global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.LineCap lineCap_ = 0; /// /// Line cap style /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.LineCap LineCap { get { return lineCap_; } set { lineCap_ = value; } } /// Field number for the "lineJoin" field. public const int LineJoinFieldNumber = 5; private global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.LineJoin lineJoin_ = 0; /// /// Line join style /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.LineJoin LineJoin { get { return lineJoin_; } set { lineJoin_ = value; } } /// Field number for the "miterLimit" field. public const int MiterLimitFieldNumber = 6; private float miterLimit_; /// /// Miter limit /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float MiterLimit { get { return miterLimit_; } set { miterLimit_ = value; } } /// Field number for the "lineDashI" field. public const int LineDashIFieldNumber = 7; private float lineDashI_; /// /// Dash parameter /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float LineDashI { get { return lineDashI_; } set { lineDashI_ = value; } } /// Field number for the "lineDashII" field. public const int LineDashIIFieldNumber = 8; private float lineDashII_; /// /// Gap parameter /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float LineDashII { get { return lineDashII_; } set { lineDashII_ = value; } } /// Field number for the "lineDashIII" field. public const int LineDashIIIFieldNumber = 9; private float lineDashIII_; /// /// Offset parameter /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float LineDashIII { get { return lineDashIII_; } set { lineDashIII_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ShapeStyle); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ShapeStyle other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Fill, other.Fill)) return false; if (!object.Equals(Stroke, other.Stroke)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(StrokeWidth, other.StrokeWidth)) return false; if (LineCap != other.LineCap) return false; if (LineJoin != other.LineJoin) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MiterLimit, other.MiterLimit)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LineDashI, other.LineDashI)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LineDashII, other.LineDashII)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LineDashIII, other.LineDashIII)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (fill_ != null) hash ^= Fill.GetHashCode(); if (stroke_ != null) hash ^= Stroke.GetHashCode(); if (StrokeWidth != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(StrokeWidth); if (LineCap != 0) hash ^= LineCap.GetHashCode(); if (LineJoin != 0) hash ^= LineJoin.GetHashCode(); if (MiterLimit != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MiterLimit); if (LineDashI != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LineDashI); if (LineDashII != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LineDashII); if (LineDashIII != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LineDashIII); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (fill_ != null) { output.WriteRawTag(10); output.WriteMessage(Fill); } if (stroke_ != null) { output.WriteRawTag(18); output.WriteMessage(Stroke); } if (StrokeWidth != 0F) { output.WriteRawTag(29); output.WriteFloat(StrokeWidth); } if (LineCap != 0) { output.WriteRawTag(32); output.WriteEnum((int)LineCap); } if (LineJoin != 0) { output.WriteRawTag(40); output.WriteEnum((int)LineJoin); } if (MiterLimit != 0F) { output.WriteRawTag(53); output.WriteFloat(MiterLimit); } if (LineDashI != 0F) { output.WriteRawTag(61); output.WriteFloat(LineDashI); } if (LineDashII != 0F) { output.WriteRawTag(69); output.WriteFloat(LineDashII); } if (LineDashIII != 0F) { output.WriteRawTag(77); output.WriteFloat(LineDashIII); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (fill_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fill); } if (stroke_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stroke); } if (StrokeWidth != 0F) { size += 1 + 4; } if (LineCap != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)LineCap); } if (LineJoin != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)LineJoin); } if (MiterLimit != 0F) { size += 1 + 4; } if (LineDashI != 0F) { size += 1 + 4; } if (LineDashII != 0F) { size += 1 + 4; } if (LineDashIII != 0F) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ShapeStyle other) { if (other == null) { return; } if (other.fill_ != null) { if (fill_ == null) { fill_ = new global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.RGBAColor(); } Fill.MergeFrom(other.Fill); } if (other.stroke_ != null) { if (stroke_ == null) { stroke_ = new global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.RGBAColor(); } Stroke.MergeFrom(other.Stroke); } if (other.StrokeWidth != 0F) { StrokeWidth = other.StrokeWidth; } if (other.LineCap != 0) { LineCap = other.LineCap; } if (other.LineJoin != 0) { LineJoin = other.LineJoin; } if (other.MiterLimit != 0F) { MiterLimit = other.MiterLimit; } if (other.LineDashI != 0F) { LineDashI = other.LineDashI; } if (other.LineDashII != 0F) { LineDashII = other.LineDashII; } if (other.LineDashIII != 0F) { LineDashIII = other.LineDashIII; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (fill_ == null) { fill_ = new global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.RGBAColor(); } input.ReadMessage(fill_); break; } case 18: { if (stroke_ == null) { stroke_ = new global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.RGBAColor(); } input.ReadMessage(stroke_); break; } case 29: { StrokeWidth = input.ReadFloat(); break; } case 32: { lineCap_ = (global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.LineCap)input.ReadEnum(); break; } case 40: { lineJoin_ = (global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Types.LineJoin)input.ReadEnum(); break; } case 53: { MiterLimit = input.ReadFloat(); break; } case 61: { LineDashI = input.ReadFloat(); break; } case 69: { LineDashII = input.ReadFloat(); break; } case 77: { LineDashIII = input.ReadFloat(); break; } } } } #region Nested types /// Container for nested types declared in the ShapeStyle message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { public enum LineCap { [pbr::OriginalName("LineCap_BUTT")] Butt = 0, [pbr::OriginalName("LineCap_ROUND")] Round = 1, [pbr::OriginalName("LineCap_SQUARE")] Square = 2, } public enum LineJoin { [pbr::OriginalName("LineJoin_MITER")] Miter = 0, [pbr::OriginalName("LineJoin_ROUND")] Round = 1, [pbr::OriginalName("LineJoin_BEVEL")] Bevel = 2, } public sealed partial class RGBAColor : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RGBAColor()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.ShapeEntity.Types.ShapeStyle.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RGBAColor() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RGBAColor(RGBAColor other) : this() { r_ = other.r_; g_ = other.g_; b_ = other.b_; a_ = other.a_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RGBAColor Clone() { return new RGBAColor(this); } /// Field number for the "r" field. public const int RFieldNumber = 1; private float r_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float R { get { return r_; } set { r_ = value; } } /// Field number for the "g" field. public const int GFieldNumber = 2; private float g_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float G { get { return g_; } set { g_ = value; } } /// Field number for the "b" field. public const int BFieldNumber = 3; private float b_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float B { get { return b_; } set { b_ = value; } } /// Field number for the "a" field. public const int AFieldNumber = 4; private float a_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float A { get { return a_; } set { a_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as RGBAColor); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(RGBAColor other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (R != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); if (G != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); if (B != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); if (A != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (R != 0F) { output.WriteRawTag(13); output.WriteFloat(R); } if (G != 0F) { output.WriteRawTag(21); output.WriteFloat(G); } if (B != 0F) { output.WriteRawTag(29); output.WriteFloat(B); } if (A != 0F) { output.WriteRawTag(37); output.WriteFloat(A); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (R != 0F) { size += 1 + 4; } if (G != 0F) { size += 1 + 4; } if (B != 0F) { size += 1 + 4; } if (A != 0F) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(RGBAColor other) { if (other == null) { return; } if (other.R != 0F) { R = other.R; } if (other.G != 0F) { G = other.G; } if (other.B != 0F) { B = other.B; } if (other.A != 0F) { A = other.A; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { R = input.ReadFloat(); break; } case 21: { G = input.ReadFloat(); break; } case 29: { B = input.ReadFloat(); break; } case 37: { A = input.ReadFloat(); break; } } } } } } #endregion } } #endregion } public sealed partial class FrameEntity : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameEntity()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.SvgaReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FrameEntity() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FrameEntity(FrameEntity other) : this() { alpha_ = other.alpha_; layout_ = other.layout_ != null ? other.layout_.Clone() : null; transform_ = other.transform_ != null ? other.transform_.Clone() : null; clipPath_ = other.clipPath_; shapes_ = other.shapes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FrameEntity Clone() { return new FrameEntity(this); } /// Field number for the "alpha" field. public const int AlphaFieldNumber = 1; private float alpha_; /// /// Transparency /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float Alpha { get { return alpha_; } set { alpha_ = value; } } /// Field number for the "layout" field. public const int LayoutFieldNumber = 2; private global::Com.Opensource.Svga.Layout layout_; /// /// Initial constraint size /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.Layout Layout { get { return layout_; } set { layout_ = value; } } /// Field number for the "transform" field. public const int TransformFieldNumber = 3; private global::Com.Opensource.Svga.Transform transform_; /// /// 2D transformation matrix /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.Transform Transform { get { return transform_; } set { transform_ = value; } } /// Field number for the "clipPath" field. public const int ClipPathFieldNumber = 4; private string clipPath_ = ""; /// /// Mask path, using SVG standard Path drawing patterns for mask clipping. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ClipPath { get { return clipPath_; } set { clipPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "shapes" field. public const int ShapesFieldNumber = 5; private static readonly pb::FieldCodec _repeated_shapes_codec = pb::FieldCodec.ForMessage(42, global::Com.Opensource.Svga.ShapeEntity.Parser); private readonly pbc::RepeatedField shapes_ = new pbc::RepeatedField(); /// /// Vector element list /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Shapes { get { return shapes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FrameEntity); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FrameEntity other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Alpha, other.Alpha)) return false; if (!object.Equals(Layout, other.Layout)) return false; if (!object.Equals(Transform, other.Transform)) return false; if (ClipPath != other.ClipPath) return false; if (!shapes_.Equals(other.shapes_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Alpha != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Alpha); if (layout_ != null) hash ^= Layout.GetHashCode(); if (transform_ != null) hash ^= Transform.GetHashCode(); if (ClipPath.Length != 0) hash ^= ClipPath.GetHashCode(); hash ^= shapes_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (Alpha != 0F) { output.WriteRawTag(13); output.WriteFloat(Alpha); } if (layout_ != null) { output.WriteRawTag(18); output.WriteMessage(Layout); } if (transform_ != null) { output.WriteRawTag(26); output.WriteMessage(Transform); } if (ClipPath.Length != 0) { output.WriteRawTag(34); output.WriteString(ClipPath); } shapes_.WriteTo(output, _repeated_shapes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Alpha != 0F) { size += 1 + 4; } if (layout_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Layout); } if (transform_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Transform); } if (ClipPath.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ClipPath); } size += shapes_.CalculateSize(_repeated_shapes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FrameEntity other) { if (other == null) { return; } if (other.Alpha != 0F) { Alpha = other.Alpha; } if (other.layout_ != null) { if (layout_ == null) { layout_ = new global::Com.Opensource.Svga.Layout(); } Layout.MergeFrom(other.Layout); } if (other.transform_ != null) { if (transform_ == null) { transform_ = new global::Com.Opensource.Svga.Transform(); } Transform.MergeFrom(other.Transform); } if (other.ClipPath.Length != 0) { ClipPath = other.ClipPath; } shapes_.Add(other.shapes_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { Alpha = input.ReadFloat(); break; } case 18: { if (layout_ == null) { layout_ = new global::Com.Opensource.Svga.Layout(); } input.ReadMessage(layout_); break; } case 26: { if (transform_ == null) { transform_ = new global::Com.Opensource.Svga.Transform(); } input.ReadMessage(transform_); break; } case 34: { ClipPath = input.ReadString(); break; } case 42: { shapes_.AddEntriesFrom(input, _repeated_shapes_codec); break; } } } } } public sealed partial class MovieEntity : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MovieEntity()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Com.Opensource.Svga.SvgaReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MovieEntity() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MovieEntity(MovieEntity other) : this() { version_ = other.version_; params_ = other.params_ != null ? other.params_.Clone() : null; images_ = other.images_.Clone(); sprites_ = other.sprites_.Clone(); audios_ = other.audios_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MovieEntity Clone() { return new MovieEntity(this); } /// Field number for the "version" field. public const int VersionFieldNumber = 1; private string version_ = ""; /// /// SVGA format version number /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Version { get { return version_; } set { version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "params" field. public const int ParamsFieldNumber = 2; private global::Com.Opensource.Svga.MovieParams params_; /// /// Animation parameters /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Com.Opensource.Svga.MovieParams Params { get { return params_; } set { params_ = value; } } /// Field number for the "images" field. public const int ImagesFieldNumber = 3; private static readonly pbc::MapField.Codec _map_images_codec = new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 26); private readonly pbc::MapField images_ = new pbc::MapField(); /// /// Key is the bitmap key name, Value is the bitmap file name or binary PNG data. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::MapField Images { get { return images_; } } /// Field number for the "sprites" field. public const int SpritesFieldNumber = 4; private static readonly pb::FieldCodec _repeated_sprites_codec = pb::FieldCodec.ForMessage(34, global::Com.Opensource.Svga.SpriteEntity.Parser); private readonly pbc::RepeatedField sprites_ = new pbc::RepeatedField(); /// /// Element list /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Sprites { get { return sprites_; } } /// Field number for the "audios" field. public const int AudiosFieldNumber = 5; private static readonly pb::FieldCodec _repeated_audios_codec = pb::FieldCodec.ForMessage(42, global::Com.Opensource.Svga.AudioEntity.Parser); private readonly pbc::RepeatedField audios_ = new pbc::RepeatedField(); /// /// Audio list /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Audios { get { return audios_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as MovieEntity); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(MovieEntity other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Version != other.Version) return false; if (!object.Equals(Params, other.Params)) return false; if (!Images.Equals(other.Images)) return false; if (!sprites_.Equals(other.sprites_)) return false; if (!audios_.Equals(other.audios_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Version.Length != 0) hash ^= Version.GetHashCode(); if (params_ != null) hash ^= Params.GetHashCode(); hash ^= Images.GetHashCode(); hash ^= sprites_.GetHashCode(); hash ^= audios_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (Version.Length != 0) { output.WriteRawTag(10); output.WriteString(Version); } if (params_ != null) { output.WriteRawTag(18); output.WriteMessage(Params); } images_.WriteTo(output, _map_images_codec); sprites_.WriteTo(output, _repeated_sprites_codec); audios_.WriteTo(output, _repeated_audios_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Version.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); } if (params_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Params); } size += images_.CalculateSize(_map_images_codec); size += sprites_.CalculateSize(_repeated_sprites_codec); size += audios_.CalculateSize(_repeated_audios_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(MovieEntity other) { if (other == null) { return; } if (other.Version.Length != 0) { Version = other.Version; } if (other.params_ != null) { if (params_ == null) { params_ = new global::Com.Opensource.Svga.MovieParams(); } Params.MergeFrom(other.Params); } images_.Add(other.images_); sprites_.Add(other.sprites_); audios_.Add(other.audios_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Version = input.ReadString(); break; } case 18: { if (params_ == null) { params_ = new global::Com.Opensource.Svga.MovieParams(); } input.ReadMessage(params_); break; } case 26: { images_.AddEntriesFrom(input, _map_images_codec); break; } case 34: { sprites_.AddEntriesFrom(input, _repeated_sprites_codec); break; } case 42: { audios_.AddEntriesFrom(input, _repeated_audios_codec); break; } } } } } #endregion } #endregion Designer generated code