diff --git a/tools/apput/projects/.placeholder b/tools/apput/projects/.placeholder new file mode 100644 index 00000000000..a18be027f41 --- /dev/null +++ b/tools/apput/projects/.placeholder @@ -0,0 +1 @@ +This directory will contain .csproj files to be used by 3rd parties (e.g. XABT tests) diff --git a/tools/apput/src/Android/ARSCHeader.cs b/tools/apput/src/Android/ARSCHeader.cs new file mode 100644 index 00000000000..3872a0a6446 --- /dev/null +++ b/tools/apput/src/Android/ARSCHeader.cs @@ -0,0 +1,60 @@ +using System; +using System.IO; + +namespace ApplicationUtility; + +class ARSCHeader +{ + // This is the minimal size such a header must have. There might be other header data too! + const long MinimumSize = 2 + 2 + 4; + + readonly long start; + readonly uint size; + readonly ushort type; + readonly ushort headerSize; + readonly bool unknownType; + + public AndroidManifestChunkType Type => unknownType ? AndroidManifestChunkType.Null : (AndroidManifestChunkType)type; + public ushort TypeRaw => type; + public ushort HeaderSize => headerSize; + public uint Size => size; + public long End => start + (long)size; + + public ARSCHeader (Stream data, AndroidManifestChunkType? expectedType = null) + { + start = data.Position; + if (data.Length < start + MinimumSize) { + throw new InvalidDataException ($"Input data not large enough. Offset: {start}"); + } + + // Data in AXML is little-endian, which is fortuitous as that's the only format BinaryReader understands. + using BinaryReader reader = Utilities.GetReaderAndRewindStream (data, rewindStream: false); + + // ushort: type + // ushort: header_size + // uint: size + type = reader.ReadUInt16 (); + headerSize = reader.ReadUInt16 (); + + // Total size of the chunk, including the header + size = reader.ReadUInt32 (); + + if (expectedType != null && type != (ushort)expectedType) { + throw new InvalidOperationException ($"Header type is not equal to the expected type ({expectedType}): got 0x{type:x}, expected 0x{(ushort)expectedType:x}"); + } + + unknownType = !Enum.IsDefined (typeof(AndroidManifestChunkType), type); + + if (headerSize < MinimumSize) { + throw new InvalidDataException ($"Declared header size is smaller than required size of {MinimumSize}. Offset: {start}"); + } + + if (size < MinimumSize) { + throw new InvalidDataException ($"Declared chunk size is smaller than required size of {MinimumSize}. Offset: {start}"); + } + + if (size < headerSize) { + throw new InvalidDataException ($"Declared chunk size ({size}) is smaller than header size ({headerSize})! Offset: {start}"); + } + } +} diff --git a/tools/apput/src/Android/AXMLParser.cs b/tools/apput/src/Android/AXMLParser.cs new file mode 100644 index 00000000000..6df7ecd7a6d --- /dev/null +++ b/tools/apput/src/Android/AXMLParser.cs @@ -0,0 +1,378 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; +using System.Xml; + +namespace ApplicationUtility; + +// +// Based on https://github.com/androguard/androguard/tree/832104db3eb5dc3cc66b30883fa8ce8712dfa200/androguard/core/axml +// +class AXMLParser +{ + // Position of fields inside an attribute + const int ATTRIBUTE_IX_NAMESPACE_URI = 0; + const int ATTRIBUTE_IX_NAME = 1; + const int ATTRIBUTE_IX_VALUE_STRING = 2; + const int ATTRIBUTE_IX_VALUE_TYPE = 3; + const int ATTRIBUTE_IX_VALUE_DATA = 4; + const int ATTRIBUTE_LENGHT = 5; + + const long MinimumDataSize = 8; + const long MaximumDataSize = (long)UInt32.MaxValue; + + const uint ComplexUnitMask = 0x0f; + + static readonly float[] RadixMultipliers = { + 0.00390625f, + 3.051758E-005f, + 1.192093E-007f, + 4.656613E-010f, + }; + + static readonly string[] DimensionUnits = { + "px", + "dip", + "sp", + "pt", + "in", + "mm", + }; + + static readonly string[] FractionUnits = { + "%", + "%p", + }; + + Stream data; + long dataSize; + ARSCHeader axmlHeader; + uint fileSize; + AndroidManifestStringBlock stringPool; + bool valid = true; + long initialPosition; + + public bool IsValid => valid; + + public AXMLParser (Stream data) + { + this.data = data; + dataSize = data.Length; + + // Minimum is a single ARSCHeader, which would be a strange edge case... + if (dataSize < MinimumDataSize) { + throw new InvalidDataException ($"Input data size too small for it to be valid AXML content ({dataSize} < {MinimumDataSize})"); + } + + // This would be even stranger, if an AXML file is larger than 4GB... + // But this is not possible as the maximum chunk size is a unsigned 4 byte int. + if (dataSize > MaximumDataSize) { + throw new InvalidDataException ($"Input data size too large for it to be a valid AXML content ({dataSize} > {MaximumDataSize})"); + } + + try { + axmlHeader = new ARSCHeader (data); + } catch (Exception) { + Log.Error ("Error parsing the first data header"); + throw; + } + + if (axmlHeader.HeaderSize != 8) { + throw new InvalidDataException ($"This does not look like AXML data. header size does not equal 8. header size = {axmlHeader.Size}"); + } + + fileSize = axmlHeader.Size; + if (fileSize > dataSize) { + throw new InvalidDataException ($"This does not look like AXML data. Declared data size does not match real size: {fileSize} vs {dataSize}"); + } + + if (fileSize < dataSize) { + Log.Warning ($"Declared data size ({fileSize}) is smaller than total data size ({dataSize}). Was something appended to the file? Trying to parse it anyways."); + } + + if (axmlHeader.Type != AndroidManifestChunkType.Xml) { + Log.Warning ($"AXML file has an unusual resource type, trying to parse it anyways. Resource Type: 0x{(ushort)axmlHeader.Type:04x}"); + } + + ARSCHeader stringPoolHeader = new ARSCHeader (data, AndroidManifestChunkType.StringPool); + if (stringPoolHeader.HeaderSize != 28) { + throw new InvalidDataException ($"This does not look like an AXML file. String chunk header size does not equal 28. Header size = {stringPoolHeader.Size}"); + } + + stringPool = new AndroidManifestStringBlock (data, stringPoolHeader); + initialPosition = data.Position; + } + + public XmlDocument? Parse () + { + valid = true; + + var ret = new XmlDocument (); + XmlDeclaration declaration = ret.CreateXmlDeclaration ("1.0", stringPool.IsUTF8 ? "UTF-8" : "UTF-16", null); + ret.InsertBefore (declaration, ret.DocumentElement); + + using var reader = Utilities.GetReaderAndRewindStream (data); + ARSCHeader? header; + string? nsPrefix = null; + string? nsUri = null; + uint prefixIndex = 0; + uint uriIndex = 0; + var nsUriToPrefix = new Dictionary (StringComparer.Ordinal); + XmlNode? currentNode = ret.DocumentElement; + + while (data.Position < dataSize) { + header = new ARSCHeader (data); + + // Special chunk: Resource Map. This chunk might follow the string pool. + if (header.Type == AndroidManifestChunkType.XmlResourceMap) { + if (!SkipOverResourceMap (header, reader)) { + valid = false; + break; + } + continue; + } + + // XML chunks + + // Skip over unknown types + if (!Enum.IsDefined (typeof(AndroidManifestChunkType), header.TypeRaw)) { + Log.Warning ($"Unknown chunk type 0x{header.TypeRaw:x} at offset {data.Position}. Skipping over {header.Size} bytes"); + data.Seek (header.Size, SeekOrigin.Current); + continue; + } + + // Check that we read a correct header + if (header.HeaderSize != 16) { + Log.Warning ($"XML chunk header size is not 16. Chunk type {header.Type} (0x{header.TypeRaw:x}), chunk size {header.Size}"); + data.Seek (header.Size, SeekOrigin.Current); + continue; + } + + // Line Number of the source file, only used as meta information + uint lineNumber = reader.ReadUInt32 (); + + // Comment_Index (usually 0xffffffff) + uint commentIndex = reader.ReadUInt32 (); + + if (commentIndex != 0xffffffff && (header.Type == AndroidManifestChunkType.XmlStartNamespace || header.Type == AndroidManifestChunkType.XmlEndNamespace)) { + Log.Warning ($"Unhandled Comment at namespace chunk: {commentIndex}"); + } + + if (header.Type == AndroidManifestChunkType.XmlStartNamespace) { + prefixIndex = reader.ReadUInt32 (); + uriIndex = reader.ReadUInt32 (); + + nsPrefix = stringPool.GetString (prefixIndex); + nsUri = stringPool.GetString (uriIndex); + + if (!String.IsNullOrEmpty (nsUri)) { + nsUriToPrefix[nsUri] = nsPrefix ?? String.Empty; + } + + Log.Debug ($"Start of Namespace mapping: prefix {prefixIndex}: '{nsPrefix}' --> uri {uriIndex}: '{nsUri}'"); + + if (String.IsNullOrEmpty (nsUri)) { + Log.Warning ($"Namespace prefix '{nsPrefix}' resolves to empty URI."); + } + + continue; + } + + if (header.Type == AndroidManifestChunkType.XmlEndNamespace) { + // Namespace handling is **really** simplified, since we expect to deal only with AndroidManifest.xml which should have just one namespace. + // There should be no problems with that. Famous last words. + uint endPrefixIndex = reader.ReadUInt32 (); + uint endUriIndex = reader.ReadUInt32 (); + + Log.Debug ($"End of Namespace mapping: prefix {endPrefixIndex}, uri {endUriIndex}"); + if (endPrefixIndex != prefixIndex) { + Log.Warning ($"Prefix index of Namespace end doesn't match the last Namespace prefix index: {prefixIndex} != {endPrefixIndex}"); + } + + if (endUriIndex != uriIndex) { + Log.Warning ($"URI index of Namespace end doesn't match the last Namespace URI index: {uriIndex} != {endUriIndex}"); + } + + string? endUri = stringPool.GetString (endUriIndex); + if (!String.IsNullOrEmpty (endUri) && nsUriToPrefix.ContainsKey (endUri)) { + nsUriToPrefix.Remove (endUri); + } + + nsPrefix = null; + nsUri = null; + prefixIndex = 0; + uriIndex = 0; + + continue; + } + + uint tagNsUriIndex; + uint tagNameIndex; + string? tagName; +// string? tagNs; // TODO: implement + + if (header.Type == AndroidManifestChunkType.XmlStartElement) { + // The TAG consists of some fields: + // * (chunk_size, line_number, comment_index - we read before) + // * namespace_uri + // * name + // * flags + // * attribute_count + // * class_attribute + // After that, there are two lists of attributes, 20 bytes each + tagNsUriIndex = reader.ReadUInt32 (); + tagNameIndex = reader.ReadUInt32 (); + uint tagFlags = reader.ReadUInt32 (); + uint attributeCount = reader.ReadUInt32 () & 0xffff; + uint classAttribute = reader.ReadUInt32 (); + + // Tag name is, of course, required but instead of throwing an exception should we find none, we use a fake name in hope that we can still salvage + // the document. + tagName = stringPool.GetString (tagNameIndex) ?? "unnamedTag"; + Log.Debug ($"Start of tag '{tagName}', NS URI index {tagNsUriIndex}"); + Log.Debug ($"Reading tag attributes ({attributeCount}):"); + + string? tagNsUri = tagNsUriIndex != 0xffffffff ? stringPool.GetString (tagNsUriIndex) : null; + string? tagNsPrefix; + + if (String.IsNullOrEmpty (tagNsUri) || !nsUriToPrefix.TryGetValue (tagNsUri, out tagNsPrefix)) { + tagNsPrefix = null; + } + + XmlElement element = ret.CreateElement (tagNsPrefix, tagName, tagNsUri); + if (currentNode == null) { + ret.AppendChild (element); + if (!String.IsNullOrEmpty (nsPrefix) && !String.IsNullOrEmpty (nsUri)) { + ret.DocumentElement!.SetAttribute ($"xmlns:{nsPrefix}", nsUri); + } + } else { + currentNode.AppendChild (element); + } + currentNode = element; + + for (uint i = 0; i < attributeCount; i++) { + uint attrNsIdx = reader.ReadUInt32 (); // string index + uint attrNameIdx = reader.ReadUInt32 (); // string index + uint attrValue = reader.ReadUInt32 (); + uint attrType = reader.ReadUInt32 () >> 24; + uint attrData = reader.ReadUInt32 (); + + string? attrNs = attrNsIdx != 0xffffffff ? stringPool.GetString (attrNsIdx) : String.Empty; + string? attrName = stringPool.GetString (attrNameIdx); + + if (String.IsNullOrEmpty (attrName)) { + Log.Warning ($"Attribute without name, ignoring. Offset: {data.Position}"); + continue; + } + + Log.Debug ($" '{attrName}': ns == '{attrNs}'; value == 0x{attrValue:x}; type == 0x{attrType:x}; data == 0x{attrData:x}"); + XmlAttribute attr; + + if (!String.IsNullOrEmpty (attrNs)) { + attr = ret.CreateAttribute (nsUriToPrefix[attrNs], attrName, attrNs); + } else { + attr = ret.CreateAttribute (attrName!); + } + attr.Value = GetAttributeValue (attrValue, attrType, attrData); + element.SetAttributeNode (attr); + } + continue; + } + + if (header.Type == AndroidManifestChunkType.XmlEndElement) { + tagNsUriIndex = reader.ReadUInt32 (); + tagNameIndex = reader.ReadUInt32 (); + + tagName = stringPool.GetString (tagNameIndex); + Log.Debug ($"End of tag '{tagName}', NS URI index {tagNsUriIndex}"); + currentNode = currentNode?.ParentNode!; + continue; + } + + // TODO: add support for CDATA + } + + return ret; + } + + string GetAttributeValue (uint attrValue, uint attrType, uint attrData) + { + if (!Enum.IsDefined (typeof(AndroidManifestAttributeType), attrType)) { + Log.Warning ($"Unknown attribute type value 0x{attrType:x}, returning empty attribute value (data == 0x{attrData:x}). Offset: {data.Position}"); + return String.Empty; + } + + switch ((AndroidManifestAttributeType)attrType) { + case AndroidManifestAttributeType.Null: + return attrData == 0 ? "?NULL?" : String.Empty; + + case AndroidManifestAttributeType.Reference: + return $"@{MaybePrefix()}{attrData:x08}"; + + case AndroidManifestAttributeType.Attribute: + return $"?{MaybePrefix()}{attrData:x08}"; + + case AndroidManifestAttributeType.String: + return stringPool.GetString (attrData) ?? String.Empty; + + case AndroidManifestAttributeType.Float: + return $"{(float)attrData}"; + + case AndroidManifestAttributeType.Dimension: + return $"{ComplexToFloat(attrData)}{DimensionUnits[attrData & ComplexUnitMask]}"; + + case AndroidManifestAttributeType.Fraction: + return $"{ComplexToFloat(attrData) * 100.0f}{FractionUnits[attrData & ComplexUnitMask]}"; + + case AndroidManifestAttributeType.IntDec: + return attrData.ToString (); + + case AndroidManifestAttributeType.IntHex: + return $"0x{attrData:X08}"; + + case AndroidManifestAttributeType.IntBoolean: + return attrData == 0 ? "false" : "true"; + + case AndroidManifestAttributeType.IntColorARGB8: + case AndroidManifestAttributeType.IntColorRGB8: + case AndroidManifestAttributeType.IntColorARGB4: + case AndroidManifestAttributeType.IntColorRGB4: + return $"#{attrData:X08}"; + } + + return String.Empty; + + string MaybePrefix () + { + if (attrData >> 24 == 1) { + return "android:"; + } + return String.Empty; + } + + float ComplexToFloat (uint value) + { + return (float)(value & 0xffffff00) * RadixMultipliers[(value >> 4) & 3]; + } + } + + bool SkipOverResourceMap (ARSCHeader header, BinaryReader reader) + { + Log.Debug ("AXML contains a resource map"); + + // Check size: < 8 bytes mean that the chunk is not complete + // Should be aligned to 4 bytes. + if (header.Size < 8 || (header.Size % 4) != 0) { + Log.Error ("Invalid chunk size in chunk XML_RESOURCE_MAP"); + return false; + } + + // Since our main interest is in reading AndroidManifest.xml, we're going to skip over the table + for (int i = 0; i < (header.Size - header.HeaderSize) / 4; i++) { + reader.ReadUInt32 (); + } + + return true; + } +} diff --git a/tools/apput/src/Android/Aapt.Pb.Configuration.cs b/tools/apput/src/Android/Aapt.Pb.Configuration.cs new file mode 100644 index 00000000000..63f1429d45b --- /dev/null +++ b/tools/apput/src/Android/Aapt.Pb.Configuration.cs @@ -0,0 +1,1413 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Configuration.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#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 Aapt.Pb { + + /// Holder for reflection information generated from Configuration.proto + public static partial class ConfigurationReflection { + + #region Descriptor + /// File descriptor for Configuration.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConfigurationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNDb25maWd1cmF0aW9uLnByb3RvEgdhYXB0LnBiIpcWCg1Db25maWd1cmF0", + "aW9uEgsKA21jYxgBIAEoDRILCgNtbmMYAiABKA0SDgoGbG9jYWxlGAMgASgJ", + "EkAKEGxheW91dF9kaXJlY3Rpb24YBCABKA4yJi5hYXB0LnBiLkNvbmZpZ3Vy", + "YXRpb24uTGF5b3V0RGlyZWN0aW9uEhQKDHNjcmVlbl93aWR0aBgFIAEoDRIV", + "Cg1zY3JlZW5faGVpZ2h0GAYgASgNEhcKD3NjcmVlbl93aWR0aF9kcBgHIAEo", + "DRIYChBzY3JlZW5faGVpZ2h0X2RwGAggASgNEiAKGHNtYWxsZXN0X3NjcmVl", + "bl93aWR0aF9kcBgJIAEoDRJDChJzY3JlZW5fbGF5b3V0X3NpemUYCiABKA4y", + "Jy5hYXB0LnBiLkNvbmZpZ3VyYXRpb24uU2NyZWVuTGF5b3V0U2l6ZRJDChJz", + "Y3JlZW5fbGF5b3V0X2xvbmcYCyABKA4yJy5hYXB0LnBiLkNvbmZpZ3VyYXRp", + "b24uU2NyZWVuTGF5b3V0TG9uZxI4CgxzY3JlZW5fcm91bmQYDCABKA4yIi5h", + "YXB0LnBiLkNvbmZpZ3VyYXRpb24uU2NyZWVuUm91bmQSPwoQd2lkZV9jb2xv", + "cl9nYW11dBgNIAEoDjIlLmFhcHQucGIuQ29uZmlndXJhdGlvbi5XaWRlQ29s", + "b3JHYW11dBInCgNoZHIYDiABKA4yGi5hYXB0LnBiLkNvbmZpZ3VyYXRpb24u", + "SGRyEjcKC29yaWVudGF0aW9uGA8gASgOMiIuYWFwdC5wYi5Db25maWd1cmF0", + "aW9uLk9yaWVudGF0aW9uEjcKDHVpX21vZGVfdHlwZRgQIAEoDjIhLmFhcHQu", + "cGIuQ29uZmlndXJhdGlvbi5VaU1vZGVUeXBlEjkKDXVpX21vZGVfbmlnaHQY", + "ESABKA4yIi5hYXB0LnBiLkNvbmZpZ3VyYXRpb24uVWlNb2RlTmlnaHQSDwoH", + "ZGVuc2l0eRgSIAEoDRI3Cgt0b3VjaHNjcmVlbhgTIAEoDjIiLmFhcHQucGIu", + "Q29uZmlndXJhdGlvbi5Ub3VjaHNjcmVlbhI2CgtrZXlzX2hpZGRlbhgUIAEo", + "DjIhLmFhcHQucGIuQ29uZmlndXJhdGlvbi5LZXlzSGlkZGVuEjEKCGtleWJv", + "YXJkGBUgASgOMh8uYWFwdC5wYi5Db25maWd1cmF0aW9uLktleWJvYXJkEjQK", + "Cm5hdl9oaWRkZW4YFiABKA4yIC5hYXB0LnBiLkNvbmZpZ3VyYXRpb24uTmF2", + "SGlkZGVuEjUKCm5hdmlnYXRpb24YFyABKA4yIS5hYXB0LnBiLkNvbmZpZ3Vy", + "YXRpb24uTmF2aWdhdGlvbhITCgtzZGtfdmVyc2lvbhgYIAEoDRJEChJncmFt", + "bWF0aWNhbF9nZW5kZXIYGiABKA4yKC5hYXB0LnBiLkNvbmZpZ3VyYXRpb24u", + "R3JhbW1hdGljYWxHZW5kZXISDwoHcHJvZHVjdBgZIAEoCSJhCg9MYXlvdXRE", + "aXJlY3Rpb24SGgoWTEFZT1VUX0RJUkVDVElPTl9VTlNFVBAAEhgKFExBWU9V", + "VF9ESVJFQ1RJT05fTFRSEAESGAoUTEFZT1VUX0RJUkVDVElPTl9SVEwQAiKq", + "AQoQU2NyZWVuTGF5b3V0U2l6ZRIcChhTQ1JFRU5fTEFZT1VUX1NJWkVfVU5T", + "RVQQABIcChhTQ1JFRU5fTEFZT1VUX1NJWkVfU01BTEwQARIdChlTQ1JFRU5f", + "TEFZT1VUX1NJWkVfTk9STUFMEAISHAoYU0NSRUVOX0xBWU9VVF9TSVpFX0xB", + "UkdFEAMSHQoZU0NSRUVOX0xBWU9VVF9TSVpFX1hMQVJHRRAEIm0KEFNjcmVl", + "bkxheW91dExvbmcSHAoYU0NSRUVOX0xBWU9VVF9MT05HX1VOU0VUEAASGwoX", + "U0NSRUVOX0xBWU9VVF9MT05HX0xPTkcQARIeChpTQ1JFRU5fTEFZT1VUX0xP", + "TkdfTk9UTE9ORxACIlgKC1NjcmVlblJvdW5kEhYKElNDUkVFTl9ST1VORF9V", + "TlNFVBAAEhYKElNDUkVFTl9ST1VORF9ST1VORBABEhkKFVNDUkVFTl9ST1VO", + "RF9OT1RST1VORBACImgKDldpZGVDb2xvckdhbXV0EhoKFldJREVfQ09MT1Jf", + "R0FNVVRfVU5TRVQQABIbChdXSURFX0NPTE9SX0dBTVVUX1dJREVDRxABEh0K", + "GVdJREVfQ09MT1JfR0FNVVRfTk9XSURFQ0cQAiIzCgNIZHISDQoJSERSX1VO", + "U0VUEAASDgoKSERSX0hJR0hEUhABEg0KCUhEUl9MT1dEUhACImgKC09yaWVu", + "dGF0aW9uEhUKEU9SSUVOVEFUSU9OX1VOU0VUEAASFAoQT1JJRU5UQVRJT05f", + "UE9SVBABEhQKEE9SSUVOVEFUSU9OX0xBTkQQAhIWChJPUklFTlRBVElPTl9T", + "UVVBUkUQAyLXAQoKVWlNb2RlVHlwZRIWChJVSV9NT0RFX1RZUEVfVU5TRVQQ", + "ABIXChNVSV9NT0RFX1RZUEVfTk9STUFMEAESFQoRVUlfTU9ERV9UWVBFX0RF", + "U0sQAhIUChBVSV9NT0RFX1RZUEVfQ0FSEAMSGwoXVUlfTU9ERV9UWVBFX1RF", + "TEVWSVNJT04QBBIaChZVSV9NT0RFX1RZUEVfQVBQTElBTkNFEAUSFgoSVUlf", + "TU9ERV9UWVBFX1dBVENIEAYSGgoWVUlfTU9ERV9UWVBFX1ZSSEVBRFNFVBAH", + "IlsKC1VpTW9kZU5pZ2h0EhcKE1VJX01PREVfTklHSFRfVU5TRVQQABIXChNV", + "SV9NT0RFX05JR0hUX05JR0hUEAESGgoWVUlfTU9ERV9OSUdIVF9OT1ROSUdI", + "VBACIm0KC1RvdWNoc2NyZWVuEhUKEVRPVUNIU0NSRUVOX1VOU0VUEAASFwoT", + "VE9VQ0hTQ1JFRU5fTk9UT1VDSBABEhYKElRPVUNIU0NSRUVOX1NUWUxVUxAC", + "EhYKElRPVUNIU0NSRUVOX0ZJTkdFUhADInYKCktleXNIaWRkZW4SFQoRS0VZ", + "U19ISURERU5fVU5TRVQQABIbChdLRVlTX0hJRERFTl9LRVlTRVhQT1NFRBAB", + "EhoKFktFWVNfSElEREVOX0tFWVNISURERU4QAhIYChRLRVlTX0hJRERFTl9L", + "RVlTU09GVBADImAKCEtleWJvYXJkEhIKDktFWUJPQVJEX1VOU0VUEAASEwoP", + "S0VZQk9BUkRfTk9LRVlTEAESEwoPS0VZQk9BUkRfUVdFUlRZEAISFgoSS0VZ", + "Qk9BUkRfVFdFTFZFS0VZEAMiVgoJTmF2SGlkZGVuEhQKEE5BVl9ISURERU5f", + "VU5TRVQQABIZChVOQVZfSElEREVOX05BVkVYUE9TRUQQARIYChROQVZfSElE", + "REVOX05BVkhJRERFThACIn0KCk5hdmlnYXRpb24SFAoQTkFWSUdBVElPTl9V", + "TlNFVBAAEhQKEE5BVklHQVRJT05fTk9OQVYQARITCg9OQVZJR0FUSU9OX0RQ", + "QUQQAhIYChROQVZJR0FUSU9OX1RSQUNLQkFMTBADEhQKEE5BVklHQVRJT05f", + "V0hFRUwQBCJ2ChFHcmFtbWF0aWNhbEdlbmRlchIUChBHUkFNX0dFTkRFUl9V", + "U0VUEAASFgoSR1JBTV9HRU5ERVJfTkVVVEVSEAESGAoUR1JBTV9HRU5ERVJf", + "RkVNSU5JTkUQAhIZChVHUkFNX0dFTkRFUl9NQVNDVUxJTkUQA0ISChBjb20u", + "YW5kcm9pZC5hYXB0YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Configuration), global::Aapt.Pb.Configuration.Parser, new[]{ "Mcc", "Mnc", "Locale", "LayoutDirection", "ScreenWidth", "ScreenHeight", "ScreenWidthDp", "ScreenHeightDp", "SmallestScreenWidthDp", "ScreenLayoutSize", "ScreenLayoutLong", "ScreenRound", "WideColorGamut", "Hdr", "Orientation", "UiModeType", "UiModeNight", "Density", "Touchscreen", "KeysHidden", "Keyboard", "NavHidden", "Navigation", "SdkVersion", "GrammaticalGender", "Product" }, null, new[]{ typeof(global::Aapt.Pb.Configuration.Types.LayoutDirection), typeof(global::Aapt.Pb.Configuration.Types.ScreenLayoutSize), typeof(global::Aapt.Pb.Configuration.Types.ScreenLayoutLong), typeof(global::Aapt.Pb.Configuration.Types.ScreenRound), typeof(global::Aapt.Pb.Configuration.Types.WideColorGamut), typeof(global::Aapt.Pb.Configuration.Types.Hdr), typeof(global::Aapt.Pb.Configuration.Types.Orientation), typeof(global::Aapt.Pb.Configuration.Types.UiModeType), typeof(global::Aapt.Pb.Configuration.Types.UiModeNight), typeof(global::Aapt.Pb.Configuration.Types.Touchscreen), typeof(global::Aapt.Pb.Configuration.Types.KeysHidden), typeof(global::Aapt.Pb.Configuration.Types.Keyboard), typeof(global::Aapt.Pb.Configuration.Types.NavHidden), typeof(global::Aapt.Pb.Configuration.Types.Navigation), typeof(global::Aapt.Pb.Configuration.Types.GrammaticalGender) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A description of the requirements a device must have in order for a + /// resource to be matched and selected. + /// + public sealed partial class Configuration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Configuration()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ConfigurationReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Configuration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Configuration(Configuration other) : this() { + mcc_ = other.mcc_; + mnc_ = other.mnc_; + locale_ = other.locale_; + layoutDirection_ = other.layoutDirection_; + screenWidth_ = other.screenWidth_; + screenHeight_ = other.screenHeight_; + screenWidthDp_ = other.screenWidthDp_; + screenHeightDp_ = other.screenHeightDp_; + smallestScreenWidthDp_ = other.smallestScreenWidthDp_; + screenLayoutSize_ = other.screenLayoutSize_; + screenLayoutLong_ = other.screenLayoutLong_; + screenRound_ = other.screenRound_; + wideColorGamut_ = other.wideColorGamut_; + hdr_ = other.hdr_; + orientation_ = other.orientation_; + uiModeType_ = other.uiModeType_; + uiModeNight_ = other.uiModeNight_; + density_ = other.density_; + touchscreen_ = other.touchscreen_; + keysHidden_ = other.keysHidden_; + keyboard_ = other.keyboard_; + navHidden_ = other.navHidden_; + navigation_ = other.navigation_; + sdkVersion_ = other.sdkVersion_; + grammaticalGender_ = other.grammaticalGender_; + product_ = other.product_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Configuration Clone() { + return new Configuration(this); + } + + /// Field number for the "mcc" field. + public const int MccFieldNumber = 1; + private uint mcc_; + /// + /// Mobile country code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Mcc { + get { return mcc_; } + set { + mcc_ = value; + } + } + + /// Field number for the "mnc" field. + public const int MncFieldNumber = 2; + private uint mnc_; + /// + /// Mobile network code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Mnc { + get { return mnc_; } + set { + mnc_ = value; + } + } + + /// Field number for the "locale" field. + public const int LocaleFieldNumber = 3; + private string locale_ = ""; + /// + /// BCP-47 locale tag. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Locale { + get { return locale_; } + set { + locale_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "layout_direction" field. + public const int LayoutDirectionFieldNumber = 4; + private global::Aapt.Pb.Configuration.Types.LayoutDirection layoutDirection_ = global::Aapt.Pb.Configuration.Types.LayoutDirection.Unset; + /// + /// Left-to-right, right-to-left... + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.LayoutDirection LayoutDirection { + get { return layoutDirection_; } + set { + layoutDirection_ = value; + } + } + + /// Field number for the "screen_width" field. + public const int ScreenWidthFieldNumber = 5; + private uint screenWidth_; + /// + /// Screen width in pixels. Prefer screen_width_dp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ScreenWidth { + get { return screenWidth_; } + set { + screenWidth_ = value; + } + } + + /// Field number for the "screen_height" field. + public const int ScreenHeightFieldNumber = 6; + private uint screenHeight_; + /// + /// Screen height in pixels. Prefer screen_height_dp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ScreenHeight { + get { return screenHeight_; } + set { + screenHeight_ = value; + } + } + + /// Field number for the "screen_width_dp" field. + public const int ScreenWidthDpFieldNumber = 7; + private uint screenWidthDp_; + /// + /// Screen width in density independent pixels (dp). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ScreenWidthDp { + get { return screenWidthDp_; } + set { + screenWidthDp_ = value; + } + } + + /// Field number for the "screen_height_dp" field. + public const int ScreenHeightDpFieldNumber = 8; + private uint screenHeightDp_; + /// + /// Screen height in density independent pixels (dp). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ScreenHeightDp { + get { return screenHeightDp_; } + set { + screenHeightDp_ = value; + } + } + + /// Field number for the "smallest_screen_width_dp" field. + public const int SmallestScreenWidthDpFieldNumber = 9; + private uint smallestScreenWidthDp_; + /// + /// The smallest screen dimension, regardless of orientation, in dp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SmallestScreenWidthDp { + get { return smallestScreenWidthDp_; } + set { + smallestScreenWidthDp_ = value; + } + } + + /// Field number for the "screen_layout_size" field. + public const int ScreenLayoutSizeFieldNumber = 10; + private global::Aapt.Pb.Configuration.Types.ScreenLayoutSize screenLayoutSize_ = global::Aapt.Pb.Configuration.Types.ScreenLayoutSize.Unset; + /// + /// Whether the device screen is classified as small, normal, large, xlarge. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.ScreenLayoutSize ScreenLayoutSize { + get { return screenLayoutSize_; } + set { + screenLayoutSize_ = value; + } + } + + /// Field number for the "screen_layout_long" field. + public const int ScreenLayoutLongFieldNumber = 11; + private global::Aapt.Pb.Configuration.Types.ScreenLayoutLong screenLayoutLong_ = global::Aapt.Pb.Configuration.Types.ScreenLayoutLong.Unset; + /// + /// Whether the device screen is long. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.ScreenLayoutLong ScreenLayoutLong { + get { return screenLayoutLong_; } + set { + screenLayoutLong_ = value; + } + } + + /// Field number for the "screen_round" field. + public const int ScreenRoundFieldNumber = 12; + private global::Aapt.Pb.Configuration.Types.ScreenRound screenRound_ = global::Aapt.Pb.Configuration.Types.ScreenRound.Unset; + /// + /// Whether the screen is round (Android Wear). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.ScreenRound ScreenRound { + get { return screenRound_; } + set { + screenRound_ = value; + } + } + + /// Field number for the "wide_color_gamut" field. + public const int WideColorGamutFieldNumber = 13; + private global::Aapt.Pb.Configuration.Types.WideColorGamut wideColorGamut_ = global::Aapt.Pb.Configuration.Types.WideColorGamut.Unset; + /// + /// Whether the screen supports wide color gamut. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.WideColorGamut WideColorGamut { + get { return wideColorGamut_; } + set { + wideColorGamut_ = value; + } + } + + /// Field number for the "hdr" field. + public const int HdrFieldNumber = 14; + private global::Aapt.Pb.Configuration.Types.Hdr hdr_ = global::Aapt.Pb.Configuration.Types.Hdr.Unset; + /// + /// Whether the screen has high dynamic range. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.Hdr Hdr { + get { return hdr_; } + set { + hdr_ = value; + } + } + + /// Field number for the "orientation" field. + public const int OrientationFieldNumber = 15; + private global::Aapt.Pb.Configuration.Types.Orientation orientation_ = global::Aapt.Pb.Configuration.Types.Orientation.Unset; + /// + /// Which orientation the device is in (portrait, landscape). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.Orientation Orientation { + get { return orientation_; } + set { + orientation_ = value; + } + } + + /// Field number for the "ui_mode_type" field. + public const int UiModeTypeFieldNumber = 16; + private global::Aapt.Pb.Configuration.Types.UiModeType uiModeType_ = global::Aapt.Pb.Configuration.Types.UiModeType.Unset; + /// + /// Which type of UI mode the device is in (television, car, etc.). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.UiModeType UiModeType { + get { return uiModeType_; } + set { + uiModeType_ = value; + } + } + + /// Field number for the "ui_mode_night" field. + public const int UiModeNightFieldNumber = 17; + private global::Aapt.Pb.Configuration.Types.UiModeNight uiModeNight_ = global::Aapt.Pb.Configuration.Types.UiModeNight.Unset; + /// + /// Whether the device is in night mode. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.UiModeNight UiModeNight { + get { return uiModeNight_; } + set { + uiModeNight_ = value; + } + } + + /// Field number for the "density" field. + public const int DensityFieldNumber = 18; + private uint density_; + /// + /// The device's screen density in dots-per-inch (dpi). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Density { + get { return density_; } + set { + density_ = value; + } + } + + /// Field number for the "touchscreen" field. + public const int TouchscreenFieldNumber = 19; + private global::Aapt.Pb.Configuration.Types.Touchscreen touchscreen_ = global::Aapt.Pb.Configuration.Types.Touchscreen.Unset; + /// + /// Whether a touchscreen exists, supports a stylus, or finger. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.Touchscreen Touchscreen { + get { return touchscreen_; } + set { + touchscreen_ = value; + } + } + + /// Field number for the "keys_hidden" field. + public const int KeysHiddenFieldNumber = 20; + private global::Aapt.Pb.Configuration.Types.KeysHidden keysHidden_ = global::Aapt.Pb.Configuration.Types.KeysHidden.Unset; + /// + /// Whether the keyboard hardware keys are currently hidden, exposed, or + /// if the keyboard is a software keyboard. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.KeysHidden KeysHidden { + get { return keysHidden_; } + set { + keysHidden_ = value; + } + } + + /// Field number for the "keyboard" field. + public const int KeyboardFieldNumber = 21; + private global::Aapt.Pb.Configuration.Types.Keyboard keyboard_ = global::Aapt.Pb.Configuration.Types.Keyboard.Unset; + /// + /// The type of keyboard present (none, QWERTY, 12-key). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.Keyboard Keyboard { + get { return keyboard_; } + set { + keyboard_ = value; + } + } + + /// Field number for the "nav_hidden" field. + public const int NavHiddenFieldNumber = 22; + private global::Aapt.Pb.Configuration.Types.NavHidden navHidden_ = global::Aapt.Pb.Configuration.Types.NavHidden.Unset; + /// + /// Whether the navigation is exposed or hidden. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.NavHidden NavHidden { + get { return navHidden_; } + set { + navHidden_ = value; + } + } + + /// Field number for the "navigation" field. + public const int NavigationFieldNumber = 23; + private global::Aapt.Pb.Configuration.Types.Navigation navigation_ = global::Aapt.Pb.Configuration.Types.Navigation.Unset; + /// + /// The type of navigation present on the device + /// (trackball, wheel, dpad, etc.). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.Navigation Navigation { + get { return navigation_; } + set { + navigation_ = value; + } + } + + /// Field number for the "sdk_version" field. + public const int SdkVersionFieldNumber = 24; + private uint sdkVersion_; + /// + /// The minimum SDK version of the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SdkVersion { + get { return sdkVersion_; } + set { + sdkVersion_ = value; + } + } + + /// Field number for the "grammatical_gender" field. + public const int GrammaticalGenderFieldNumber = 26; + private global::Aapt.Pb.Configuration.Types.GrammaticalGender grammaticalGender_ = global::Aapt.Pb.Configuration.Types.GrammaticalGender.GramGenderUset; + /// + /// Grammatical gender. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration.Types.GrammaticalGender GrammaticalGender { + get { return grammaticalGender_; } + set { + grammaticalGender_ = value; + } + } + + /// Field number for the "product" field. + public const int ProductFieldNumber = 25; + private string product_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Product { + get { return product_; } + set { + product_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Configuration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Configuration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Mcc != other.Mcc) return false; + if (Mnc != other.Mnc) return false; + if (Locale != other.Locale) return false; + if (LayoutDirection != other.LayoutDirection) return false; + if (ScreenWidth != other.ScreenWidth) return false; + if (ScreenHeight != other.ScreenHeight) return false; + if (ScreenWidthDp != other.ScreenWidthDp) return false; + if (ScreenHeightDp != other.ScreenHeightDp) return false; + if (SmallestScreenWidthDp != other.SmallestScreenWidthDp) return false; + if (ScreenLayoutSize != other.ScreenLayoutSize) return false; + if (ScreenLayoutLong != other.ScreenLayoutLong) return false; + if (ScreenRound != other.ScreenRound) return false; + if (WideColorGamut != other.WideColorGamut) return false; + if (Hdr != other.Hdr) return false; + if (Orientation != other.Orientation) return false; + if (UiModeType != other.UiModeType) return false; + if (UiModeNight != other.UiModeNight) return false; + if (Density != other.Density) return false; + if (Touchscreen != other.Touchscreen) return false; + if (KeysHidden != other.KeysHidden) return false; + if (Keyboard != other.Keyboard) return false; + if (NavHidden != other.NavHidden) return false; + if (Navigation != other.Navigation) return false; + if (SdkVersion != other.SdkVersion) return false; + if (GrammaticalGender != other.GrammaticalGender) return false; + if (Product != other.Product) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Mcc != 0) hash ^= Mcc.GetHashCode(); + if (Mnc != 0) hash ^= Mnc.GetHashCode(); + if (Locale.Length != 0) hash ^= Locale.GetHashCode(); + if (LayoutDirection != global::Aapt.Pb.Configuration.Types.LayoutDirection.Unset) hash ^= LayoutDirection.GetHashCode(); + if (ScreenWidth != 0) hash ^= ScreenWidth.GetHashCode(); + if (ScreenHeight != 0) hash ^= ScreenHeight.GetHashCode(); + if (ScreenWidthDp != 0) hash ^= ScreenWidthDp.GetHashCode(); + if (ScreenHeightDp != 0) hash ^= ScreenHeightDp.GetHashCode(); + if (SmallestScreenWidthDp != 0) hash ^= SmallestScreenWidthDp.GetHashCode(); + if (ScreenLayoutSize != global::Aapt.Pb.Configuration.Types.ScreenLayoutSize.Unset) hash ^= ScreenLayoutSize.GetHashCode(); + if (ScreenLayoutLong != global::Aapt.Pb.Configuration.Types.ScreenLayoutLong.Unset) hash ^= ScreenLayoutLong.GetHashCode(); + if (ScreenRound != global::Aapt.Pb.Configuration.Types.ScreenRound.Unset) hash ^= ScreenRound.GetHashCode(); + if (WideColorGamut != global::Aapt.Pb.Configuration.Types.WideColorGamut.Unset) hash ^= WideColorGamut.GetHashCode(); + if (Hdr != global::Aapt.Pb.Configuration.Types.Hdr.Unset) hash ^= Hdr.GetHashCode(); + if (Orientation != global::Aapt.Pb.Configuration.Types.Orientation.Unset) hash ^= Orientation.GetHashCode(); + if (UiModeType != global::Aapt.Pb.Configuration.Types.UiModeType.Unset) hash ^= UiModeType.GetHashCode(); + if (UiModeNight != global::Aapt.Pb.Configuration.Types.UiModeNight.Unset) hash ^= UiModeNight.GetHashCode(); + if (Density != 0) hash ^= Density.GetHashCode(); + if (Touchscreen != global::Aapt.Pb.Configuration.Types.Touchscreen.Unset) hash ^= Touchscreen.GetHashCode(); + if (KeysHidden != global::Aapt.Pb.Configuration.Types.KeysHidden.Unset) hash ^= KeysHidden.GetHashCode(); + if (Keyboard != global::Aapt.Pb.Configuration.Types.Keyboard.Unset) hash ^= Keyboard.GetHashCode(); + if (NavHidden != global::Aapt.Pb.Configuration.Types.NavHidden.Unset) hash ^= NavHidden.GetHashCode(); + if (Navigation != global::Aapt.Pb.Configuration.Types.Navigation.Unset) hash ^= Navigation.GetHashCode(); + if (SdkVersion != 0) hash ^= SdkVersion.GetHashCode(); + if (GrammaticalGender != global::Aapt.Pb.Configuration.Types.GrammaticalGender.GramGenderUset) hash ^= GrammaticalGender.GetHashCode(); + if (Product.Length != 0) hash ^= Product.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Mcc != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Mcc); + } + if (Mnc != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Mnc); + } + if (Locale.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Locale); + } + if (LayoutDirection != global::Aapt.Pb.Configuration.Types.LayoutDirection.Unset) { + output.WriteRawTag(32); + output.WriteEnum((int) LayoutDirection); + } + if (ScreenWidth != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ScreenWidth); + } + if (ScreenHeight != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ScreenHeight); + } + if (ScreenWidthDp != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ScreenWidthDp); + } + if (ScreenHeightDp != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ScreenHeightDp); + } + if (SmallestScreenWidthDp != 0) { + output.WriteRawTag(72); + output.WriteUInt32(SmallestScreenWidthDp); + } + if (ScreenLayoutSize != global::Aapt.Pb.Configuration.Types.ScreenLayoutSize.Unset) { + output.WriteRawTag(80); + output.WriteEnum((int) ScreenLayoutSize); + } + if (ScreenLayoutLong != global::Aapt.Pb.Configuration.Types.ScreenLayoutLong.Unset) { + output.WriteRawTag(88); + output.WriteEnum((int) ScreenLayoutLong); + } + if (ScreenRound != global::Aapt.Pb.Configuration.Types.ScreenRound.Unset) { + output.WriteRawTag(96); + output.WriteEnum((int) ScreenRound); + } + if (WideColorGamut != global::Aapt.Pb.Configuration.Types.WideColorGamut.Unset) { + output.WriteRawTag(104); + output.WriteEnum((int) WideColorGamut); + } + if (Hdr != global::Aapt.Pb.Configuration.Types.Hdr.Unset) { + output.WriteRawTag(112); + output.WriteEnum((int) Hdr); + } + if (Orientation != global::Aapt.Pb.Configuration.Types.Orientation.Unset) { + output.WriteRawTag(120); + output.WriteEnum((int) Orientation); + } + if (UiModeType != global::Aapt.Pb.Configuration.Types.UiModeType.Unset) { + output.WriteRawTag(128, 1); + output.WriteEnum((int) UiModeType); + } + if (UiModeNight != global::Aapt.Pb.Configuration.Types.UiModeNight.Unset) { + output.WriteRawTag(136, 1); + output.WriteEnum((int) UiModeNight); + } + if (Density != 0) { + output.WriteRawTag(144, 1); + output.WriteUInt32(Density); + } + if (Touchscreen != global::Aapt.Pb.Configuration.Types.Touchscreen.Unset) { + output.WriteRawTag(152, 1); + output.WriteEnum((int) Touchscreen); + } + if (KeysHidden != global::Aapt.Pb.Configuration.Types.KeysHidden.Unset) { + output.WriteRawTag(160, 1); + output.WriteEnum((int) KeysHidden); + } + if (Keyboard != global::Aapt.Pb.Configuration.Types.Keyboard.Unset) { + output.WriteRawTag(168, 1); + output.WriteEnum((int) Keyboard); + } + if (NavHidden != global::Aapt.Pb.Configuration.Types.NavHidden.Unset) { + output.WriteRawTag(176, 1); + output.WriteEnum((int) NavHidden); + } + if (Navigation != global::Aapt.Pb.Configuration.Types.Navigation.Unset) { + output.WriteRawTag(184, 1); + output.WriteEnum((int) Navigation); + } + if (SdkVersion != 0) { + output.WriteRawTag(192, 1); + output.WriteUInt32(SdkVersion); + } + if (Product.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(Product); + } + if (GrammaticalGender != global::Aapt.Pb.Configuration.Types.GrammaticalGender.GramGenderUset) { + output.WriteRawTag(208, 1); + output.WriteEnum((int) GrammaticalGender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Mcc != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Mcc); + } + if (Mnc != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Mnc); + } + if (Locale.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Locale); + } + if (LayoutDirection != global::Aapt.Pb.Configuration.Types.LayoutDirection.Unset) { + output.WriteRawTag(32); + output.WriteEnum((int) LayoutDirection); + } + if (ScreenWidth != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ScreenWidth); + } + if (ScreenHeight != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ScreenHeight); + } + if (ScreenWidthDp != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ScreenWidthDp); + } + if (ScreenHeightDp != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ScreenHeightDp); + } + if (SmallestScreenWidthDp != 0) { + output.WriteRawTag(72); + output.WriteUInt32(SmallestScreenWidthDp); + } + if (ScreenLayoutSize != global::Aapt.Pb.Configuration.Types.ScreenLayoutSize.Unset) { + output.WriteRawTag(80); + output.WriteEnum((int) ScreenLayoutSize); + } + if (ScreenLayoutLong != global::Aapt.Pb.Configuration.Types.ScreenLayoutLong.Unset) { + output.WriteRawTag(88); + output.WriteEnum((int) ScreenLayoutLong); + } + if (ScreenRound != global::Aapt.Pb.Configuration.Types.ScreenRound.Unset) { + output.WriteRawTag(96); + output.WriteEnum((int) ScreenRound); + } + if (WideColorGamut != global::Aapt.Pb.Configuration.Types.WideColorGamut.Unset) { + output.WriteRawTag(104); + output.WriteEnum((int) WideColorGamut); + } + if (Hdr != global::Aapt.Pb.Configuration.Types.Hdr.Unset) { + output.WriteRawTag(112); + output.WriteEnum((int) Hdr); + } + if (Orientation != global::Aapt.Pb.Configuration.Types.Orientation.Unset) { + output.WriteRawTag(120); + output.WriteEnum((int) Orientation); + } + if (UiModeType != global::Aapt.Pb.Configuration.Types.UiModeType.Unset) { + output.WriteRawTag(128, 1); + output.WriteEnum((int) UiModeType); + } + if (UiModeNight != global::Aapt.Pb.Configuration.Types.UiModeNight.Unset) { + output.WriteRawTag(136, 1); + output.WriteEnum((int) UiModeNight); + } + if (Density != 0) { + output.WriteRawTag(144, 1); + output.WriteUInt32(Density); + } + if (Touchscreen != global::Aapt.Pb.Configuration.Types.Touchscreen.Unset) { + output.WriteRawTag(152, 1); + output.WriteEnum((int) Touchscreen); + } + if (KeysHidden != global::Aapt.Pb.Configuration.Types.KeysHidden.Unset) { + output.WriteRawTag(160, 1); + output.WriteEnum((int) KeysHidden); + } + if (Keyboard != global::Aapt.Pb.Configuration.Types.Keyboard.Unset) { + output.WriteRawTag(168, 1); + output.WriteEnum((int) Keyboard); + } + if (NavHidden != global::Aapt.Pb.Configuration.Types.NavHidden.Unset) { + output.WriteRawTag(176, 1); + output.WriteEnum((int) NavHidden); + } + if (Navigation != global::Aapt.Pb.Configuration.Types.Navigation.Unset) { + output.WriteRawTag(184, 1); + output.WriteEnum((int) Navigation); + } + if (SdkVersion != 0) { + output.WriteRawTag(192, 1); + output.WriteUInt32(SdkVersion); + } + if (Product.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(Product); + } + if (GrammaticalGender != global::Aapt.Pb.Configuration.Types.GrammaticalGender.GramGenderUset) { + output.WriteRawTag(208, 1); + output.WriteEnum((int) GrammaticalGender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Mcc != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Mcc); + } + if (Mnc != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Mnc); + } + if (Locale.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Locale); + } + if (LayoutDirection != global::Aapt.Pb.Configuration.Types.LayoutDirection.Unset) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LayoutDirection); + } + if (ScreenWidth != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScreenWidth); + } + if (ScreenHeight != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScreenHeight); + } + if (ScreenWidthDp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScreenWidthDp); + } + if (ScreenHeightDp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScreenHeightDp); + } + if (SmallestScreenWidthDp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SmallestScreenWidthDp); + } + if (ScreenLayoutSize != global::Aapt.Pb.Configuration.Types.ScreenLayoutSize.Unset) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ScreenLayoutSize); + } + if (ScreenLayoutLong != global::Aapt.Pb.Configuration.Types.ScreenLayoutLong.Unset) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ScreenLayoutLong); + } + if (ScreenRound != global::Aapt.Pb.Configuration.Types.ScreenRound.Unset) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ScreenRound); + } + if (WideColorGamut != global::Aapt.Pb.Configuration.Types.WideColorGamut.Unset) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WideColorGamut); + } + if (Hdr != global::Aapt.Pb.Configuration.Types.Hdr.Unset) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Hdr); + } + if (Orientation != global::Aapt.Pb.Configuration.Types.Orientation.Unset) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Orientation); + } + if (UiModeType != global::Aapt.Pb.Configuration.Types.UiModeType.Unset) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) UiModeType); + } + if (UiModeNight != global::Aapt.Pb.Configuration.Types.UiModeNight.Unset) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) UiModeNight); + } + if (Density != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(Density); + } + if (Touchscreen != global::Aapt.Pb.Configuration.Types.Touchscreen.Unset) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Touchscreen); + } + if (KeysHidden != global::Aapt.Pb.Configuration.Types.KeysHidden.Unset) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) KeysHidden); + } + if (Keyboard != global::Aapt.Pb.Configuration.Types.Keyboard.Unset) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Keyboard); + } + if (NavHidden != global::Aapt.Pb.Configuration.Types.NavHidden.Unset) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) NavHidden); + } + if (Navigation != global::Aapt.Pb.Configuration.Types.Navigation.Unset) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Navigation); + } + if (SdkVersion != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(SdkVersion); + } + if (GrammaticalGender != global::Aapt.Pb.Configuration.Types.GrammaticalGender.GramGenderUset) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) GrammaticalGender); + } + if (Product.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Product); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Configuration other) { + if (other == null) { + return; + } + if (other.Mcc != 0) { + Mcc = other.Mcc; + } + if (other.Mnc != 0) { + Mnc = other.Mnc; + } + if (other.Locale.Length != 0) { + Locale = other.Locale; + } + if (other.LayoutDirection != global::Aapt.Pb.Configuration.Types.LayoutDirection.Unset) { + LayoutDirection = other.LayoutDirection; + } + if (other.ScreenWidth != 0) { + ScreenWidth = other.ScreenWidth; + } + if (other.ScreenHeight != 0) { + ScreenHeight = other.ScreenHeight; + } + if (other.ScreenWidthDp != 0) { + ScreenWidthDp = other.ScreenWidthDp; + } + if (other.ScreenHeightDp != 0) { + ScreenHeightDp = other.ScreenHeightDp; + } + if (other.SmallestScreenWidthDp != 0) { + SmallestScreenWidthDp = other.SmallestScreenWidthDp; + } + if (other.ScreenLayoutSize != global::Aapt.Pb.Configuration.Types.ScreenLayoutSize.Unset) { + ScreenLayoutSize = other.ScreenLayoutSize; + } + if (other.ScreenLayoutLong != global::Aapt.Pb.Configuration.Types.ScreenLayoutLong.Unset) { + ScreenLayoutLong = other.ScreenLayoutLong; + } + if (other.ScreenRound != global::Aapt.Pb.Configuration.Types.ScreenRound.Unset) { + ScreenRound = other.ScreenRound; + } + if (other.WideColorGamut != global::Aapt.Pb.Configuration.Types.WideColorGamut.Unset) { + WideColorGamut = other.WideColorGamut; + } + if (other.Hdr != global::Aapt.Pb.Configuration.Types.Hdr.Unset) { + Hdr = other.Hdr; + } + if (other.Orientation != global::Aapt.Pb.Configuration.Types.Orientation.Unset) { + Orientation = other.Orientation; + } + if (other.UiModeType != global::Aapt.Pb.Configuration.Types.UiModeType.Unset) { + UiModeType = other.UiModeType; + } + if (other.UiModeNight != global::Aapt.Pb.Configuration.Types.UiModeNight.Unset) { + UiModeNight = other.UiModeNight; + } + if (other.Density != 0) { + Density = other.Density; + } + if (other.Touchscreen != global::Aapt.Pb.Configuration.Types.Touchscreen.Unset) { + Touchscreen = other.Touchscreen; + } + if (other.KeysHidden != global::Aapt.Pb.Configuration.Types.KeysHidden.Unset) { + KeysHidden = other.KeysHidden; + } + if (other.Keyboard != global::Aapt.Pb.Configuration.Types.Keyboard.Unset) { + Keyboard = other.Keyboard; + } + if (other.NavHidden != global::Aapt.Pb.Configuration.Types.NavHidden.Unset) { + NavHidden = other.NavHidden; + } + if (other.Navigation != global::Aapt.Pb.Configuration.Types.Navigation.Unset) { + Navigation = other.Navigation; + } + if (other.SdkVersion != 0) { + SdkVersion = other.SdkVersion; + } + if (other.GrammaticalGender != global::Aapt.Pb.Configuration.Types.GrammaticalGender.GramGenderUset) { + GrammaticalGender = other.GrammaticalGender; + } + if (other.Product.Length != 0) { + Product = other.Product; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Mcc = input.ReadUInt32(); + break; + } + case 16: { + Mnc = input.ReadUInt32(); + break; + } + case 26: { + Locale = input.ReadString(); + break; + } + case 32: { + LayoutDirection = (global::Aapt.Pb.Configuration.Types.LayoutDirection) input.ReadEnum(); + break; + } + case 40: { + ScreenWidth = input.ReadUInt32(); + break; + } + case 48: { + ScreenHeight = input.ReadUInt32(); + break; + } + case 56: { + ScreenWidthDp = input.ReadUInt32(); + break; + } + case 64: { + ScreenHeightDp = input.ReadUInt32(); + break; + } + case 72: { + SmallestScreenWidthDp = input.ReadUInt32(); + break; + } + case 80: { + ScreenLayoutSize = (global::Aapt.Pb.Configuration.Types.ScreenLayoutSize) input.ReadEnum(); + break; + } + case 88: { + ScreenLayoutLong = (global::Aapt.Pb.Configuration.Types.ScreenLayoutLong) input.ReadEnum(); + break; + } + case 96: { + ScreenRound = (global::Aapt.Pb.Configuration.Types.ScreenRound) input.ReadEnum(); + break; + } + case 104: { + WideColorGamut = (global::Aapt.Pb.Configuration.Types.WideColorGamut) input.ReadEnum(); + break; + } + case 112: { + Hdr = (global::Aapt.Pb.Configuration.Types.Hdr) input.ReadEnum(); + break; + } + case 120: { + Orientation = (global::Aapt.Pb.Configuration.Types.Orientation) input.ReadEnum(); + break; + } + case 128: { + UiModeType = (global::Aapt.Pb.Configuration.Types.UiModeType) input.ReadEnum(); + break; + } + case 136: { + UiModeNight = (global::Aapt.Pb.Configuration.Types.UiModeNight) input.ReadEnum(); + break; + } + case 144: { + Density = input.ReadUInt32(); + break; + } + case 152: { + Touchscreen = (global::Aapt.Pb.Configuration.Types.Touchscreen) input.ReadEnum(); + break; + } + case 160: { + KeysHidden = (global::Aapt.Pb.Configuration.Types.KeysHidden) input.ReadEnum(); + break; + } + case 168: { + Keyboard = (global::Aapt.Pb.Configuration.Types.Keyboard) input.ReadEnum(); + break; + } + case 176: { + NavHidden = (global::Aapt.Pb.Configuration.Types.NavHidden) input.ReadEnum(); + break; + } + case 184: { + Navigation = (global::Aapt.Pb.Configuration.Types.Navigation) input.ReadEnum(); + break; + } + case 192: { + SdkVersion = input.ReadUInt32(); + break; + } + case 202: { + Product = input.ReadString(); + break; + } + case 208: { + GrammaticalGender = (global::Aapt.Pb.Configuration.Types.GrammaticalGender) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Mcc = input.ReadUInt32(); + break; + } + case 16: { + Mnc = input.ReadUInt32(); + break; + } + case 26: { + Locale = input.ReadString(); + break; + } + case 32: { + LayoutDirection = (global::Aapt.Pb.Configuration.Types.LayoutDirection) input.ReadEnum(); + break; + } + case 40: { + ScreenWidth = input.ReadUInt32(); + break; + } + case 48: { + ScreenHeight = input.ReadUInt32(); + break; + } + case 56: { + ScreenWidthDp = input.ReadUInt32(); + break; + } + case 64: { + ScreenHeightDp = input.ReadUInt32(); + break; + } + case 72: { + SmallestScreenWidthDp = input.ReadUInt32(); + break; + } + case 80: { + ScreenLayoutSize = (global::Aapt.Pb.Configuration.Types.ScreenLayoutSize) input.ReadEnum(); + break; + } + case 88: { + ScreenLayoutLong = (global::Aapt.Pb.Configuration.Types.ScreenLayoutLong) input.ReadEnum(); + break; + } + case 96: { + ScreenRound = (global::Aapt.Pb.Configuration.Types.ScreenRound) input.ReadEnum(); + break; + } + case 104: { + WideColorGamut = (global::Aapt.Pb.Configuration.Types.WideColorGamut) input.ReadEnum(); + break; + } + case 112: { + Hdr = (global::Aapt.Pb.Configuration.Types.Hdr) input.ReadEnum(); + break; + } + case 120: { + Orientation = (global::Aapt.Pb.Configuration.Types.Orientation) input.ReadEnum(); + break; + } + case 128: { + UiModeType = (global::Aapt.Pb.Configuration.Types.UiModeType) input.ReadEnum(); + break; + } + case 136: { + UiModeNight = (global::Aapt.Pb.Configuration.Types.UiModeNight) input.ReadEnum(); + break; + } + case 144: { + Density = input.ReadUInt32(); + break; + } + case 152: { + Touchscreen = (global::Aapt.Pb.Configuration.Types.Touchscreen) input.ReadEnum(); + break; + } + case 160: { + KeysHidden = (global::Aapt.Pb.Configuration.Types.KeysHidden) input.ReadEnum(); + break; + } + case 168: { + Keyboard = (global::Aapt.Pb.Configuration.Types.Keyboard) input.ReadEnum(); + break; + } + case 176: { + NavHidden = (global::Aapt.Pb.Configuration.Types.NavHidden) input.ReadEnum(); + break; + } + case 184: { + Navigation = (global::Aapt.Pb.Configuration.Types.Navigation) input.ReadEnum(); + break; + } + case 192: { + SdkVersion = input.ReadUInt32(); + break; + } + case 202: { + Product = input.ReadString(); + break; + } + case 208: { + GrammaticalGender = (global::Aapt.Pb.Configuration.Types.GrammaticalGender) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Configuration message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum LayoutDirection { + [pbr::OriginalName("LAYOUT_DIRECTION_UNSET")] Unset = 0, + [pbr::OriginalName("LAYOUT_DIRECTION_LTR")] Ltr = 1, + [pbr::OriginalName("LAYOUT_DIRECTION_RTL")] Rtl = 2, + } + + public enum ScreenLayoutSize { + [pbr::OriginalName("SCREEN_LAYOUT_SIZE_UNSET")] Unset = 0, + [pbr::OriginalName("SCREEN_LAYOUT_SIZE_SMALL")] Small = 1, + [pbr::OriginalName("SCREEN_LAYOUT_SIZE_NORMAL")] Normal = 2, + [pbr::OriginalName("SCREEN_LAYOUT_SIZE_LARGE")] Large = 3, + [pbr::OriginalName("SCREEN_LAYOUT_SIZE_XLARGE")] Xlarge = 4, + } + + public enum ScreenLayoutLong { + [pbr::OriginalName("SCREEN_LAYOUT_LONG_UNSET")] Unset = 0, + [pbr::OriginalName("SCREEN_LAYOUT_LONG_LONG")] Long = 1, + [pbr::OriginalName("SCREEN_LAYOUT_LONG_NOTLONG")] Notlong = 2, + } + + public enum ScreenRound { + [pbr::OriginalName("SCREEN_ROUND_UNSET")] Unset = 0, + [pbr::OriginalName("SCREEN_ROUND_ROUND")] Round = 1, + [pbr::OriginalName("SCREEN_ROUND_NOTROUND")] Notround = 2, + } + + public enum WideColorGamut { + [pbr::OriginalName("WIDE_COLOR_GAMUT_UNSET")] Unset = 0, + [pbr::OriginalName("WIDE_COLOR_GAMUT_WIDECG")] Widecg = 1, + [pbr::OriginalName("WIDE_COLOR_GAMUT_NOWIDECG")] Nowidecg = 2, + } + + public enum Hdr { + [pbr::OriginalName("HDR_UNSET")] Unset = 0, + [pbr::OriginalName("HDR_HIGHDR")] Highdr = 1, + [pbr::OriginalName("HDR_LOWDR")] Lowdr = 2, + } + + public enum Orientation { + [pbr::OriginalName("ORIENTATION_UNSET")] Unset = 0, + [pbr::OriginalName("ORIENTATION_PORT")] Port = 1, + [pbr::OriginalName("ORIENTATION_LAND")] Land = 2, + [pbr::OriginalName("ORIENTATION_SQUARE")] Square = 3, + } + + public enum UiModeType { + [pbr::OriginalName("UI_MODE_TYPE_UNSET")] Unset = 0, + [pbr::OriginalName("UI_MODE_TYPE_NORMAL")] Normal = 1, + [pbr::OriginalName("UI_MODE_TYPE_DESK")] Desk = 2, + [pbr::OriginalName("UI_MODE_TYPE_CAR")] Car = 3, + [pbr::OriginalName("UI_MODE_TYPE_TELEVISION")] Television = 4, + [pbr::OriginalName("UI_MODE_TYPE_APPLIANCE")] Appliance = 5, + [pbr::OriginalName("UI_MODE_TYPE_WATCH")] Watch = 6, + [pbr::OriginalName("UI_MODE_TYPE_VRHEADSET")] Vrheadset = 7, + } + + public enum UiModeNight { + [pbr::OriginalName("UI_MODE_NIGHT_UNSET")] Unset = 0, + [pbr::OriginalName("UI_MODE_NIGHT_NIGHT")] Night = 1, + [pbr::OriginalName("UI_MODE_NIGHT_NOTNIGHT")] Notnight = 2, + } + + public enum Touchscreen { + [pbr::OriginalName("TOUCHSCREEN_UNSET")] Unset = 0, + [pbr::OriginalName("TOUCHSCREEN_NOTOUCH")] Notouch = 1, + [pbr::OriginalName("TOUCHSCREEN_STYLUS")] Stylus = 2, + [pbr::OriginalName("TOUCHSCREEN_FINGER")] Finger = 3, + } + + public enum KeysHidden { + [pbr::OriginalName("KEYS_HIDDEN_UNSET")] Unset = 0, + [pbr::OriginalName("KEYS_HIDDEN_KEYSEXPOSED")] Keysexposed = 1, + [pbr::OriginalName("KEYS_HIDDEN_KEYSHIDDEN")] Keyshidden = 2, + [pbr::OriginalName("KEYS_HIDDEN_KEYSSOFT")] Keyssoft = 3, + } + + public enum Keyboard { + [pbr::OriginalName("KEYBOARD_UNSET")] Unset = 0, + [pbr::OriginalName("KEYBOARD_NOKEYS")] Nokeys = 1, + [pbr::OriginalName("KEYBOARD_QWERTY")] Qwerty = 2, + [pbr::OriginalName("KEYBOARD_TWELVEKEY")] Twelvekey = 3, + } + + public enum NavHidden { + [pbr::OriginalName("NAV_HIDDEN_UNSET")] Unset = 0, + [pbr::OriginalName("NAV_HIDDEN_NAVEXPOSED")] Navexposed = 1, + [pbr::OriginalName("NAV_HIDDEN_NAVHIDDEN")] Navhidden = 2, + } + + public enum Navigation { + [pbr::OriginalName("NAVIGATION_UNSET")] Unset = 0, + [pbr::OriginalName("NAVIGATION_NONAV")] Nonav = 1, + [pbr::OriginalName("NAVIGATION_DPAD")] Dpad = 2, + [pbr::OriginalName("NAVIGATION_TRACKBALL")] Trackball = 3, + [pbr::OriginalName("NAVIGATION_WHEEL")] Wheel = 4, + } + + public enum GrammaticalGender { + [pbr::OriginalName("GRAM_GENDER_USET")] GramGenderUset = 0, + [pbr::OriginalName("GRAM_GENDER_NEUTER")] GramGenderNeuter = 1, + [pbr::OriginalName("GRAM_GENDER_FEMININE")] GramGenderFeminine = 2, + [pbr::OriginalName("GRAM_GENDER_MASCULINE")] GramGenderMasculine = 3, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/tools/apput/src/Android/Aapt.Pb.Files.README.md b/tools/apput/src/Android/Aapt.Pb.Files.README.md new file mode 100644 index 00000000000..b05523d88c3 --- /dev/null +++ b/tools/apput/src/Android/Aapt.Pb.Files.README.md @@ -0,0 +1,2 @@ +Aapt.Pb.Resources.cs generated from https://android.googlesource.com/platform/frameworks/base/+/54f29d4e33cc7ea12334ba8a6072a38f3f4d0ddb/tools/aapt2/Resources.proto +Aapt.Pb.Configuration.cs generated from https://android.googlesource.com/platform/frameworks/base/+/54f29d4e33cc7ea12334ba8a6072a38f3f4d0ddb/tools/aapt2/Configuration.proto diff --git a/tools/apput/src/Android/Aapt.Pb.Resources.cs b/tools/apput/src/Android/Aapt.Pb.Resources.cs new file mode 100644 index 00000000000..3cbe8a054c3 --- /dev/null +++ b/tools/apput/src/Android/Aapt.Pb.Resources.cs @@ -0,0 +1,15266 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Resources.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#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 Aapt.Pb { + + /// Holder for reflection information generated from Resources.proto + public static partial class ResourcesReflection { + + #region Descriptor + /// File descriptor for Resources.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ResourcesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9SZXNvdXJjZXMucHJvdG8SB2FhcHQucGIaL2ZyYW1ld29ya3MvYmFzZS90", + "b29scy9hYXB0Mi9Db25maWd1cmF0aW9uLnByb3RvIhoKClN0cmluZ1Bvb2wS", + "DAoEZGF0YRgBIAEoDCI8Cg5Tb3VyY2VQb3NpdGlvbhITCgtsaW5lX251bWJl", + "chgBIAEoDRIVCg1jb2x1bW5fbnVtYmVyGAIgASgNIkUKBlNvdXJjZRIQCghw", + "YXRoX2lkeBgBIAEoDRIpCghwb3NpdGlvbhgCIAEoCzIXLmFhcHQucGIuU291", + "cmNlUG9zaXRpb24iMAoPVG9vbEZpbmdlcnByaW50EgwKBHRvb2wYASABKAkS", + "DwoHdmVyc2lvbhgCIAEoCSJPCg9EeW5hbWljUmVmVGFibGUSJgoKcGFja2Fn", + "ZV9pZBgBIAEoCzISLmFhcHQucGIuUGFja2FnZUlkEhQKDHBhY2thZ2VfbmFt", + "ZRgCIAEoCSLwAQoNUmVzb3VyY2VUYWJsZRIoCgtzb3VyY2VfcG9vbBgBIAEo", + "CzITLmFhcHQucGIuU3RyaW5nUG9vbBIhCgdwYWNrYWdlGAIgAygLMhAuYWFw", + "dC5wYi5QYWNrYWdlEikKC292ZXJsYXlhYmxlGAMgAygLMhQuYWFwdC5wYi5P", + "dmVybGF5YWJsZRIyChB0b29sX2ZpbmdlcnByaW50GAQgAygLMhguYWFwdC5w", + "Yi5Ub29sRmluZ2VycHJpbnQSMwoRZHluYW1pY19yZWZfdGFibGUYBSADKAsy", + "GC5hYXB0LnBiLkR5bmFtaWNSZWZUYWJsZSIXCglQYWNrYWdlSWQSCgoCaWQY", + "ASABKA0iZAoHUGFja2FnZRImCgpwYWNrYWdlX2lkGAEgASgLMhIuYWFwdC5w", + "Yi5QYWNrYWdlSWQSFAoMcGFja2FnZV9uYW1lGAIgASgJEhsKBHR5cGUYAyAD", + "KAsyDS5hYXB0LnBiLlR5cGUiFAoGVHlwZUlkEgoKAmlkGAEgASgNIlUKBFR5", + "cGUSIAoHdHlwZV9pZBgBIAEoCzIPLmFhcHQucGIuVHlwZUlkEgwKBG5hbWUY", + "AiABKAkSHQoFZW50cnkYAyADKAsyDi5hYXB0LnBiLkVudHJ5IqsBCgpWaXNp", + "YmlsaXR5EigKBWxldmVsGAEgASgOMhkuYWFwdC5wYi5WaXNpYmlsaXR5Lkxl", + "dmVsEh8KBnNvdXJjZRgCIAEoCzIPLmFhcHQucGIuU291cmNlEg8KB2NvbW1l", + "bnQYAyABKAkSEgoKc3RhZ2VkX2FwaRgEIAEoCCItCgVMZXZlbBILCgdVTktO", + "T1dOEAASCwoHUFJJVkFURRABEgoKBlBVQkxJQxACIjwKCEFsbG93TmV3Eh8K", + "BnNvdXJjZRgBIAEoCzIPLmFhcHQucGIuU291cmNlEg8KB2NvbW1lbnQYAiAB", + "KAkiSwoLT3ZlcmxheWFibGUSDAoEbmFtZRgBIAEoCRIfCgZzb3VyY2UYAiAB", + "KAsyDy5hYXB0LnBiLlNvdXJjZRINCgVhY3RvchgDIAEoCSKVAgoPT3Zlcmxh", + "eWFibGVJdGVtEh8KBnNvdXJjZRgBIAEoCzIPLmFhcHQucGIuU291cmNlEg8K", + "B2NvbW1lbnQYAiABKAkSLwoGcG9saWN5GAMgAygOMh8uYWFwdC5wYi5PdmVy", + "bGF5YWJsZUl0ZW0uUG9saWN5EhcKD292ZXJsYXlhYmxlX2lkeBgEIAEoDSKF", + "AQoGUG9saWN5EggKBE5PTkUQABIKCgZQVUJMSUMQARIKCgZTWVNURU0QAhIK", + "CgZWRU5ET1IQAxILCgdQUk9EVUNUEAQSDQoJU0lHTkFUVVJFEAUSBwoDT0RN", + "EAYSBwoDT0VNEAcSCQoFQUNUT1IQCBIUChBDT05GSUdfU0lHTkFUVVJFEAki", + "PgoIU3RhZ2VkSWQSHwoGc291cmNlGAEgASgLMg8uYWFwdC5wYi5Tb3VyY2US", + "EQoJc3RhZ2VkX2lkGAIgASgNIhUKB0VudHJ5SWQSCgoCaWQYASABKA0iyAIK", + "BUVudHJ5EiIKCGVudHJ5X2lkGAEgASgLMhAuYWFwdC5wYi5FbnRyeUlkEgwK", + "BG5hbWUYAiABKAkSJwoKdmlzaWJpbGl0eRgDIAEoCzITLmFhcHQucGIuVmlz", + "aWJpbGl0eRIkCglhbGxvd19uZXcYBCABKAsyES5hYXB0LnBiLkFsbG93TmV3", + "EjIKEG92ZXJsYXlhYmxlX2l0ZW0YBSABKAsyGC5hYXB0LnBiLk92ZXJsYXlh", + "YmxlSXRlbRIqCgxjb25maWdfdmFsdWUYBiADKAsyFC5hYXB0LnBiLkNvbmZp", + "Z1ZhbHVlEiQKCXN0YWdlZF9pZBgHIAEoCzIRLmFhcHQucGIuU3RhZ2VkSWQS", + "OAoaZmxhZ19kaXNhYmxlZF9jb25maWdfdmFsdWUYCCADKAsyFC5hYXB0LnBi", + "LkNvbmZpZ1ZhbHVlIloKC0NvbmZpZ1ZhbHVlEiYKBmNvbmZpZxgBIAEoCzIW", + "LmFhcHQucGIuQ29uZmlndXJhdGlvbhIdCgV2YWx1ZRgCIAEoCzIOLmFhcHQu", + "cGIuVmFsdWVKBAgDEAQioQEKBVZhbHVlEh8KBnNvdXJjZRgBIAEoCzIPLmFh", + "cHQucGIuU291cmNlEg8KB2NvbW1lbnQYAiABKAkSDAoEd2VhaxgDIAEoCBId", + "CgRpdGVtGAQgASgLMg0uYWFwdC5wYi5JdGVtSAASMAoOY29tcG91bmRfdmFs", + "dWUYBSABKAsyFi5hYXB0LnBiLkNvbXBvdW5kVmFsdWVIAEIHCgV2YWx1ZSLL", + "AgoESXRlbRIhCgNyZWYYASABKAsyEi5hYXB0LnBiLlJlZmVyZW5jZUgAEh4K", + "A3N0chgCIAEoCzIPLmFhcHQucGIuU3RyaW5nSAASJQoHcmF3X3N0chgDIAEo", + "CzISLmFhcHQucGIuUmF3U3RyaW5nSAASKwoKc3R5bGVkX3N0chgEIAEoCzIV", + "LmFhcHQucGIuU3R5bGVkU3RyaW5nSAASJgoEZmlsZRgFIAEoCzIWLmFhcHQu", + "cGIuRmlsZVJlZmVyZW5jZUgAEhkKAmlkGAYgASgLMgsuYWFwdC5wYi5JZEgA", + "EiIKBHByaW0YByABKAsyEi5hYXB0LnBiLlByaW1pdGl2ZUgAEhMKC2ZsYWdf", + "c3RhdHVzGAggASgNEhQKDGZsYWdfbmVnYXRlZBgJIAEoCBIRCglmbGFnX25h", + "bWUYCiABKAlCBwoFdmFsdWUirQIKDUNvbXBvdW5kVmFsdWUSIgoEYXR0chgB", + "IAEoCzISLmFhcHQucGIuQXR0cmlidXRlSAASHwoFc3R5bGUYAiABKAsyDi5h", + "YXB0LnBiLlN0eWxlSAASJwoJc3R5bGVhYmxlGAMgASgLMhIuYWFwdC5wYi5T", + "dHlsZWFibGVIABIfCgVhcnJheRgEIAEoCzIOLmFhcHQucGIuQXJyYXlIABIh", + "CgZwbHVyYWwYBSABKAsyDy5hYXB0LnBiLlBsdXJhbEgAEiMKBW1hY3JvGAYg", + "ASgLMhIuYWFwdC5wYi5NYWNyb0JvZHlIABITCgtmbGFnX3N0YXR1cxgHIAEo", + "DRIUCgxmbGFnX25lZ2F0ZWQYCCABKAgSEQoJZmxhZ19uYW1lGAkgASgJQgcK", + "BXZhbHVlIhgKB0Jvb2xlYW4SDQoFdmFsdWUYASABKAgi0AEKCVJlZmVyZW5j", + "ZRIlCgR0eXBlGAEgASgOMhcuYWFwdC5wYi5SZWZlcmVuY2UuVHlwZRIKCgJp", + "ZBgCIAEoDRIMCgRuYW1lGAMgASgJEg8KB3ByaXZhdGUYBCABKAgSJAoKaXNf", + "ZHluYW1pYxgFIAEoCzIQLmFhcHQucGIuQm9vbGVhbhISCgp0eXBlX2ZsYWdz", + "GAYgASgNEhEKCWFsbG93X3JhdxgHIAEoCCIkCgRUeXBlEg0KCVJFRkVSRU5D", + "RRAAEg0KCUFUVFJJQlVURRABIgQKAklkIhcKBlN0cmluZxINCgV2YWx1ZRgB", + "IAEoCSIaCglSYXdTdHJpbmcSDQoFdmFsdWUYASABKAkigwEKDFN0eWxlZFN0", + "cmluZxINCgV2YWx1ZRgBIAEoCRIoCgRzcGFuGAIgAygLMhouYWFwdC5wYi5T", + "dHlsZWRTdHJpbmcuU3Bhbho6CgRTcGFuEgsKA3RhZxgBIAEoCRISCgpmaXJz", + "dF9jaGFyGAIgASgNEhEKCWxhc3RfY2hhchgDIAEoDSKFAQoNRmlsZVJlZmVy", + "ZW5jZRIMCgRwYXRoGAEgASgJEikKBHR5cGUYAiABKA4yGy5hYXB0LnBiLkZp", + "bGVSZWZlcmVuY2UuVHlwZSI7CgRUeXBlEgsKB1VOS05PV04QABIHCgNQTkcQ", + "ARIOCgpCSU5BUllfWE1MEAISDQoJUFJPVE9fWE1MEAMigwQKCVByaW1pdGl2", + "ZRIxCgpudWxsX3ZhbHVlGAEgASgLMhsuYWFwdC5wYi5QcmltaXRpdmUuTnVs", + "bFR5cGVIABIzCgtlbXB0eV92YWx1ZRgCIAEoCzIcLmFhcHQucGIuUHJpbWl0", + "aXZlLkVtcHR5VHlwZUgAEhUKC2Zsb2F0X3ZhbHVlGAMgASgCSAASGQoPZGlt", + "ZW5zaW9uX3ZhbHVlGA0gASgNSAASGAoOZnJhY3Rpb25fdmFsdWUYDiABKA1I", + "ABIbChFpbnRfZGVjaW1hbF92YWx1ZRgGIAEoBUgAEh8KFWludF9oZXhhZGVj", + "aW1hbF92YWx1ZRgHIAEoDUgAEhcKDWJvb2xlYW5fdmFsdWUYCCABKAhIABIb", + "ChFjb2xvcl9hcmdiOF92YWx1ZRgJIAEoDUgAEhoKEGNvbG9yX3JnYjhfdmFs", + "dWUYCiABKA1IABIbChFjb2xvcl9hcmdiNF92YWx1ZRgLIAEoDUgAEhoKEGNv", + "bG9yX3JnYjRfdmFsdWUYDCABKA1IABIoChpkaW1lbnNpb25fdmFsdWVfZGVw", + "cmVjYXRlZBgEIAEoAkICGAFIABInChlmcmFjdGlvbl92YWx1ZV9kZXByZWNh", + "dGVkGAUgASgCQgIYAUgAGgoKCE51bGxUeXBlGgsKCUVtcHR5VHlwZUINCgtv", + "bmVvZl92YWx1ZSKQAwoJQXR0cmlidXRlEhQKDGZvcm1hdF9mbGFncxgBIAEo", + "DRIPCgdtaW5faW50GAIgASgFEg8KB21heF9pbnQYAyABKAUSKQoGc3ltYm9s", + "GAQgAygLMhkuYWFwdC5wYi5BdHRyaWJ1dGUuU3ltYm9sGnkKBlN5bWJvbBIf", + "CgZzb3VyY2UYASABKAsyDy5hYXB0LnBiLlNvdXJjZRIPCgdjb21tZW50GAIg", + "ASgJEiAKBG5hbWUYAyABKAsyEi5hYXB0LnBiLlJlZmVyZW5jZRINCgV2YWx1", + "ZRgEIAEoDRIMCgR0eXBlGAUgASgNIqQBCgtGb3JtYXRGbGFncxIICgROT05F", + "EAASCQoDQU5ZEP//AxINCglSRUZFUkVOQ0UQARIKCgZTVFJJTkcQAhILCgdJ", + "TlRFR0VSEAQSCwoHQk9PTEVBThAIEgkKBUNPTE9SEBASCQoFRkxPQVQQIBIN", + "CglESU1FTlNJT04QQBINCghGUkFDVElPThCAARIKCgRFTlVNEICABBILCgVG", + "TEFHUxCAgAgi8QEKBVN0eWxlEiIKBnBhcmVudBgBIAEoCzISLmFhcHQucGIu", + "UmVmZXJlbmNlEiYKDXBhcmVudF9zb3VyY2UYAiABKAsyDy5hYXB0LnBiLlNv", + "dXJjZRIjCgVlbnRyeRgDIAMoCzIULmFhcHQucGIuU3R5bGUuRW50cnkadwoF", + "RW50cnkSHwoGc291cmNlGAEgASgLMg8uYWFwdC5wYi5Tb3VyY2USDwoHY29t", + "bWVudBgCIAEoCRIfCgNrZXkYAyABKAsyEi5hYXB0LnBiLlJlZmVyZW5jZRIb", + "CgRpdGVtGAQgASgLMg0uYWFwdC5wYi5JdGVtIpEBCglTdHlsZWFibGUSJwoF", + "ZW50cnkYASADKAsyGC5hYXB0LnBiLlN0eWxlYWJsZS5FbnRyeRpbCgVFbnRy", + "eRIfCgZzb3VyY2UYASABKAsyDy5hYXB0LnBiLlNvdXJjZRIPCgdjb21tZW50", + "GAIgASgJEiAKBGF0dHIYAyABKAsyEi5hYXB0LnBiLlJlZmVyZW5jZSKKAQoF", + "QXJyYXkSJwoHZWxlbWVudBgBIAMoCzIWLmFhcHQucGIuQXJyYXkuRWxlbWVu", + "dBpYCgdFbGVtZW50Eh8KBnNvdXJjZRgBIAEoCzIPLmFhcHQucGIuU291cmNl", + "Eg8KB2NvbW1lbnQYAiABKAkSGwoEaXRlbRgDIAEoCzINLmFhcHQucGIuSXRl", + "bSLvAQoGUGx1cmFsEiQKBWVudHJ5GAEgAygLMhUuYWFwdC5wYi5QbHVyYWwu", + "RW50cnkafAoFRW50cnkSHwoGc291cmNlGAEgASgLMg8uYWFwdC5wYi5Tb3Vy", + "Y2USDwoHY29tbWVudBgCIAEoCRIkCgVhcml0eRgDIAEoDjIVLmFhcHQucGIu", + "UGx1cmFsLkFyaXR5EhsKBGl0ZW0YBCABKAsyDS5hYXB0LnBiLkl0ZW0iQQoF", + "QXJpdHkSCAoEWkVSTxAAEgcKA09ORRABEgcKA1RXTxACEgcKA0ZFVxADEggK", + "BE1BTlkQBBIJCgVPVEhFUhAFInIKB1htbE5vZGUSJgoHZWxlbWVudBgBIAEo", + "CzITLmFhcHQucGIuWG1sRWxlbWVudEgAEg4KBHRleHQYAiABKAlIABInCgZz", + "b3VyY2UYAyABKAsyFy5hYXB0LnBiLlNvdXJjZVBvc2l0aW9uQgYKBG5vZGUi", + "sgEKClhtbEVsZW1lbnQSNAoVbmFtZXNwYWNlX2RlY2xhcmF0aW9uGAEgAygL", + "MhUuYWFwdC5wYi5YbWxOYW1lc3BhY2USFQoNbmFtZXNwYWNlX3VyaRgCIAEo", + "CRIMCgRuYW1lGAMgASgJEigKCWF0dHJpYnV0ZRgEIAMoCzIVLmFhcHQucGIu", + "WG1sQXR0cmlidXRlEh8KBWNoaWxkGAUgAygLMhAuYWFwdC5wYi5YbWxOb2Rl", + "IlQKDFhtbE5hbWVzcGFjZRIOCgZwcmVmaXgYASABKAkSCwoDdXJpGAIgASgJ", + "EicKBnNvdXJjZRgDIAEoCzIXLmFhcHQucGIuU291cmNlUG9zaXRpb24ipgEK", + "DFhtbEF0dHJpYnV0ZRIVCg1uYW1lc3BhY2VfdXJpGAEgASgJEgwKBG5hbWUY", + "AiABKAkSDQoFdmFsdWUYAyABKAkSJwoGc291cmNlGAQgASgLMhcuYWFwdC5w", + "Yi5Tb3VyY2VQb3NpdGlvbhITCgtyZXNvdXJjZV9pZBgFIAEoDRIkCg1jb21w", + "aWxlZF9pdGVtGAYgASgLMg0uYWFwdC5wYi5JdGVtIucBCglNYWNyb0JvZHkS", + "EgoKcmF3X3N0cmluZxgBIAEoCRIqCgxzdHlsZV9zdHJpbmcYAiABKAsyFC5h", + "YXB0LnBiLlN0eWxlU3RyaW5nEj8KF3VudHJhbnNsYXRhYmxlX3NlY3Rpb25z", + "GAMgAygLMh4uYWFwdC5wYi5VbnRyYW5zbGF0YWJsZVNlY3Rpb24SMAoPbmFt", + "ZXNwYWNlX3N0YWNrGAQgAygLMhcuYWFwdC5wYi5OYW1lc3BhY2VBbGlhcxIn", + "CgZzb3VyY2UYBSABKAsyFy5hYXB0LnBiLlNvdXJjZVBvc2l0aW9uIkoKDk5h", + "bWVzcGFjZUFsaWFzEg4KBnByZWZpeBgBIAEoCRIUCgxwYWNrYWdlX25hbWUY", + "AiABKAkSEgoKaXNfcHJpdmF0ZRgDIAEoCCKCAQoLU3R5bGVTdHJpbmcSCwoD", + "c3RyGAEgASgJEigKBXNwYW5zGAIgAygLMhkuYWFwdC5wYi5TdHlsZVN0cmlu", + "Zy5TcGFuGjwKBFNwYW4SDAoEbmFtZRgBIAEoCRITCgtzdGFydF9pbmRleBgC", + "IAEoDRIRCgllbmRfaW5kZXgYAyABKA0iPwoVVW50cmFuc2xhdGFibGVTZWN0", + "aW9uEhMKC3N0YXJ0X2luZGV4GAEgASgEEhEKCWVuZF9pbmRleBgCIAEoBEIS", + "ChBjb20uYW5kcm9pZC5hYXB0YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Aapt.Pb.ConfigurationReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.StringPool), global::Aapt.Pb.StringPool.Parser, new[]{ "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.SourcePosition), global::Aapt.Pb.SourcePosition.Parser, new[]{ "LineNumber", "ColumnNumber" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Source), global::Aapt.Pb.Source.Parser, new[]{ "PathIdx", "Position" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.ToolFingerprint), global::Aapt.Pb.ToolFingerprint.Parser, new[]{ "Tool", "Version" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.DynamicRefTable), global::Aapt.Pb.DynamicRefTable.Parser, new[]{ "PackageId", "PackageName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.ResourceTable), global::Aapt.Pb.ResourceTable.Parser, new[]{ "SourcePool", "Package", "Overlayable", "ToolFingerprint", "DynamicRefTable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.PackageId), global::Aapt.Pb.PackageId.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Package), global::Aapt.Pb.Package.Parser, new[]{ "PackageId", "PackageName", "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.TypeId), global::Aapt.Pb.TypeId.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Type), global::Aapt.Pb.Type.Parser, new[]{ "TypeId", "Name", "Entry" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Visibility), global::Aapt.Pb.Visibility.Parser, new[]{ "Level", "Source", "Comment", "StagedApi" }, null, new[]{ typeof(global::Aapt.Pb.Visibility.Types.Level) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.AllowNew), global::Aapt.Pb.AllowNew.Parser, new[]{ "Source", "Comment" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Overlayable), global::Aapt.Pb.Overlayable.Parser, new[]{ "Name", "Source", "Actor" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.OverlayableItem), global::Aapt.Pb.OverlayableItem.Parser, new[]{ "Source", "Comment", "Policy", "OverlayableIdx" }, null, new[]{ typeof(global::Aapt.Pb.OverlayableItem.Types.Policy) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.StagedId), global::Aapt.Pb.StagedId.Parser, new[]{ "Source", "StagedId_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.EntryId), global::Aapt.Pb.EntryId.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Entry), global::Aapt.Pb.Entry.Parser, new[]{ "EntryId", "Name", "Visibility", "AllowNew", "OverlayableItem", "ConfigValue", "StagedId", "FlagDisabledConfigValue" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.ConfigValue), global::Aapt.Pb.ConfigValue.Parser, new[]{ "Config", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Value), global::Aapt.Pb.Value.Parser, new[]{ "Source", "Comment", "Weak", "Item", "CompoundValue" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Item), global::Aapt.Pb.Item.Parser, new[]{ "Ref", "Str", "RawStr", "StyledStr", "File", "Id", "Prim", "FlagStatus", "FlagNegated", "FlagName" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.CompoundValue), global::Aapt.Pb.CompoundValue.Parser, new[]{ "Attr", "Style", "Styleable", "Array", "Plural", "Macro", "FlagStatus", "FlagNegated", "FlagName" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Boolean), global::Aapt.Pb.Boolean.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Reference), global::Aapt.Pb.Reference.Parser, new[]{ "Type", "Id", "Name", "Private", "IsDynamic", "TypeFlags", "AllowRaw" }, null, new[]{ typeof(global::Aapt.Pb.Reference.Types.Type) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Id), global::Aapt.Pb.Id.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.String), global::Aapt.Pb.String.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.RawString), global::Aapt.Pb.RawString.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.StyledString), global::Aapt.Pb.StyledString.Parser, new[]{ "Value", "Span" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.StyledString.Types.Span), global::Aapt.Pb.StyledString.Types.Span.Parser, new[]{ "Tag", "FirstChar", "LastChar" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.FileReference), global::Aapt.Pb.FileReference.Parser, new[]{ "Path", "Type" }, null, new[]{ typeof(global::Aapt.Pb.FileReference.Types.Type) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Primitive), global::Aapt.Pb.Primitive.Parser, new[]{ "NullValue", "EmptyValue", "FloatValue", "DimensionValue", "FractionValue", "IntDecimalValue", "IntHexadecimalValue", "BooleanValue", "ColorArgb8Value", "ColorRgb8Value", "ColorArgb4Value", "ColorRgb4Value", "DimensionValueDeprecated", "FractionValueDeprecated" }, new[]{ "OneofValue" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Primitive.Types.NullType), global::Aapt.Pb.Primitive.Types.NullType.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Primitive.Types.EmptyType), global::Aapt.Pb.Primitive.Types.EmptyType.Parser, null, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Attribute), global::Aapt.Pb.Attribute.Parser, new[]{ "FormatFlags", "MinInt", "MaxInt", "Symbol" }, null, new[]{ typeof(global::Aapt.Pb.Attribute.Types.FormatFlags) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Attribute.Types.Symbol), global::Aapt.Pb.Attribute.Types.Symbol.Parser, new[]{ "Source", "Comment", "Name", "Value", "Type" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Style), global::Aapt.Pb.Style.Parser, new[]{ "Parent", "ParentSource", "Entry" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Style.Types.Entry), global::Aapt.Pb.Style.Types.Entry.Parser, new[]{ "Source", "Comment", "Key", "Item" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Styleable), global::Aapt.Pb.Styleable.Parser, new[]{ "Entry" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Styleable.Types.Entry), global::Aapt.Pb.Styleable.Types.Entry.Parser, new[]{ "Source", "Comment", "Attr" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Array), global::Aapt.Pb.Array.Parser, new[]{ "Element" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Array.Types.Element), global::Aapt.Pb.Array.Types.Element.Parser, new[]{ "Source", "Comment", "Item" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Plural), global::Aapt.Pb.Plural.Parser, new[]{ "Entry" }, null, new[]{ typeof(global::Aapt.Pb.Plural.Types.Arity) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.Plural.Types.Entry), global::Aapt.Pb.Plural.Types.Entry.Parser, new[]{ "Source", "Comment", "Arity", "Item" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.XmlNode), global::Aapt.Pb.XmlNode.Parser, new[]{ "Element", "Text", "Source" }, new[]{ "Node" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.XmlElement), global::Aapt.Pb.XmlElement.Parser, new[]{ "NamespaceDeclaration", "NamespaceUri", "Name", "Attribute", "Child" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.XmlNamespace), global::Aapt.Pb.XmlNamespace.Parser, new[]{ "Prefix", "Uri", "Source" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.XmlAttribute), global::Aapt.Pb.XmlAttribute.Parser, new[]{ "NamespaceUri", "Name", "Value", "Source", "ResourceId", "CompiledItem" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.MacroBody), global::Aapt.Pb.MacroBody.Parser, new[]{ "RawString", "StyleString", "UntranslatableSections", "NamespaceStack", "Source" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.NamespaceAlias), global::Aapt.Pb.NamespaceAlias.Parser, new[]{ "Prefix", "PackageName", "IsPrivate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.StyleString), global::Aapt.Pb.StyleString.Parser, new[]{ "Str", "Spans" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.StyleString.Types.Span), global::Aapt.Pb.StyleString.Types.Span.Parser, new[]{ "Name", "StartIndex", "EndIndex" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Aapt.Pb.UntranslatableSection), global::Aapt.Pb.UntranslatableSection.Parser, new[]{ "StartIndex", "EndIndex" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A string pool that wraps the binary form of the C++ class android::ResStringPool. + /// + public sealed partial class StringPool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StringPool()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringPool() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringPool(StringPool other) : this() { + data_ = other.data_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringPool Clone() { + return new StringPool(this); + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 1; + private pb::ByteString data_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Data { + get { return data_; } + set { + data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StringPool); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StringPool other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Data != other.Data) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Data.Length != 0) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Data.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Data.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Data.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StringPool other) { + if (other == null) { + return; + } + if (other.Data.Length != 0) { + Data = other.Data; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Data = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Data = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + /// + /// The position of a declared entity within a file. + /// + public sealed partial class SourcePosition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SourcePosition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourcePosition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourcePosition(SourcePosition other) : this() { + lineNumber_ = other.lineNumber_; + columnNumber_ = other.columnNumber_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourcePosition Clone() { + return new SourcePosition(this); + } + + /// Field number for the "line_number" field. + public const int LineNumberFieldNumber = 1; + private uint lineNumber_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LineNumber { + get { return lineNumber_; } + set { + lineNumber_ = value; + } + } + + /// Field number for the "column_number" field. + public const int ColumnNumberFieldNumber = 2; + private uint columnNumber_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ColumnNumber { + get { return columnNumber_; } + set { + columnNumber_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SourcePosition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SourcePosition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LineNumber != other.LineNumber) return false; + if (ColumnNumber != other.ColumnNumber) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (LineNumber != 0) hash ^= LineNumber.GetHashCode(); + if (ColumnNumber != 0) hash ^= ColumnNumber.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (LineNumber != 0) { + output.WriteRawTag(8); + output.WriteUInt32(LineNumber); + } + if (ColumnNumber != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ColumnNumber); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (LineNumber != 0) { + output.WriteRawTag(8); + output.WriteUInt32(LineNumber); + } + if (ColumnNumber != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ColumnNumber); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (LineNumber != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LineNumber); + } + if (ColumnNumber != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ColumnNumber); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SourcePosition other) { + if (other == null) { + return; + } + if (other.LineNumber != 0) { + LineNumber = other.LineNumber; + } + if (other.ColumnNumber != 0) { + ColumnNumber = other.ColumnNumber; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LineNumber = input.ReadUInt32(); + break; + } + case 16: { + ColumnNumber = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + LineNumber = input.ReadUInt32(); + break; + } + case 16: { + ColumnNumber = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Developer friendly source file information for an entity in the resource table. + /// + public sealed partial class Source : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Source()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Source() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Source(Source other) : this() { + pathIdx_ = other.pathIdx_; + position_ = other.position_ != null ? other.position_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Source Clone() { + return new Source(this); + } + + /// Field number for the "path_idx" field. + public const int PathIdxFieldNumber = 1; + private uint pathIdx_; + /// + /// The index of the string path within the source string pool of a ResourceTable. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PathIdx { + get { return pathIdx_; } + set { + pathIdx_ = value; + } + } + + /// Field number for the "position" field. + public const int PositionFieldNumber = 2; + private global::Aapt.Pb.SourcePosition position_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.SourcePosition Position { + get { return position_; } + set { + position_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Source); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Source other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PathIdx != other.PathIdx) return false; + if (!object.Equals(Position, other.Position)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PathIdx != 0) hash ^= PathIdx.GetHashCode(); + if (position_ != null) hash ^= Position.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PathIdx != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PathIdx); + } + if (position_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Position); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PathIdx != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PathIdx); + } + if (position_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Position); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PathIdx != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PathIdx); + } + if (position_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Source other) { + if (other == null) { + return; + } + if (other.PathIdx != 0) { + PathIdx = other.PathIdx; + } + if (other.position_ != null) { + if (position_ == null) { + Position = new global::Aapt.Pb.SourcePosition(); + } + Position.MergeFrom(other.Position); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PathIdx = input.ReadUInt32(); + break; + } + case 18: { + if (position_ == null) { + Position = new global::Aapt.Pb.SourcePosition(); + } + input.ReadMessage(Position); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PathIdx = input.ReadUInt32(); + break; + } + case 18: { + if (position_ == null) { + Position = new global::Aapt.Pb.SourcePosition(); + } + input.ReadMessage(Position); + break; + } + } + } + } + #endif + + } + + /// + /// The name and version fingerprint of a build tool. + /// + public sealed partial class ToolFingerprint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ToolFingerprint()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ToolFingerprint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ToolFingerprint(ToolFingerprint other) : this() { + tool_ = other.tool_; + version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ToolFingerprint Clone() { + return new ToolFingerprint(this); + } + + /// Field number for the "tool" field. + public const int ToolFieldNumber = 1; + private string tool_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tool { + get { return tool_; } + set { + tool_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 2; + private string version_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ToolFingerprint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ToolFingerprint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Tool != other.Tool) return false; + if (Version != other.Version) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Tool.Length != 0) hash ^= Tool.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Tool.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Tool); + } + if (Version.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Tool.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Tool); + } + if (Version.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Tool.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Tool); + } + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ToolFingerprint other) { + if (other == null) { + return; + } + if (other.Tool.Length != 0) { + Tool = other.Tool; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Tool = input.ReadString(); + break; + } + case 18: { + Version = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Tool = input.ReadString(); + break; + } + case 18: { + Version = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// References to non local resources + /// + public sealed partial class DynamicRefTable : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicRefTable()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DynamicRefTable() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DynamicRefTable(DynamicRefTable other) : this() { + packageId_ = other.packageId_ != null ? other.packageId_.Clone() : null; + packageName_ = other.packageName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DynamicRefTable Clone() { + return new DynamicRefTable(this); + } + + /// Field number for the "package_id" field. + public const int PackageIdFieldNumber = 1; + private global::Aapt.Pb.PackageId packageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.PackageId PackageId { + get { return packageId_; } + set { + packageId_ = value; + } + } + + /// Field number for the "package_name" field. + public const int PackageNameFieldNumber = 2; + private string packageName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PackageName { + get { return packageName_; } + set { + packageName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DynamicRefTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DynamicRefTable other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(PackageId, other.PackageId)) return false; + if (PackageName != other.PackageName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (packageId_ != null) hash ^= PackageId.GetHashCode(); + if (PackageName.Length != 0) hash ^= PackageName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (packageId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(PackageId); + } + if (PackageName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PackageName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (packageId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(PackageId); + } + if (PackageName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PackageName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (packageId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PackageId); + } + if (PackageName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PackageName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DynamicRefTable other) { + if (other == null) { + return; + } + if (other.packageId_ != null) { + if (packageId_ == null) { + PackageId = new global::Aapt.Pb.PackageId(); + } + PackageId.MergeFrom(other.PackageId); + } + if (other.PackageName.Length != 0) { + PackageName = other.PackageName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (packageId_ == null) { + PackageId = new global::Aapt.Pb.PackageId(); + } + input.ReadMessage(PackageId); + break; + } + case 18: { + PackageName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (packageId_ == null) { + PackageId = new global::Aapt.Pb.PackageId(); + } + input.ReadMessage(PackageId); + break; + } + case 18: { + PackageName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Top level message representing a resource table. + /// + public sealed partial class ResourceTable : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceTable()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTable() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTable(ResourceTable other) : this() { + sourcePool_ = other.sourcePool_ != null ? other.sourcePool_.Clone() : null; + package_ = other.package_.Clone(); + overlayable_ = other.overlayable_.Clone(); + toolFingerprint_ = other.toolFingerprint_.Clone(); + dynamicRefTable_ = other.dynamicRefTable_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceTable Clone() { + return new ResourceTable(this); + } + + /// Field number for the "source_pool" field. + public const int SourcePoolFieldNumber = 1; + private global::Aapt.Pb.StringPool sourcePool_; + /// + /// The string pool containing source paths referenced throughout the resource table. This does + /// not end up in the final binary ARSC file. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.StringPool SourcePool { + get { return sourcePool_; } + set { + sourcePool_ = value; + } + } + + /// Field number for the "package" field. + public const int PackageFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_package_codec + = pb::FieldCodec.ForMessage(18, global::Aapt.Pb.Package.Parser); + private readonly pbc::RepeatedField package_ = new pbc::RepeatedField(); + /// + /// Resource definitions corresponding to an Android package. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Package { + get { return package_; } + } + + /// Field number for the "overlayable" field. + public const int OverlayableFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_overlayable_codec + = pb::FieldCodec.ForMessage(26, global::Aapt.Pb.Overlayable.Parser); + private readonly pbc::RepeatedField overlayable_ = new pbc::RepeatedField(); + /// + /// The <overlayable> declarations within the resource table. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Overlayable { + get { return overlayable_; } + } + + /// Field number for the "tool_fingerprint" field. + public const int ToolFingerprintFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_toolFingerprint_codec + = pb::FieldCodec.ForMessage(34, global::Aapt.Pb.ToolFingerprint.Parser); + private readonly pbc::RepeatedField toolFingerprint_ = new pbc::RepeatedField(); + /// + /// The version fingerprints of the tools that built the resource table. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ToolFingerprint { + get { return toolFingerprint_; } + } + + /// Field number for the "dynamic_ref_table" field. + public const int DynamicRefTableFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_dynamicRefTable_codec + = pb::FieldCodec.ForMessage(42, global::Aapt.Pb.DynamicRefTable.Parser); + private readonly pbc::RepeatedField dynamicRefTable_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DynamicRefTable { + get { return dynamicRefTable_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResourceTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceTable other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SourcePool, other.SourcePool)) return false; + if(!package_.Equals(other.package_)) return false; + if(!overlayable_.Equals(other.overlayable_)) return false; + if(!toolFingerprint_.Equals(other.toolFingerprint_)) return false; + if(!dynamicRefTable_.Equals(other.dynamicRefTable_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sourcePool_ != null) hash ^= SourcePool.GetHashCode(); + hash ^= package_.GetHashCode(); + hash ^= overlayable_.GetHashCode(); + hash ^= toolFingerprint_.GetHashCode(); + hash ^= dynamicRefTable_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sourcePool_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SourcePool); + } + package_.WriteTo(output, _repeated_package_codec); + overlayable_.WriteTo(output, _repeated_overlayable_codec); + toolFingerprint_.WriteTo(output, _repeated_toolFingerprint_codec); + dynamicRefTable_.WriteTo(output, _repeated_dynamicRefTable_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sourcePool_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SourcePool); + } + package_.WriteTo(ref output, _repeated_package_codec); + overlayable_.WriteTo(ref output, _repeated_overlayable_codec); + toolFingerprint_.WriteTo(ref output, _repeated_toolFingerprint_codec); + dynamicRefTable_.WriteTo(ref output, _repeated_dynamicRefTable_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sourcePool_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourcePool); + } + size += package_.CalculateSize(_repeated_package_codec); + size += overlayable_.CalculateSize(_repeated_overlayable_codec); + size += toolFingerprint_.CalculateSize(_repeated_toolFingerprint_codec); + size += dynamicRefTable_.CalculateSize(_repeated_dynamicRefTable_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResourceTable other) { + if (other == null) { + return; + } + if (other.sourcePool_ != null) { + if (sourcePool_ == null) { + SourcePool = new global::Aapt.Pb.StringPool(); + } + SourcePool.MergeFrom(other.SourcePool); + } + package_.Add(other.package_); + overlayable_.Add(other.overlayable_); + toolFingerprint_.Add(other.toolFingerprint_); + dynamicRefTable_.Add(other.dynamicRefTable_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (sourcePool_ == null) { + SourcePool = new global::Aapt.Pb.StringPool(); + } + input.ReadMessage(SourcePool); + break; + } + case 18: { + package_.AddEntriesFrom(input, _repeated_package_codec); + break; + } + case 26: { + overlayable_.AddEntriesFrom(input, _repeated_overlayable_codec); + break; + } + case 34: { + toolFingerprint_.AddEntriesFrom(input, _repeated_toolFingerprint_codec); + break; + } + case 42: { + dynamicRefTable_.AddEntriesFrom(input, _repeated_dynamicRefTable_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (sourcePool_ == null) { + SourcePool = new global::Aapt.Pb.StringPool(); + } + input.ReadMessage(SourcePool); + break; + } + case 18: { + package_.AddEntriesFrom(ref input, _repeated_package_codec); + break; + } + case 26: { + overlayable_.AddEntriesFrom(ref input, _repeated_overlayable_codec); + break; + } + case 34: { + toolFingerprint_.AddEntriesFrom(ref input, _repeated_toolFingerprint_codec); + break; + } + case 42: { + dynamicRefTable_.AddEntriesFrom(ref input, _repeated_dynamicRefTable_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A package ID in the range [0x00, 0xff]. + /// + public sealed partial class PackageId : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PackageId()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PackageId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PackageId(PackageId other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PackageId Clone() { + return new PackageId(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PackageId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PackageId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PackageId other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Defines resources for an Android package. + /// + public sealed partial class Package : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Package()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Package() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Package(Package other) : this() { + packageId_ = other.packageId_ != null ? other.packageId_.Clone() : null; + packageName_ = other.packageName_; + type_ = other.type_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Package Clone() { + return new Package(this); + } + + /// Field number for the "package_id" field. + public const int PackageIdFieldNumber = 1; + private global::Aapt.Pb.PackageId packageId_; + /// + /// The package ID of this package, in the range [0x00, 0xff]. + /// - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time. + /// - ID 0x01 is reserved for the 'android' package (framework). + /// - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time. + /// - ID 0x7f is reserved for the application package. + /// - IDs > 0x7f are reserved for the application as well and are treated as feature splits. + /// This may not be set if no ID was assigned. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.PackageId PackageId { + get { return packageId_; } + set { + packageId_ = value; + } + } + + /// Field number for the "package_name" field. + public const int PackageNameFieldNumber = 2; + private string packageName_ = ""; + /// + /// The Java compatible Android package name of the app. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PackageName { + get { return packageName_; } + set { + packageName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_type_codec + = pb::FieldCodec.ForMessage(26, global::Aapt.Pb.Type.Parser); + private readonly pbc::RepeatedField type_ = new pbc::RepeatedField(); + /// + /// The series of types defined by the package. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Type { + get { return type_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Package); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Package other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(PackageId, other.PackageId)) return false; + if (PackageName != other.PackageName) return false; + if(!type_.Equals(other.type_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (packageId_ != null) hash ^= PackageId.GetHashCode(); + if (PackageName.Length != 0) hash ^= PackageName.GetHashCode(); + hash ^= type_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (packageId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(PackageId); + } + if (PackageName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PackageName); + } + type_.WriteTo(output, _repeated_type_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (packageId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(PackageId); + } + if (PackageName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PackageName); + } + type_.WriteTo(ref output, _repeated_type_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (packageId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PackageId); + } + if (PackageName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PackageName); + } + size += type_.CalculateSize(_repeated_type_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Package other) { + if (other == null) { + return; + } + if (other.packageId_ != null) { + if (packageId_ == null) { + PackageId = new global::Aapt.Pb.PackageId(); + } + PackageId.MergeFrom(other.PackageId); + } + if (other.PackageName.Length != 0) { + PackageName = other.PackageName; + } + type_.Add(other.type_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (packageId_ == null) { + PackageId = new global::Aapt.Pb.PackageId(); + } + input.ReadMessage(PackageId); + break; + } + case 18: { + PackageName = input.ReadString(); + break; + } + case 26: { + type_.AddEntriesFrom(input, _repeated_type_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (packageId_ == null) { + PackageId = new global::Aapt.Pb.PackageId(); + } + input.ReadMessage(PackageId); + break; + } + case 18: { + PackageName = input.ReadString(); + break; + } + case 26: { + type_.AddEntriesFrom(ref input, _repeated_type_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A type ID in the range [0x01, 0xff]. + /// + public sealed partial class TypeId : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TypeId()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TypeId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TypeId(TypeId other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TypeId Clone() { + return new TypeId(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TypeId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TypeId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TypeId other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// A set of resources grouped under a common type. Such types include string, layout, xml, dimen, + /// attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry). + /// + public sealed partial class Type : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Type()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Type() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Type(Type other) : this() { + typeId_ = other.typeId_ != null ? other.typeId_.Clone() : null; + name_ = other.name_; + entry_ = other.entry_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Type Clone() { + return new Type(this); + } + + /// Field number for the "type_id" field. + public const int TypeIdFieldNumber = 1; + private global::Aapt.Pb.TypeId typeId_; + /// + /// The ID of the type. This may not be set if no ID was assigned. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.TypeId TypeId { + get { return typeId_; } + set { + typeId_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// The name of the type. This corresponds to the 'type' part of a full resource name of the form + /// package:type/entry. The set of legal type names is listed in Resource.cpp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "entry" field. + public const int EntryFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_entry_codec + = pb::FieldCodec.ForMessage(26, global::Aapt.Pb.Entry.Parser); + private readonly pbc::RepeatedField entry_ = new pbc::RepeatedField(); + /// + /// The entries defined for this type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Entry { + get { return entry_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Type); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Type other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TypeId, other.TypeId)) return false; + if (Name != other.Name) return false; + if(!entry_.Equals(other.entry_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (typeId_ != null) hash ^= TypeId.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= entry_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (typeId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TypeId); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + entry_.WriteTo(output, _repeated_entry_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (typeId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TypeId); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + entry_.WriteTo(ref output, _repeated_entry_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (typeId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeId); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += entry_.CalculateSize(_repeated_entry_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Type other) { + if (other == null) { + return; + } + if (other.typeId_ != null) { + if (typeId_ == null) { + TypeId = new global::Aapt.Pb.TypeId(); + } + TypeId.MergeFrom(other.TypeId); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + entry_.Add(other.entry_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (typeId_ == null) { + TypeId = new global::Aapt.Pb.TypeId(); + } + input.ReadMessage(TypeId); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + entry_.AddEntriesFrom(input, _repeated_entry_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (typeId_ == null) { + TypeId = new global::Aapt.Pb.TypeId(); + } + input.ReadMessage(TypeId); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + entry_.AddEntriesFrom(ref input, _repeated_entry_codec); + break; + } + } + } + } + #endif + + } + + /// + /// The Visibility of a symbol/entry (public, private, undefined). + /// + public sealed partial class Visibility : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Visibility()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Visibility() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Visibility(Visibility other) : this() { + level_ = other.level_; + source_ = other.source_ != null ? other.source_.Clone() : null; + comment_ = other.comment_; + stagedApi_ = other.stagedApi_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Visibility Clone() { + return new Visibility(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private global::Aapt.Pb.Visibility.Types.Level level_ = global::Aapt.Pb.Visibility.Types.Level.Unknown; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Visibility.Types.Level Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 2; + private global::Aapt.Pb.Source source_; + /// + /// The path at which this entry's visibility was defined (eg. public.xml). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Source Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "comment" field. + public const int CommentFieldNumber = 3; + private string comment_ = ""; + /// + /// The comment associated with the <public> tag. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Comment { + get { return comment_; } + set { + comment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "staged_api" field. + public const int StagedApiFieldNumber = 4; + private bool stagedApi_; + /// + /// Indicates that the resource id may change across builds and that the public R.java identifier + /// for this resource should not be final. This is set to `true` for resources in `staging-group` + /// tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool StagedApi { + get { return stagedApi_; } + set { + stagedApi_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Visibility); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Visibility other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + if (!object.Equals(Source, other.Source)) return false; + if (Comment != other.Comment) return false; + if (StagedApi != other.StagedApi) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Level != global::Aapt.Pb.Visibility.Types.Level.Unknown) hash ^= Level.GetHashCode(); + if (source_ != null) hash ^= Source.GetHashCode(); + if (Comment.Length != 0) hash ^= Comment.GetHashCode(); + if (StagedApi != false) hash ^= StagedApi.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Level != global::Aapt.Pb.Visibility.Types.Level.Unknown) { + output.WriteRawTag(8); + output.WriteEnum((int) Level); + } + if (source_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Source); + } + if (Comment.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Comment); + } + if (StagedApi != false) { + output.WriteRawTag(32); + output.WriteBool(StagedApi); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Level != global::Aapt.Pb.Visibility.Types.Level.Unknown) { + output.WriteRawTag(8); + output.WriteEnum((int) Level); + } + if (source_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Source); + } + if (Comment.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Comment); + } + if (StagedApi != false) { + output.WriteRawTag(32); + output.WriteBool(StagedApi); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Level != global::Aapt.Pb.Visibility.Types.Level.Unknown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level); + } + if (source_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source); + } + if (Comment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Comment); + } + if (StagedApi != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Visibility other) { + if (other == null) { + return; + } + if (other.Level != global::Aapt.Pb.Visibility.Types.Level.Unknown) { + Level = other.Level; + } + if (other.source_ != null) { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + Source.MergeFrom(other.Source); + } + if (other.Comment.Length != 0) { + Comment = other.Comment; + } + if (other.StagedApi != false) { + StagedApi = other.StagedApi; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Level = (global::Aapt.Pb.Visibility.Types.Level) input.ReadEnum(); + break; + } + case 18: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 26: { + Comment = input.ReadString(); + break; + } + case 32: { + StagedApi = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Level = (global::Aapt.Pb.Visibility.Types.Level) input.ReadEnum(); + break; + } + case 18: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 26: { + Comment = input.ReadString(); + break; + } + case 32: { + StagedApi = input.ReadBool(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Visibility message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The visibility of the resource outside of its package. + /// + public enum Level { + /// + /// No visibility was explicitly specified. This is typically treated as private. + /// The distinction is important when two separate R.java files are generated: a public and + /// private one. An unknown visibility, in this case, would cause the resource to be omitted + /// from either R.java. + /// + [pbr::OriginalName("UNKNOWN")] Unknown = 0, + /// + /// A resource was explicitly marked as private. This means the resource can not be accessed + /// outside of its package unless the @*package:type/entry notation is used (the asterisk being + /// the private accessor). If two R.java files are generated (private + public), the resource + /// will only be emitted to the private R.java file. + /// + [pbr::OriginalName("PRIVATE")] Private = 1, + /// + /// A resource was explicitly marked as public. This means the resource can be accessed + /// from any package, and is emitted into all R.java files, public and private. + /// + [pbr::OriginalName("PUBLIC")] Public = 2, + } + + } + #endregion + + } + + /// + /// Whether a resource comes from a compile-time overlay and is explicitly allowed to not overlay an + /// existing resource. + /// + public sealed partial class AllowNew : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AllowNew()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllowNew() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllowNew(AllowNew other) : this() { + source_ = other.source_ != null ? other.source_.Clone() : null; + comment_ = other.comment_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllowNew Clone() { + return new AllowNew(this); + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 1; + private global::Aapt.Pb.Source source_; + /// + /// Where this was defined in source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Source Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "comment" field. + public const int CommentFieldNumber = 2; + private string comment_ = ""; + /// + /// Any comment associated with the declaration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Comment { + get { return comment_; } + set { + comment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AllowNew); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AllowNew other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Source, other.Source)) return false; + if (Comment != other.Comment) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (source_ != null) hash ^= Source.GetHashCode(); + if (Comment.Length != 0) hash ^= Comment.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (source_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Source); + } + if (Comment.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Comment); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (source_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Source); + } + if (Comment.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Comment); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (source_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source); + } + if (Comment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Comment); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AllowNew other) { + if (other == null) { + return; + } + if (other.source_ != null) { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + Source.MergeFrom(other.Source); + } + if (other.Comment.Length != 0) { + Comment = other.Comment; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 18: { + Comment = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 18: { + Comment = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a set of overlayable resources. + /// + public sealed partial class Overlayable : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Overlayable()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Overlayable() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Overlayable(Overlayable other) : this() { + name_ = other.name_; + source_ = other.source_ != null ? other.source_.Clone() : null; + actor_ = other.actor_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Overlayable Clone() { + return new Overlayable(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name of the <overlayable>. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 2; + private global::Aapt.Pb.Source source_; + /// + /// The location of the <overlayable> declaration in the source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Source Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "actor" field. + public const int ActorFieldNumber = 3; + private string actor_ = ""; + /// + /// The component responsible for enabling and disabling overlays targeting this <overlayable>. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor { + get { return actor_; } + set { + actor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Overlayable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Overlayable other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Source, other.Source)) return false; + if (Actor != other.Actor) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (source_ != null) hash ^= Source.GetHashCode(); + if (Actor.Length != 0) hash ^= Actor.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (source_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Source); + } + if (Actor.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Actor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (source_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Source); + } + if (Actor.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Actor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (source_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source); + } + if (Actor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Overlayable other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.source_ != null) { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + Source.MergeFrom(other.Source); + } + if (other.Actor.Length != 0) { + Actor = other.Actor; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 26: { + Actor = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 26: { + Actor = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents an overlayable <item> declaration within an <overlayable> tag. + /// + public sealed partial class OverlayableItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OverlayableItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OverlayableItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OverlayableItem(OverlayableItem other) : this() { + source_ = other.source_ != null ? other.source_.Clone() : null; + comment_ = other.comment_; + policy_ = other.policy_.Clone(); + overlayableIdx_ = other.overlayableIdx_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OverlayableItem Clone() { + return new OverlayableItem(this); + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 1; + private global::Aapt.Pb.Source source_; + /// + /// The location of the <item> declaration in source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Source Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "comment" field. + public const int CommentFieldNumber = 2; + private string comment_ = ""; + /// + /// Any comment associated with the declaration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Comment { + get { return comment_; } + set { + comment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "policy" field. + public const int PolicyFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_policy_codec + = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::Aapt.Pb.OverlayableItem.Types.Policy) x); + private readonly pbc::RepeatedField policy_ = new pbc::RepeatedField(); + /// + /// The policy defined by the enclosing <policy> tag of this <item>. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Policy { + get { return policy_; } + } + + /// Field number for the "overlayable_idx" field. + public const int OverlayableIdxFieldNumber = 4; + private uint overlayableIdx_; + /// + /// The index into overlayable list that points to the <overlayable> tag that contains + /// this <item>. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OverlayableIdx { + get { return overlayableIdx_; } + set { + overlayableIdx_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OverlayableItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OverlayableItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Source, other.Source)) return false; + if (Comment != other.Comment) return false; + if(!policy_.Equals(other.policy_)) return false; + if (OverlayableIdx != other.OverlayableIdx) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (source_ != null) hash ^= Source.GetHashCode(); + if (Comment.Length != 0) hash ^= Comment.GetHashCode(); + hash ^= policy_.GetHashCode(); + if (OverlayableIdx != 0) hash ^= OverlayableIdx.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (source_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Source); + } + if (Comment.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Comment); + } + policy_.WriteTo(output, _repeated_policy_codec); + if (OverlayableIdx != 0) { + output.WriteRawTag(32); + output.WriteUInt32(OverlayableIdx); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (source_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Source); + } + if (Comment.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Comment); + } + policy_.WriteTo(ref output, _repeated_policy_codec); + if (OverlayableIdx != 0) { + output.WriteRawTag(32); + output.WriteUInt32(OverlayableIdx); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (source_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source); + } + if (Comment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Comment); + } + size += policy_.CalculateSize(_repeated_policy_codec); + if (OverlayableIdx != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OverlayableIdx); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OverlayableItem other) { + if (other == null) { + return; + } + if (other.source_ != null) { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + Source.MergeFrom(other.Source); + } + if (other.Comment.Length != 0) { + Comment = other.Comment; + } + policy_.Add(other.policy_); + if (other.OverlayableIdx != 0) { + OverlayableIdx = other.OverlayableIdx; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 18: { + Comment = input.ReadString(); + break; + } + case 26: + case 24: { + policy_.AddEntriesFrom(input, _repeated_policy_codec); + break; + } + case 32: { + OverlayableIdx = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 18: { + Comment = input.ReadString(); + break; + } + case 26: + case 24: { + policy_.AddEntriesFrom(ref input, _repeated_policy_codec); + break; + } + case 32: { + OverlayableIdx = input.ReadUInt32(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the OverlayableItem message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum Policy { + [pbr::OriginalName("NONE")] None = 0, + [pbr::OriginalName("PUBLIC")] Public = 1, + [pbr::OriginalName("SYSTEM")] System = 2, + [pbr::OriginalName("VENDOR")] Vendor = 3, + [pbr::OriginalName("PRODUCT")] Product = 4, + [pbr::OriginalName("SIGNATURE")] Signature = 5, + [pbr::OriginalName("ODM")] Odm = 6, + [pbr::OriginalName("OEM")] Oem = 7, + [pbr::OriginalName("ACTOR")] Actor = 8, + [pbr::OriginalName("CONFIG_SIGNATURE")] ConfigSignature = 9, + } + + } + #endregion + + } + + /// + /// The staged resource ID definition of a finalized resource. + /// + public sealed partial class StagedId : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StagedId()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StagedId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StagedId(StagedId other) : this() { + source_ = other.source_ != null ? other.source_.Clone() : null; + stagedId_ = other.stagedId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StagedId Clone() { + return new StagedId(this); + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 1; + private global::Aapt.Pb.Source source_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Source Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "staged_id" field. + public const int StagedId_FieldNumber = 2; + private uint stagedId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StagedId_ { + get { return stagedId_; } + set { + stagedId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StagedId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StagedId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Source, other.Source)) return false; + if (StagedId_ != other.StagedId_) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (source_ != null) hash ^= Source.GetHashCode(); + if (StagedId_ != 0) hash ^= StagedId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (source_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Source); + } + if (StagedId_ != 0) { + output.WriteRawTag(16); + output.WriteUInt32(StagedId_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (source_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Source); + } + if (StagedId_ != 0) { + output.WriteRawTag(16); + output.WriteUInt32(StagedId_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (source_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source); + } + if (StagedId_ != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StagedId_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StagedId other) { + if (other == null) { + return; + } + if (other.source_ != null) { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + Source.MergeFrom(other.Source); + } + if (other.StagedId_ != 0) { + StagedId_ = other.StagedId_; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 16: { + StagedId_ = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 16: { + StagedId_ = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// An entry ID in the range [0x0000, 0xffff]. + /// + public sealed partial class EntryId : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntryId()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntryId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntryId(EntryId other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntryId Clone() { + return new EntryId(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EntryId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EntryId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EntryId other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// An entry declaration. An entry has a full resource ID that is the combination of package ID, + /// type ID, and its own entry ID. An entry on its own has no value, but values are defined for + /// various configurations/variants. + /// + public sealed partial class Entry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entry() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entry(Entry other) : this() { + entryId_ = other.entryId_ != null ? other.entryId_.Clone() : null; + name_ = other.name_; + visibility_ = other.visibility_ != null ? other.visibility_.Clone() : null; + allowNew_ = other.allowNew_ != null ? other.allowNew_.Clone() : null; + overlayableItem_ = other.overlayableItem_ != null ? other.overlayableItem_.Clone() : null; + configValue_ = other.configValue_.Clone(); + stagedId_ = other.stagedId_ != null ? other.stagedId_.Clone() : null; + flagDisabledConfigValue_ = other.flagDisabledConfigValue_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entry Clone() { + return new Entry(this); + } + + /// Field number for the "entry_id" field. + public const int EntryIdFieldNumber = 1; + private global::Aapt.Pb.EntryId entryId_; + /// + /// The ID of this entry. Together with the package ID and type ID, this forms a full resource ID + /// of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry + /// ID. + /// This may not be set if no ID was assigned. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.EntryId EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// The name of this entry. This corresponds to the 'entry' part of a full resource name of the + /// form package:type/entry. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "visibility" field. + public const int VisibilityFieldNumber = 3; + private global::Aapt.Pb.Visibility visibility_; + /// + /// The visibility of this entry (public, private, undefined). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Visibility Visibility { + get { return visibility_; } + set { + visibility_ = value; + } + } + + /// Field number for the "allow_new" field. + public const int AllowNewFieldNumber = 4; + private global::Aapt.Pb.AllowNew allowNew_; + /// + /// Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay + /// any existing resources. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.AllowNew AllowNew { + get { return allowNew_; } + set { + allowNew_ = value; + } + } + + /// Field number for the "overlayable_item" field. + public const int OverlayableItemFieldNumber = 5; + private global::Aapt.Pb.OverlayableItem overlayableItem_; + /// + /// Whether this resource can be overlaid by a runtime resource overlay (RRO). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.OverlayableItem OverlayableItem { + get { return overlayableItem_; } + set { + overlayableItem_ = value; + } + } + + /// Field number for the "config_value" field. + public const int ConfigValueFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_configValue_codec + = pb::FieldCodec.ForMessage(50, global::Aapt.Pb.ConfigValue.Parser); + private readonly pbc::RepeatedField configValue_ = new pbc::RepeatedField(); + /// + /// The set of values defined for this entry, each corresponding to a different + /// configuration/variant. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ConfigValue { + get { return configValue_; } + } + + /// Field number for the "staged_id" field. + public const int StagedIdFieldNumber = 7; + private global::Aapt.Pb.StagedId stagedId_; + /// + /// The staged resource ID of this finalized resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.StagedId StagedId { + get { return stagedId_; } + set { + stagedId_ = value; + } + } + + /// Field number for the "flag_disabled_config_value" field. + public const int FlagDisabledConfigValueFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_flagDisabledConfigValue_codec + = pb::FieldCodec.ForMessage(66, global::Aapt.Pb.ConfigValue.Parser); + private readonly pbc::RepeatedField flagDisabledConfigValue_ = new pbc::RepeatedField(); + /// + /// The set of values defined for this entry which are behind disabled flags + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FlagDisabledConfigValue { + get { return flagDisabledConfigValue_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Entry); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Entry other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EntryId, other.EntryId)) return false; + if (Name != other.Name) return false; + if (!object.Equals(Visibility, other.Visibility)) return false; + if (!object.Equals(AllowNew, other.AllowNew)) return false; + if (!object.Equals(OverlayableItem, other.OverlayableItem)) return false; + if(!configValue_.Equals(other.configValue_)) return false; + if (!object.Equals(StagedId, other.StagedId)) return false; + if(!flagDisabledConfigValue_.Equals(other.flagDisabledConfigValue_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (entryId_ != null) hash ^= EntryId.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (visibility_ != null) hash ^= Visibility.GetHashCode(); + if (allowNew_ != null) hash ^= AllowNew.GetHashCode(); + if (overlayableItem_ != null) hash ^= OverlayableItem.GetHashCode(); + hash ^= configValue_.GetHashCode(); + if (stagedId_ != null) hash ^= StagedId.GetHashCode(); + hash ^= flagDisabledConfigValue_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (entryId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(EntryId); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (visibility_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Visibility); + } + if (allowNew_ != null) { + output.WriteRawTag(34); + output.WriteMessage(AllowNew); + } + if (overlayableItem_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OverlayableItem); + } + configValue_.WriteTo(output, _repeated_configValue_codec); + if (stagedId_ != null) { + output.WriteRawTag(58); + output.WriteMessage(StagedId); + } + flagDisabledConfigValue_.WriteTo(output, _repeated_flagDisabledConfigValue_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (entryId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(EntryId); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (visibility_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Visibility); + } + if (allowNew_ != null) { + output.WriteRawTag(34); + output.WriteMessage(AllowNew); + } + if (overlayableItem_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OverlayableItem); + } + configValue_.WriteTo(ref output, _repeated_configValue_codec); + if (stagedId_ != null) { + output.WriteRawTag(58); + output.WriteMessage(StagedId); + } + flagDisabledConfigValue_.WriteTo(ref output, _repeated_flagDisabledConfigValue_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (entryId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntryId); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (visibility_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Visibility); + } + if (allowNew_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllowNew); + } + if (overlayableItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OverlayableItem); + } + size += configValue_.CalculateSize(_repeated_configValue_codec); + if (stagedId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StagedId); + } + size += flagDisabledConfigValue_.CalculateSize(_repeated_flagDisabledConfigValue_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Entry other) { + if (other == null) { + return; + } + if (other.entryId_ != null) { + if (entryId_ == null) { + EntryId = new global::Aapt.Pb.EntryId(); + } + EntryId.MergeFrom(other.EntryId); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.visibility_ != null) { + if (visibility_ == null) { + Visibility = new global::Aapt.Pb.Visibility(); + } + Visibility.MergeFrom(other.Visibility); + } + if (other.allowNew_ != null) { + if (allowNew_ == null) { + AllowNew = new global::Aapt.Pb.AllowNew(); + } + AllowNew.MergeFrom(other.AllowNew); + } + if (other.overlayableItem_ != null) { + if (overlayableItem_ == null) { + OverlayableItem = new global::Aapt.Pb.OverlayableItem(); + } + OverlayableItem.MergeFrom(other.OverlayableItem); + } + configValue_.Add(other.configValue_); + if (other.stagedId_ != null) { + if (stagedId_ == null) { + StagedId = new global::Aapt.Pb.StagedId(); + } + StagedId.MergeFrom(other.StagedId); + } + flagDisabledConfigValue_.Add(other.flagDisabledConfigValue_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (entryId_ == null) { + EntryId = new global::Aapt.Pb.EntryId(); + } + input.ReadMessage(EntryId); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (visibility_ == null) { + Visibility = new global::Aapt.Pb.Visibility(); + } + input.ReadMessage(Visibility); + break; + } + case 34: { + if (allowNew_ == null) { + AllowNew = new global::Aapt.Pb.AllowNew(); + } + input.ReadMessage(AllowNew); + break; + } + case 42: { + if (overlayableItem_ == null) { + OverlayableItem = new global::Aapt.Pb.OverlayableItem(); + } + input.ReadMessage(OverlayableItem); + break; + } + case 50: { + configValue_.AddEntriesFrom(input, _repeated_configValue_codec); + break; + } + case 58: { + if (stagedId_ == null) { + StagedId = new global::Aapt.Pb.StagedId(); + } + input.ReadMessage(StagedId); + break; + } + case 66: { + flagDisabledConfigValue_.AddEntriesFrom(input, _repeated_flagDisabledConfigValue_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (entryId_ == null) { + EntryId = new global::Aapt.Pb.EntryId(); + } + input.ReadMessage(EntryId); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (visibility_ == null) { + Visibility = new global::Aapt.Pb.Visibility(); + } + input.ReadMessage(Visibility); + break; + } + case 34: { + if (allowNew_ == null) { + AllowNew = new global::Aapt.Pb.AllowNew(); + } + input.ReadMessage(AllowNew); + break; + } + case 42: { + if (overlayableItem_ == null) { + OverlayableItem = new global::Aapt.Pb.OverlayableItem(); + } + input.ReadMessage(OverlayableItem); + break; + } + case 50: { + configValue_.AddEntriesFrom(ref input, _repeated_configValue_codec); + break; + } + case 58: { + if (stagedId_ == null) { + StagedId = new global::Aapt.Pb.StagedId(); + } + input.ReadMessage(StagedId); + break; + } + case 66: { + flagDisabledConfigValue_.AddEntriesFrom(ref input, _repeated_flagDisabledConfigValue_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A Configuration/Value pair. + /// + public sealed partial class ConfigValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigValue(ConfigValue other) : this() { + config_ = other.config_ != null ? other.config_.Clone() : null; + value_ = other.value_ != null ? other.value_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigValue Clone() { + return new ConfigValue(this); + } + + /// Field number for the "config" field. + public const int ConfigFieldNumber = 1; + private global::Aapt.Pb.Configuration config_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Configuration Config { + get { return config_; } + set { + config_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private global::Aapt.Pb.Value value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Value Value { + get { return value_; } + set { + value_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConfigValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConfigValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Config, other.Config)) return false; + if (!object.Equals(Value, other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (config_ != null) hash ^= Config.GetHashCode(); + if (value_ != null) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (config_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Config); + } + if (value_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (config_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Config); + } + if (value_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (config_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Config); + } + if (value_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConfigValue other) { + if (other == null) { + return; + } + if (other.config_ != null) { + if (config_ == null) { + Config = new global::Aapt.Pb.Configuration(); + } + Config.MergeFrom(other.Config); + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::Aapt.Pb.Value(); + } + Value.MergeFrom(other.Value); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (config_ == null) { + Config = new global::Aapt.Pb.Configuration(); + } + input.ReadMessage(Config); + break; + } + case 18: { + if (value_ == null) { + Value = new global::Aapt.Pb.Value(); + } + input.ReadMessage(Value); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (config_ == null) { + Config = new global::Aapt.Pb.Configuration(); + } + input.ReadMessage(Config); + break; + } + case 18: { + if (value_ == null) { + Value = new global::Aapt.Pb.Value(); + } + input.ReadMessage(Value); + break; + } + } + } + } + #endif + + } + + /// + /// The generic meta-data for every value in a resource table. + /// + public sealed partial class Value : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Value()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Value() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Value(Value other) : this() { + source_ = other.source_ != null ? other.source_.Clone() : null; + comment_ = other.comment_; + weak_ = other.weak_; + switch (other.ValueCase) { + case ValueOneofCase.Item: + Item = other.Item.Clone(); + break; + case ValueOneofCase.CompoundValue: + CompoundValue = other.CompoundValue.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Value Clone() { + return new Value(this); + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 1; + private global::Aapt.Pb.Source source_; + /// + /// Where the value was defined. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Source Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "comment" field. + public const int CommentFieldNumber = 2; + private string comment_ = ""; + /// + /// Any comment associated with the value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Comment { + get { return comment_; } + set { + comment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "weak" field. + public const int WeakFieldNumber = 3; + private bool weak_; + /// + /// Whether the value can be overridden. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Weak { + get { return weak_; } + set { + weak_ = value; + } + } + + /// Field number for the "item" field. + public const int ItemFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Item Item { + get { return valueCase_ == ValueOneofCase.Item ? (global::Aapt.Pb.Item) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Item; + } + } + + /// Field number for the "compound_value" field. + public const int CompoundValueFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.CompoundValue CompoundValue { + get { return valueCase_ == ValueOneofCase.CompoundValue ? (global::Aapt.Pb.CompoundValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CompoundValue; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Item = 4, + CompoundValue = 5, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Value); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Value other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Source, other.Source)) return false; + if (Comment != other.Comment) return false; + if (Weak != other.Weak) return false; + if (!object.Equals(Item, other.Item)) return false; + if (!object.Equals(CompoundValue, other.CompoundValue)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (source_ != null) hash ^= Source.GetHashCode(); + if (Comment.Length != 0) hash ^= Comment.GetHashCode(); + if (Weak != false) hash ^= Weak.GetHashCode(); + if (valueCase_ == ValueOneofCase.Item) hash ^= Item.GetHashCode(); + if (valueCase_ == ValueOneofCase.CompoundValue) hash ^= CompoundValue.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (source_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Source); + } + if (Comment.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Comment); + } + if (Weak != false) { + output.WriteRawTag(24); + output.WriteBool(Weak); + } + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(34); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.CompoundValue) { + output.WriteRawTag(42); + output.WriteMessage(CompoundValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (source_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Source); + } + if (Comment.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Comment); + } + if (Weak != false) { + output.WriteRawTag(24); + output.WriteBool(Weak); + } + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(34); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.CompoundValue) { + output.WriteRawTag(42); + output.WriteMessage(CompoundValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (source_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source); + } + if (Comment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Comment); + } + if (Weak != false) { + size += 1 + 1; + } + if (valueCase_ == ValueOneofCase.Item) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (valueCase_ == ValueOneofCase.CompoundValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CompoundValue); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Value other) { + if (other == null) { + return; + } + if (other.source_ != null) { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + Source.MergeFrom(other.Source); + } + if (other.Comment.Length != 0) { + Comment = other.Comment; + } + if (other.Weak != false) { + Weak = other.Weak; + } + switch (other.ValueCase) { + case ValueOneofCase.Item: + if (Item == null) { + Item = new global::Aapt.Pb.Item(); + } + Item.MergeFrom(other.Item); + break; + case ValueOneofCase.CompoundValue: + if (CompoundValue == null) { + CompoundValue = new global::Aapt.Pb.CompoundValue(); + } + CompoundValue.MergeFrom(other.CompoundValue); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 18: { + Comment = input.ReadString(); + break; + } + case 24: { + Weak = input.ReadBool(); + break; + } + case 34: { + global::Aapt.Pb.Item subBuilder = new global::Aapt.Pb.Item(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 42: { + global::Aapt.Pb.CompoundValue subBuilder = new global::Aapt.Pb.CompoundValue(); + if (valueCase_ == ValueOneofCase.CompoundValue) { + subBuilder.MergeFrom(CompoundValue); + } + input.ReadMessage(subBuilder); + CompoundValue = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 18: { + Comment = input.ReadString(); + break; + } + case 24: { + Weak = input.ReadBool(); + break; + } + case 34: { + global::Aapt.Pb.Item subBuilder = new global::Aapt.Pb.Item(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 42: { + global::Aapt.Pb.CompoundValue subBuilder = new global::Aapt.Pb.CompoundValue(); + if (valueCase_ == ValueOneofCase.CompoundValue) { + subBuilder.MergeFrom(CompoundValue); + } + input.ReadMessage(subBuilder); + CompoundValue = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// An Item is an abstract type. It represents a value that can appear inline in many places, such + /// as XML attribute values or on the right hand side of style attribute definitions. The concrete + /// type is one of the types below. Only one can be set. + /// + public sealed partial class Item : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Item()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Item() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Item(Item other) : this() { + flagStatus_ = other.flagStatus_; + flagNegated_ = other.flagNegated_; + flagName_ = other.flagName_; + switch (other.ValueCase) { + case ValueOneofCase.Ref: + Ref = other.Ref.Clone(); + break; + case ValueOneofCase.Str: + Str = other.Str.Clone(); + break; + case ValueOneofCase.RawStr: + RawStr = other.RawStr.Clone(); + break; + case ValueOneofCase.StyledStr: + StyledStr = other.StyledStr.Clone(); + break; + case ValueOneofCase.File: + File = other.File.Clone(); + break; + case ValueOneofCase.Id: + Id = other.Id.Clone(); + break; + case ValueOneofCase.Prim: + Prim = other.Prim.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Item Clone() { + return new Item(this); + } + + /// Field number for the "ref" field. + public const int RefFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Reference Ref { + get { return valueCase_ == ValueOneofCase.Ref ? (global::Aapt.Pb.Reference) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Ref; + } + } + + /// Field number for the "str" field. + public const int StrFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.String Str { + get { return valueCase_ == ValueOneofCase.Str ? (global::Aapt.Pb.String) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Str; + } + } + + /// Field number for the "raw_str" field. + public const int RawStrFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.RawString RawStr { + get { return valueCase_ == ValueOneofCase.RawStr ? (global::Aapt.Pb.RawString) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RawStr; + } + } + + /// Field number for the "styled_str" field. + public const int StyledStrFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.StyledString StyledStr { + get { return valueCase_ == ValueOneofCase.StyledStr ? (global::Aapt.Pb.StyledString) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.StyledStr; + } + } + + /// Field number for the "file" field. + public const int FileFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.FileReference File { + get { return valueCase_ == ValueOneofCase.File ? (global::Aapt.Pb.FileReference) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.File; + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Id Id { + get { return valueCase_ == ValueOneofCase.Id ? (global::Aapt.Pb.Id) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Id; + } + } + + /// Field number for the "prim" field. + public const int PrimFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Primitive Prim { + get { return valueCase_ == ValueOneofCase.Prim ? (global::Aapt.Pb.Primitive) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Prim; + } + } + + /// Field number for the "flag_status" field. + public const int FlagStatusFieldNumber = 8; + private uint flagStatus_; + /// + /// The status of the flag the value is behind if any + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FlagStatus { + get { return flagStatus_; } + set { + flagStatus_ = value; + } + } + + /// Field number for the "flag_negated" field. + public const int FlagNegatedFieldNumber = 9; + private bool flagNegated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool FlagNegated { + get { return flagNegated_; } + set { + flagNegated_ = value; + } + } + + /// Field number for the "flag_name" field. + public const int FlagNameFieldNumber = 10; + private string flagName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FlagName { + get { return flagName_; } + set { + flagName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Ref = 1, + Str = 2, + RawStr = 3, + StyledStr = 4, + File = 5, + Id = 6, + Prim = 7, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Item); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Item other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Ref, other.Ref)) return false; + if (!object.Equals(Str, other.Str)) return false; + if (!object.Equals(RawStr, other.RawStr)) return false; + if (!object.Equals(StyledStr, other.StyledStr)) return false; + if (!object.Equals(File, other.File)) return false; + if (!object.Equals(Id, other.Id)) return false; + if (!object.Equals(Prim, other.Prim)) return false; + if (FlagStatus != other.FlagStatus) return false; + if (FlagNegated != other.FlagNegated) return false; + if (FlagName != other.FlagName) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Ref) hash ^= Ref.GetHashCode(); + if (valueCase_ == ValueOneofCase.Str) hash ^= Str.GetHashCode(); + if (valueCase_ == ValueOneofCase.RawStr) hash ^= RawStr.GetHashCode(); + if (valueCase_ == ValueOneofCase.StyledStr) hash ^= StyledStr.GetHashCode(); + if (valueCase_ == ValueOneofCase.File) hash ^= File.GetHashCode(); + if (valueCase_ == ValueOneofCase.Id) hash ^= Id.GetHashCode(); + if (valueCase_ == ValueOneofCase.Prim) hash ^= Prim.GetHashCode(); + if (FlagStatus != 0) hash ^= FlagStatus.GetHashCode(); + if (FlagNegated != false) hash ^= FlagNegated.GetHashCode(); + if (FlagName.Length != 0) hash ^= FlagName.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Ref) { + output.WriteRawTag(10); + output.WriteMessage(Ref); + } + if (valueCase_ == ValueOneofCase.Str) { + output.WriteRawTag(18); + output.WriteMessage(Str); + } + if (valueCase_ == ValueOneofCase.RawStr) { + output.WriteRawTag(26); + output.WriteMessage(RawStr); + } + if (valueCase_ == ValueOneofCase.StyledStr) { + output.WriteRawTag(34); + output.WriteMessage(StyledStr); + } + if (valueCase_ == ValueOneofCase.File) { + output.WriteRawTag(42); + output.WriteMessage(File); + } + if (valueCase_ == ValueOneofCase.Id) { + output.WriteRawTag(50); + output.WriteMessage(Id); + } + if (valueCase_ == ValueOneofCase.Prim) { + output.WriteRawTag(58); + output.WriteMessage(Prim); + } + if (FlagStatus != 0) { + output.WriteRawTag(64); + output.WriteUInt32(FlagStatus); + } + if (FlagNegated != false) { + output.WriteRawTag(72); + output.WriteBool(FlagNegated); + } + if (FlagName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(FlagName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Ref) { + output.WriteRawTag(10); + output.WriteMessage(Ref); + } + if (valueCase_ == ValueOneofCase.Str) { + output.WriteRawTag(18); + output.WriteMessage(Str); + } + if (valueCase_ == ValueOneofCase.RawStr) { + output.WriteRawTag(26); + output.WriteMessage(RawStr); + } + if (valueCase_ == ValueOneofCase.StyledStr) { + output.WriteRawTag(34); + output.WriteMessage(StyledStr); + } + if (valueCase_ == ValueOneofCase.File) { + output.WriteRawTag(42); + output.WriteMessage(File); + } + if (valueCase_ == ValueOneofCase.Id) { + output.WriteRawTag(50); + output.WriteMessage(Id); + } + if (valueCase_ == ValueOneofCase.Prim) { + output.WriteRawTag(58); + output.WriteMessage(Prim); + } + if (FlagStatus != 0) { + output.WriteRawTag(64); + output.WriteUInt32(FlagStatus); + } + if (FlagNegated != false) { + output.WriteRawTag(72); + output.WriteBool(FlagNegated); + } + if (FlagName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(FlagName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Ref) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ref); + } + if (valueCase_ == ValueOneofCase.Str) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Str); + } + if (valueCase_ == ValueOneofCase.RawStr) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RawStr); + } + if (valueCase_ == ValueOneofCase.StyledStr) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StyledStr); + } + if (valueCase_ == ValueOneofCase.File) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(File); + } + if (valueCase_ == ValueOneofCase.Id) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id); + } + if (valueCase_ == ValueOneofCase.Prim) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Prim); + } + if (FlagStatus != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FlagStatus); + } + if (FlagNegated != false) { + size += 1 + 1; + } + if (FlagName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FlagName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Item other) { + if (other == null) { + return; + } + if (other.FlagStatus != 0) { + FlagStatus = other.FlagStatus; + } + if (other.FlagNegated != false) { + FlagNegated = other.FlagNegated; + } + if (other.FlagName.Length != 0) { + FlagName = other.FlagName; + } + switch (other.ValueCase) { + case ValueOneofCase.Ref: + if (Ref == null) { + Ref = new global::Aapt.Pb.Reference(); + } + Ref.MergeFrom(other.Ref); + break; + case ValueOneofCase.Str: + if (Str == null) { + Str = new global::Aapt.Pb.String(); + } + Str.MergeFrom(other.Str); + break; + case ValueOneofCase.RawStr: + if (RawStr == null) { + RawStr = new global::Aapt.Pb.RawString(); + } + RawStr.MergeFrom(other.RawStr); + break; + case ValueOneofCase.StyledStr: + if (StyledStr == null) { + StyledStr = new global::Aapt.Pb.StyledString(); + } + StyledStr.MergeFrom(other.StyledStr); + break; + case ValueOneofCase.File: + if (File == null) { + File = new global::Aapt.Pb.FileReference(); + } + File.MergeFrom(other.File); + break; + case ValueOneofCase.Id: + if (Id == null) { + Id = new global::Aapt.Pb.Id(); + } + Id.MergeFrom(other.Id); + break; + case ValueOneofCase.Prim: + if (Prim == null) { + Prim = new global::Aapt.Pb.Primitive(); + } + Prim.MergeFrom(other.Prim); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Aapt.Pb.Reference subBuilder = new global::Aapt.Pb.Reference(); + if (valueCase_ == ValueOneofCase.Ref) { + subBuilder.MergeFrom(Ref); + } + input.ReadMessage(subBuilder); + Ref = subBuilder; + break; + } + case 18: { + global::Aapt.Pb.String subBuilder = new global::Aapt.Pb.String(); + if (valueCase_ == ValueOneofCase.Str) { + subBuilder.MergeFrom(Str); + } + input.ReadMessage(subBuilder); + Str = subBuilder; + break; + } + case 26: { + global::Aapt.Pb.RawString subBuilder = new global::Aapt.Pb.RawString(); + if (valueCase_ == ValueOneofCase.RawStr) { + subBuilder.MergeFrom(RawStr); + } + input.ReadMessage(subBuilder); + RawStr = subBuilder; + break; + } + case 34: { + global::Aapt.Pb.StyledString subBuilder = new global::Aapt.Pb.StyledString(); + if (valueCase_ == ValueOneofCase.StyledStr) { + subBuilder.MergeFrom(StyledStr); + } + input.ReadMessage(subBuilder); + StyledStr = subBuilder; + break; + } + case 42: { + global::Aapt.Pb.FileReference subBuilder = new global::Aapt.Pb.FileReference(); + if (valueCase_ == ValueOneofCase.File) { + subBuilder.MergeFrom(File); + } + input.ReadMessage(subBuilder); + File = subBuilder; + break; + } + case 50: { + global::Aapt.Pb.Id subBuilder = new global::Aapt.Pb.Id(); + if (valueCase_ == ValueOneofCase.Id) { + subBuilder.MergeFrom(Id); + } + input.ReadMessage(subBuilder); + Id = subBuilder; + break; + } + case 58: { + global::Aapt.Pb.Primitive subBuilder = new global::Aapt.Pb.Primitive(); + if (valueCase_ == ValueOneofCase.Prim) { + subBuilder.MergeFrom(Prim); + } + input.ReadMessage(subBuilder); + Prim = subBuilder; + break; + } + case 64: { + FlagStatus = input.ReadUInt32(); + break; + } + case 72: { + FlagNegated = input.ReadBool(); + break; + } + case 82: { + FlagName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Aapt.Pb.Reference subBuilder = new global::Aapt.Pb.Reference(); + if (valueCase_ == ValueOneofCase.Ref) { + subBuilder.MergeFrom(Ref); + } + input.ReadMessage(subBuilder); + Ref = subBuilder; + break; + } + case 18: { + global::Aapt.Pb.String subBuilder = new global::Aapt.Pb.String(); + if (valueCase_ == ValueOneofCase.Str) { + subBuilder.MergeFrom(Str); + } + input.ReadMessage(subBuilder); + Str = subBuilder; + break; + } + case 26: { + global::Aapt.Pb.RawString subBuilder = new global::Aapt.Pb.RawString(); + if (valueCase_ == ValueOneofCase.RawStr) { + subBuilder.MergeFrom(RawStr); + } + input.ReadMessage(subBuilder); + RawStr = subBuilder; + break; + } + case 34: { + global::Aapt.Pb.StyledString subBuilder = new global::Aapt.Pb.StyledString(); + if (valueCase_ == ValueOneofCase.StyledStr) { + subBuilder.MergeFrom(StyledStr); + } + input.ReadMessage(subBuilder); + StyledStr = subBuilder; + break; + } + case 42: { + global::Aapt.Pb.FileReference subBuilder = new global::Aapt.Pb.FileReference(); + if (valueCase_ == ValueOneofCase.File) { + subBuilder.MergeFrom(File); + } + input.ReadMessage(subBuilder); + File = subBuilder; + break; + } + case 50: { + global::Aapt.Pb.Id subBuilder = new global::Aapt.Pb.Id(); + if (valueCase_ == ValueOneofCase.Id) { + subBuilder.MergeFrom(Id); + } + input.ReadMessage(subBuilder); + Id = subBuilder; + break; + } + case 58: { + global::Aapt.Pb.Primitive subBuilder = new global::Aapt.Pb.Primitive(); + if (valueCase_ == ValueOneofCase.Prim) { + subBuilder.MergeFrom(Prim); + } + input.ReadMessage(subBuilder); + Prim = subBuilder; + break; + } + case 64: { + FlagStatus = input.ReadUInt32(); + break; + } + case 72: { + FlagNegated = input.ReadBool(); + break; + } + case 82: { + FlagName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A CompoundValue is an abstract type. It represents a value that is a made of other values. + /// These can only usually appear as top-level resources. The concrete type is one of the types + /// below. Only one can be set. + /// + public sealed partial class CompoundValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CompoundValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CompoundValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CompoundValue(CompoundValue other) : this() { + flagStatus_ = other.flagStatus_; + flagNegated_ = other.flagNegated_; + flagName_ = other.flagName_; + switch (other.ValueCase) { + case ValueOneofCase.Attr: + Attr = other.Attr.Clone(); + break; + case ValueOneofCase.Style: + Style = other.Style.Clone(); + break; + case ValueOneofCase.Styleable: + Styleable = other.Styleable.Clone(); + break; + case ValueOneofCase.Array: + Array = other.Array.Clone(); + break; + case ValueOneofCase.Plural: + Plural = other.Plural.Clone(); + break; + case ValueOneofCase.Macro: + Macro = other.Macro.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CompoundValue Clone() { + return new CompoundValue(this); + } + + /// Field number for the "attr" field. + public const int AttrFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Attribute Attr { + get { return valueCase_ == ValueOneofCase.Attr ? (global::Aapt.Pb.Attribute) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Attr; + } + } + + /// Field number for the "style" field. + public const int StyleFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Style Style { + get { return valueCase_ == ValueOneofCase.Style ? (global::Aapt.Pb.Style) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Style; + } + } + + /// Field number for the "styleable" field. + public const int StyleableFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Styleable Styleable { + get { return valueCase_ == ValueOneofCase.Styleable ? (global::Aapt.Pb.Styleable) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Styleable; + } + } + + /// Field number for the "array" field. + public const int ArrayFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Array Array { + get { return valueCase_ == ValueOneofCase.Array ? (global::Aapt.Pb.Array) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Array; + } + } + + /// Field number for the "plural" field. + public const int PluralFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Plural Plural { + get { return valueCase_ == ValueOneofCase.Plural ? (global::Aapt.Pb.Plural) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Plural; + } + } + + /// Field number for the "macro" field. + public const int MacroFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.MacroBody Macro { + get { return valueCase_ == ValueOneofCase.Macro ? (global::Aapt.Pb.MacroBody) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Macro; + } + } + + /// Field number for the "flag_status" field. + public const int FlagStatusFieldNumber = 7; + private uint flagStatus_; + /// + /// The status of the flag the value is behind if any + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FlagStatus { + get { return flagStatus_; } + set { + flagStatus_ = value; + } + } + + /// Field number for the "flag_negated" field. + public const int FlagNegatedFieldNumber = 8; + private bool flagNegated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool FlagNegated { + get { return flagNegated_; } + set { + flagNegated_ = value; + } + } + + /// Field number for the "flag_name" field. + public const int FlagNameFieldNumber = 9; + private string flagName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FlagName { + get { return flagName_; } + set { + flagName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Attr = 1, + Style = 2, + Styleable = 3, + Array = 4, + Plural = 5, + Macro = 6, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CompoundValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CompoundValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Attr, other.Attr)) return false; + if (!object.Equals(Style, other.Style)) return false; + if (!object.Equals(Styleable, other.Styleable)) return false; + if (!object.Equals(Array, other.Array)) return false; + if (!object.Equals(Plural, other.Plural)) return false; + if (!object.Equals(Macro, other.Macro)) return false; + if (FlagStatus != other.FlagStatus) return false; + if (FlagNegated != other.FlagNegated) return false; + if (FlagName != other.FlagName) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Attr) hash ^= Attr.GetHashCode(); + if (valueCase_ == ValueOneofCase.Style) hash ^= Style.GetHashCode(); + if (valueCase_ == ValueOneofCase.Styleable) hash ^= Styleable.GetHashCode(); + if (valueCase_ == ValueOneofCase.Array) hash ^= Array.GetHashCode(); + if (valueCase_ == ValueOneofCase.Plural) hash ^= Plural.GetHashCode(); + if (valueCase_ == ValueOneofCase.Macro) hash ^= Macro.GetHashCode(); + if (FlagStatus != 0) hash ^= FlagStatus.GetHashCode(); + if (FlagNegated != false) hash ^= FlagNegated.GetHashCode(); + if (FlagName.Length != 0) hash ^= FlagName.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Attr) { + output.WriteRawTag(10); + output.WriteMessage(Attr); + } + if (valueCase_ == ValueOneofCase.Style) { + output.WriteRawTag(18); + output.WriteMessage(Style); + } + if (valueCase_ == ValueOneofCase.Styleable) { + output.WriteRawTag(26); + output.WriteMessage(Styleable); + } + if (valueCase_ == ValueOneofCase.Array) { + output.WriteRawTag(34); + output.WriteMessage(Array); + } + if (valueCase_ == ValueOneofCase.Plural) { + output.WriteRawTag(42); + output.WriteMessage(Plural); + } + if (valueCase_ == ValueOneofCase.Macro) { + output.WriteRawTag(50); + output.WriteMessage(Macro); + } + if (FlagStatus != 0) { + output.WriteRawTag(56); + output.WriteUInt32(FlagStatus); + } + if (FlagNegated != false) { + output.WriteRawTag(64); + output.WriteBool(FlagNegated); + } + if (FlagName.Length != 0) { + output.WriteRawTag(74); + output.WriteString(FlagName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Attr) { + output.WriteRawTag(10); + output.WriteMessage(Attr); + } + if (valueCase_ == ValueOneofCase.Style) { + output.WriteRawTag(18); + output.WriteMessage(Style); + } + if (valueCase_ == ValueOneofCase.Styleable) { + output.WriteRawTag(26); + output.WriteMessage(Styleable); + } + if (valueCase_ == ValueOneofCase.Array) { + output.WriteRawTag(34); + output.WriteMessage(Array); + } + if (valueCase_ == ValueOneofCase.Plural) { + output.WriteRawTag(42); + output.WriteMessage(Plural); + } + if (valueCase_ == ValueOneofCase.Macro) { + output.WriteRawTag(50); + output.WriteMessage(Macro); + } + if (FlagStatus != 0) { + output.WriteRawTag(56); + output.WriteUInt32(FlagStatus); + } + if (FlagNegated != false) { + output.WriteRawTag(64); + output.WriteBool(FlagNegated); + } + if (FlagName.Length != 0) { + output.WriteRawTag(74); + output.WriteString(FlagName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Attr) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Attr); + } + if (valueCase_ == ValueOneofCase.Style) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Style); + } + if (valueCase_ == ValueOneofCase.Styleable) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Styleable); + } + if (valueCase_ == ValueOneofCase.Array) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Array); + } + if (valueCase_ == ValueOneofCase.Plural) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Plural); + } + if (valueCase_ == ValueOneofCase.Macro) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Macro); + } + if (FlagStatus != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FlagStatus); + } + if (FlagNegated != false) { + size += 1 + 1; + } + if (FlagName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FlagName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CompoundValue other) { + if (other == null) { + return; + } + if (other.FlagStatus != 0) { + FlagStatus = other.FlagStatus; + } + if (other.FlagNegated != false) { + FlagNegated = other.FlagNegated; + } + if (other.FlagName.Length != 0) { + FlagName = other.FlagName; + } + switch (other.ValueCase) { + case ValueOneofCase.Attr: + if (Attr == null) { + Attr = new global::Aapt.Pb.Attribute(); + } + Attr.MergeFrom(other.Attr); + break; + case ValueOneofCase.Style: + if (Style == null) { + Style = new global::Aapt.Pb.Style(); + } + Style.MergeFrom(other.Style); + break; + case ValueOneofCase.Styleable: + if (Styleable == null) { + Styleable = new global::Aapt.Pb.Styleable(); + } + Styleable.MergeFrom(other.Styleable); + break; + case ValueOneofCase.Array: + if (Array == null) { + Array = new global::Aapt.Pb.Array(); + } + Array.MergeFrom(other.Array); + break; + case ValueOneofCase.Plural: + if (Plural == null) { + Plural = new global::Aapt.Pb.Plural(); + } + Plural.MergeFrom(other.Plural); + break; + case ValueOneofCase.Macro: + if (Macro == null) { + Macro = new global::Aapt.Pb.MacroBody(); + } + Macro.MergeFrom(other.Macro); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Aapt.Pb.Attribute subBuilder = new global::Aapt.Pb.Attribute(); + if (valueCase_ == ValueOneofCase.Attr) { + subBuilder.MergeFrom(Attr); + } + input.ReadMessage(subBuilder); + Attr = subBuilder; + break; + } + case 18: { + global::Aapt.Pb.Style subBuilder = new global::Aapt.Pb.Style(); + if (valueCase_ == ValueOneofCase.Style) { + subBuilder.MergeFrom(Style); + } + input.ReadMessage(subBuilder); + Style = subBuilder; + break; + } + case 26: { + global::Aapt.Pb.Styleable subBuilder = new global::Aapt.Pb.Styleable(); + if (valueCase_ == ValueOneofCase.Styleable) { + subBuilder.MergeFrom(Styleable); + } + input.ReadMessage(subBuilder); + Styleable = subBuilder; + break; + } + case 34: { + global::Aapt.Pb.Array subBuilder = new global::Aapt.Pb.Array(); + if (valueCase_ == ValueOneofCase.Array) { + subBuilder.MergeFrom(Array); + } + input.ReadMessage(subBuilder); + Array = subBuilder; + break; + } + case 42: { + global::Aapt.Pb.Plural subBuilder = new global::Aapt.Pb.Plural(); + if (valueCase_ == ValueOneofCase.Plural) { + subBuilder.MergeFrom(Plural); + } + input.ReadMessage(subBuilder); + Plural = subBuilder; + break; + } + case 50: { + global::Aapt.Pb.MacroBody subBuilder = new global::Aapt.Pb.MacroBody(); + if (valueCase_ == ValueOneofCase.Macro) { + subBuilder.MergeFrom(Macro); + } + input.ReadMessage(subBuilder); + Macro = subBuilder; + break; + } + case 56: { + FlagStatus = input.ReadUInt32(); + break; + } + case 64: { + FlagNegated = input.ReadBool(); + break; + } + case 74: { + FlagName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Aapt.Pb.Attribute subBuilder = new global::Aapt.Pb.Attribute(); + if (valueCase_ == ValueOneofCase.Attr) { + subBuilder.MergeFrom(Attr); + } + input.ReadMessage(subBuilder); + Attr = subBuilder; + break; + } + case 18: { + global::Aapt.Pb.Style subBuilder = new global::Aapt.Pb.Style(); + if (valueCase_ == ValueOneofCase.Style) { + subBuilder.MergeFrom(Style); + } + input.ReadMessage(subBuilder); + Style = subBuilder; + break; + } + case 26: { + global::Aapt.Pb.Styleable subBuilder = new global::Aapt.Pb.Styleable(); + if (valueCase_ == ValueOneofCase.Styleable) { + subBuilder.MergeFrom(Styleable); + } + input.ReadMessage(subBuilder); + Styleable = subBuilder; + break; + } + case 34: { + global::Aapt.Pb.Array subBuilder = new global::Aapt.Pb.Array(); + if (valueCase_ == ValueOneofCase.Array) { + subBuilder.MergeFrom(Array); + } + input.ReadMessage(subBuilder); + Array = subBuilder; + break; + } + case 42: { + global::Aapt.Pb.Plural subBuilder = new global::Aapt.Pb.Plural(); + if (valueCase_ == ValueOneofCase.Plural) { + subBuilder.MergeFrom(Plural); + } + input.ReadMessage(subBuilder); + Plural = subBuilder; + break; + } + case 50: { + global::Aapt.Pb.MacroBody subBuilder = new global::Aapt.Pb.MacroBody(); + if (valueCase_ == ValueOneofCase.Macro) { + subBuilder.MergeFrom(Macro); + } + input.ReadMessage(subBuilder); + Macro = subBuilder; + break; + } + case 56: { + FlagStatus = input.ReadUInt32(); + break; + } + case 64: { + FlagNegated = input.ReadBool(); + break; + } + case 74: { + FlagName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Message holding a boolean, so it can be optionally encoded. + /// + public sealed partial class Boolean : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Boolean()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Boolean() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Boolean(Boolean other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Boolean Clone() { + return new Boolean(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private bool value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Value { + get { return value_; } + set { + value_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Boolean); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Boolean other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Value != false) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Value != false) { + output.WriteRawTag(8); + output.WriteBool(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Value != false) { + output.WriteRawTag(8); + output.WriteBool(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Value != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Boolean other) { + if (other == null) { + return; + } + if (other.Value != false) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Value = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Value = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// A value that is a reference to another resource. This reference can be by name or resource ID. + /// + public sealed partial class Reference : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Reference()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Reference() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Reference(Reference other) : this() { + type_ = other.type_; + id_ = other.id_; + name_ = other.name_; + private_ = other.private_; + isDynamic_ = other.isDynamic_ != null ? other.isDynamic_.Clone() : null; + typeFlags_ = other.typeFlags_; + allowRaw_ = other.allowRaw_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Reference Clone() { + return new Reference(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::Aapt.Pb.Reference.Types.Type type_ = global::Aapt.Pb.Reference.Types.Type.Reference; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Reference.Types.Type Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 2; + private uint id_; + /// + /// The resource ID (0xPPTTEEEE) of the resource being referred. This is optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// The name of the resource being referred. This is optional if the resource ID is set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "private" field. + public const int PrivateFieldNumber = 4; + private bool private_; + /// + /// Whether this reference is referencing a private resource (@*package:type/entry). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Private { + get { return private_; } + set { + private_ = value; + } + } + + /// Field number for the "is_dynamic" field. + public const int IsDynamicFieldNumber = 5; + private global::Aapt.Pb.Boolean isDynamic_; + /// + /// Whether this reference is dynamic. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Boolean IsDynamic { + get { return isDynamic_; } + set { + isDynamic_ = value; + } + } + + /// Field number for the "type_flags" field. + public const int TypeFlagsFieldNumber = 6; + private uint typeFlags_; + /// + /// The type flags used when compiling the reference. Used for substituting the contents of macros. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TypeFlags { + get { return typeFlags_; } + set { + typeFlags_ = value; + } + } + + /// Field number for the "allow_raw" field. + public const int AllowRawFieldNumber = 7; + private bool allowRaw_; + /// + /// Whether raw string values would have been accepted in place of this reference definition. Used + /// for substituting the contents of macros. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowRaw { + get { return allowRaw_; } + set { + allowRaw_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Reference); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Reference other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Private != other.Private) return false; + if (!object.Equals(IsDynamic, other.IsDynamic)) return false; + if (TypeFlags != other.TypeFlags) return false; + if (AllowRaw != other.AllowRaw) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type != global::Aapt.Pb.Reference.Types.Type.Reference) hash ^= Type.GetHashCode(); + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Private != false) hash ^= Private.GetHashCode(); + if (isDynamic_ != null) hash ^= IsDynamic.GetHashCode(); + if (TypeFlags != 0) hash ^= TypeFlags.GetHashCode(); + if (AllowRaw != false) hash ^= AllowRaw.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type != global::Aapt.Pb.Reference.Types.Type.Reference) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (Id != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Private != false) { + output.WriteRawTag(32); + output.WriteBool(Private); + } + if (isDynamic_ != null) { + output.WriteRawTag(42); + output.WriteMessage(IsDynamic); + } + if (TypeFlags != 0) { + output.WriteRawTag(48); + output.WriteUInt32(TypeFlags); + } + if (AllowRaw != false) { + output.WriteRawTag(56); + output.WriteBool(AllowRaw); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type != global::Aapt.Pb.Reference.Types.Type.Reference) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (Id != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Private != false) { + output.WriteRawTag(32); + output.WriteBool(Private); + } + if (isDynamic_ != null) { + output.WriteRawTag(42); + output.WriteMessage(IsDynamic); + } + if (TypeFlags != 0) { + output.WriteRawTag(48); + output.WriteUInt32(TypeFlags); + } + if (AllowRaw != false) { + output.WriteRawTag(56); + output.WriteBool(AllowRaw); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Type != global::Aapt.Pb.Reference.Types.Type.Reference) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Private != false) { + size += 1 + 1; + } + if (isDynamic_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsDynamic); + } + if (TypeFlags != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TypeFlags); + } + if (AllowRaw != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Reference other) { + if (other == null) { + return; + } + if (other.Type != global::Aapt.Pb.Reference.Types.Type.Reference) { + Type = other.Type; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Private != false) { + Private = other.Private; + } + if (other.isDynamic_ != null) { + if (isDynamic_ == null) { + IsDynamic = new global::Aapt.Pb.Boolean(); + } + IsDynamic.MergeFrom(other.IsDynamic); + } + if (other.TypeFlags != 0) { + TypeFlags = other.TypeFlags; + } + if (other.AllowRaw != false) { + AllowRaw = other.AllowRaw; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::Aapt.Pb.Reference.Types.Type) input.ReadEnum(); + break; + } + case 16: { + Id = input.ReadUInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + Private = input.ReadBool(); + break; + } + case 42: { + if (isDynamic_ == null) { + IsDynamic = new global::Aapt.Pb.Boolean(); + } + input.ReadMessage(IsDynamic); + break; + } + case 48: { + TypeFlags = input.ReadUInt32(); + break; + } + case 56: { + AllowRaw = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Type = (global::Aapt.Pb.Reference.Types.Type) input.ReadEnum(); + break; + } + case 16: { + Id = input.ReadUInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + Private = input.ReadBool(); + break; + } + case 42: { + if (isDynamic_ == null) { + IsDynamic = new global::Aapt.Pb.Boolean(); + } + input.ReadMessage(IsDynamic); + break; + } + case 48: { + TypeFlags = input.ReadUInt32(); + break; + } + case 56: { + AllowRaw = input.ReadBool(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Reference message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum Type { + /// + /// A plain reference (@package:type/entry). + /// + [pbr::OriginalName("REFERENCE")] Reference = 0, + /// + /// A reference to a theme attribute (?package:type/entry). + /// + [pbr::OriginalName("ATTRIBUTE")] Attribute = 1, + } + + } + #endregion + + } + + /// + /// A value that represents an ID. This is just a placeholder, as ID values are used to occupy a + /// resource ID (0xPPTTEEEE) as a unique identifier. Their value is unimportant. + /// + public sealed partial class Id : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Id()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Id() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Id(Id other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Id Clone() { + return new Id(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Id); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Id other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Id other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// A value that is a string. + /// + public sealed partial class String : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new String()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public String() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public String(String other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public String Clone() { + return new String(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private string value_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as String); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(String other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Value.Length != 0) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Value.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Value.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Value.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(String other) { + if (other == null) { + return; + } + if (other.Value.Length != 0) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A value that is a raw string, which is unescaped/uninterpreted. This is typically used to + /// represent the value of a style attribute before the attribute is compiled and the set of + /// allowed values is known. + /// + public sealed partial class RawString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RawString()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawString(RawString other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawString Clone() { + return new RawString(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private string value_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RawString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RawString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Value.Length != 0) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Value.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Value.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Value.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RawString other) { + if (other == null) { + return; + } + if (other.Value.Length != 0) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A string with styling information, like html tags that specify boldness, italics, etc. + /// + public sealed partial class StyledString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StyledString()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StyledString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StyledString(StyledString other) : this() { + value_ = other.value_; + span_ = other.span_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StyledString Clone() { + return new StyledString(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private string value_ = ""; + /// + /// The raw text of the string. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "span" field. + public const int SpanFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_span_codec + = pb::FieldCodec.ForMessage(18, global::Aapt.Pb.StyledString.Types.Span.Parser); + private readonly pbc::RepeatedField span_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Span { + get { return span_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StyledString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StyledString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + if(!span_.Equals(other.span_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Value.Length != 0) hash ^= Value.GetHashCode(); + hash ^= span_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Value.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Value); + } + span_.WriteTo(output, _repeated_span_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Value.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Value); + } + span_.WriteTo(ref output, _repeated_span_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Value.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + size += span_.CalculateSize(_repeated_span_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StyledString other) { + if (other == null) { + return; + } + if (other.Value.Length != 0) { + Value = other.Value; + } + span_.Add(other.span_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + case 18: { + span_.AddEntriesFrom(input, _repeated_span_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + case 18: { + span_.AddEntriesFrom(ref input, _repeated_span_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the StyledString message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// A Span marks a region of the string text that is styled. + /// + public sealed partial class Span : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Span()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.StyledString.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Span() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Span(Span other) : this() { + tag_ = other.tag_; + firstChar_ = other.firstChar_; + lastChar_ = other.lastChar_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Span Clone() { + return new Span(this); + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 1; + private string tag_ = ""; + /// + /// The name of the tag, and its attributes, encoded as follows: + /// tag_name;attr1=value1;attr2=value2;[...] + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag { + get { return tag_; } + set { + tag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "first_char" field. + public const int FirstCharFieldNumber = 2; + private uint firstChar_; + /// + /// The first character position this span applies to, in UTF-16 offset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FirstChar { + get { return firstChar_; } + set { + firstChar_ = value; + } + } + + /// Field number for the "last_char" field. + public const int LastCharFieldNumber = 3; + private uint lastChar_; + /// + /// The last character position this span applies to, in UTF-16 offset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LastChar { + get { return lastChar_; } + set { + lastChar_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Span); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Span other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Tag != other.Tag) return false; + if (FirstChar != other.FirstChar) return false; + if (LastChar != other.LastChar) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Tag.Length != 0) hash ^= Tag.GetHashCode(); + if (FirstChar != 0) hash ^= FirstChar.GetHashCode(); + if (LastChar != 0) hash ^= LastChar.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Tag.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Tag); + } + if (FirstChar != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FirstChar); + } + if (LastChar != 0) { + output.WriteRawTag(24); + output.WriteUInt32(LastChar); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Tag.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Tag); + } + if (FirstChar != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FirstChar); + } + if (LastChar != 0) { + output.WriteRawTag(24); + output.WriteUInt32(LastChar); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Tag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Tag); + } + if (FirstChar != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FirstChar); + } + if (LastChar != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LastChar); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Span other) { + if (other == null) { + return; + } + if (other.Tag.Length != 0) { + Tag = other.Tag; + } + if (other.FirstChar != 0) { + FirstChar = other.FirstChar; + } + if (other.LastChar != 0) { + LastChar = other.LastChar; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Tag = input.ReadString(); + break; + } + case 16: { + FirstChar = input.ReadUInt32(); + break; + } + case 24: { + LastChar = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Tag = input.ReadString(); + break; + } + case 16: { + FirstChar = input.ReadUInt32(); + break; + } + case 24: { + LastChar = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A value that is a reference to an external entity, like an XML file or a PNG. + /// + public sealed partial class FileReference : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FileReference()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FileReference() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FileReference(FileReference other) : this() { + path_ = other.path_; + type_ = other.type_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FileReference Clone() { + return new FileReference(this); + } + + /// Field number for the "path" field. + public const int PathFieldNumber = 1; + private string path_ = ""; + /// + /// Path to a file within the APK (typically res/type-config/entry.ext). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Path { + get { return path_; } + set { + path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private global::Aapt.Pb.FileReference.Types.Type type_ = global::Aapt.Pb.FileReference.Types.Type.Unknown; + /// + /// The type of file this path points to. For UAM bundle, this cannot be + /// BINARY_XML. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.FileReference.Types.Type Type { + get { return type_; } + set { + type_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FileReference); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FileReference other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Path != other.Path) return false; + if (Type != other.Type) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Path.Length != 0) hash ^= Path.GetHashCode(); + if (Type != global::Aapt.Pb.FileReference.Types.Type.Unknown) hash ^= Type.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Path.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Path); + } + if (Type != global::Aapt.Pb.FileReference.Types.Type.Unknown) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Path.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Path); + } + if (Type != global::Aapt.Pb.FileReference.Types.Type.Unknown) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Path.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); + } + if (Type != global::Aapt.Pb.FileReference.Types.Type.Unknown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FileReference other) { + if (other == null) { + return; + } + if (other.Path.Length != 0) { + Path = other.Path; + } + if (other.Type != global::Aapt.Pb.FileReference.Types.Type.Unknown) { + Type = other.Type; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Path = input.ReadString(); + break; + } + case 16: { + Type = (global::Aapt.Pb.FileReference.Types.Type) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Path = input.ReadString(); + break; + } + case 16: { + Type = (global::Aapt.Pb.FileReference.Types.Type) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the FileReference message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum Type { + [pbr::OriginalName("UNKNOWN")] Unknown = 0, + [pbr::OriginalName("PNG")] Png = 1, + [pbr::OriginalName("BINARY_XML")] BinaryXml = 2, + [pbr::OriginalName("PROTO_XML")] ProtoXml = 3, + } + + } + #endregion + + } + + /// + /// A value that represents a primitive data type (float, int, boolean, etc.). + /// Refer to Res_value in ResourceTypes.h for info on types and formatting + /// + public sealed partial class Primitive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Primitive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Primitive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Primitive(Primitive other) : this() { + switch (other.OneofValueCase) { + case OneofValueOneofCase.NullValue: + NullValue = other.NullValue.Clone(); + break; + case OneofValueOneofCase.EmptyValue: + EmptyValue = other.EmptyValue.Clone(); + break; + case OneofValueOneofCase.FloatValue: + FloatValue = other.FloatValue; + break; + case OneofValueOneofCase.DimensionValue: + DimensionValue = other.DimensionValue; + break; + case OneofValueOneofCase.FractionValue: + FractionValue = other.FractionValue; + break; + case OneofValueOneofCase.IntDecimalValue: + IntDecimalValue = other.IntDecimalValue; + break; + case OneofValueOneofCase.IntHexadecimalValue: + IntHexadecimalValue = other.IntHexadecimalValue; + break; + case OneofValueOneofCase.BooleanValue: + BooleanValue = other.BooleanValue; + break; + case OneofValueOneofCase.ColorArgb8Value: + ColorArgb8Value = other.ColorArgb8Value; + break; + case OneofValueOneofCase.ColorRgb8Value: + ColorRgb8Value = other.ColorRgb8Value; + break; + case OneofValueOneofCase.ColorArgb4Value: + ColorArgb4Value = other.ColorArgb4Value; + break; + case OneofValueOneofCase.ColorRgb4Value: + ColorRgb4Value = other.ColorRgb4Value; + break; + case OneofValueOneofCase.DimensionValueDeprecated: + DimensionValueDeprecated = other.DimensionValueDeprecated; + break; + case OneofValueOneofCase.FractionValueDeprecated: + FractionValueDeprecated = other.FractionValueDeprecated; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Primitive Clone() { + return new Primitive(this); + } + + /// Field number for the "null_value" field. + public const int NullValueFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Primitive.Types.NullType NullValue { + get { return oneofValueCase_ == OneofValueOneofCase.NullValue ? (global::Aapt.Pb.Primitive.Types.NullType) oneofValue_ : null; } + set { + oneofValue_ = value; + oneofValueCase_ = value == null ? OneofValueOneofCase.None : OneofValueOneofCase.NullValue; + } + } + + /// Field number for the "empty_value" field. + public const int EmptyValueFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Primitive.Types.EmptyType EmptyValue { + get { return oneofValueCase_ == OneofValueOneofCase.EmptyValue ? (global::Aapt.Pb.Primitive.Types.EmptyType) oneofValue_ : null; } + set { + oneofValue_ = value; + oneofValueCase_ = value == null ? OneofValueOneofCase.None : OneofValueOneofCase.EmptyValue; + } + } + + /// Field number for the "float_value" field. + public const int FloatValueFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float FloatValue { + get { return oneofValueCase_ == OneofValueOneofCase.FloatValue ? (float) oneofValue_ : 0F; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.FloatValue; + } + } + + /// Field number for the "dimension_value" field. + public const int DimensionValueFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DimensionValue { + get { return oneofValueCase_ == OneofValueOneofCase.DimensionValue ? (uint) oneofValue_ : 0; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.DimensionValue; + } + } + + /// Field number for the "fraction_value" field. + public const int FractionValueFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FractionValue { + get { return oneofValueCase_ == OneofValueOneofCase.FractionValue ? (uint) oneofValue_ : 0; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.FractionValue; + } + } + + /// Field number for the "int_decimal_value" field. + public const int IntDecimalValueFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IntDecimalValue { + get { return oneofValueCase_ == OneofValueOneofCase.IntDecimalValue ? (int) oneofValue_ : 0; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.IntDecimalValue; + } + } + + /// Field number for the "int_hexadecimal_value" field. + public const int IntHexadecimalValueFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint IntHexadecimalValue { + get { return oneofValueCase_ == OneofValueOneofCase.IntHexadecimalValue ? (uint) oneofValue_ : 0; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.IntHexadecimalValue; + } + } + + /// Field number for the "boolean_value" field. + public const int BooleanValueFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool BooleanValue { + get { return oneofValueCase_ == OneofValueOneofCase.BooleanValue ? (bool) oneofValue_ : false; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.BooleanValue; + } + } + + /// Field number for the "color_argb8_value" field. + public const int ColorArgb8ValueFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ColorArgb8Value { + get { return oneofValueCase_ == OneofValueOneofCase.ColorArgb8Value ? (uint) oneofValue_ : 0; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.ColorArgb8Value; + } + } + + /// Field number for the "color_rgb8_value" field. + public const int ColorRgb8ValueFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ColorRgb8Value { + get { return oneofValueCase_ == OneofValueOneofCase.ColorRgb8Value ? (uint) oneofValue_ : 0; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.ColorRgb8Value; + } + } + + /// Field number for the "color_argb4_value" field. + public const int ColorArgb4ValueFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ColorArgb4Value { + get { return oneofValueCase_ == OneofValueOneofCase.ColorArgb4Value ? (uint) oneofValue_ : 0; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.ColorArgb4Value; + } + } + + /// Field number for the "color_rgb4_value" field. + public const int ColorRgb4ValueFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ColorRgb4Value { + get { return oneofValueCase_ == OneofValueOneofCase.ColorRgb4Value ? (uint) oneofValue_ : 0; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.ColorRgb4Value; + } + } + + /// Field number for the "dimension_value_deprecated" field. + public const int DimensionValueDeprecatedFieldNumber = 4; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DimensionValueDeprecated { + get { return oneofValueCase_ == OneofValueOneofCase.DimensionValueDeprecated ? (float) oneofValue_ : 0F; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.DimensionValueDeprecated; + } + } + + /// Field number for the "fraction_value_deprecated" field. + public const int FractionValueDeprecatedFieldNumber = 5; + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float FractionValueDeprecated { + get { return oneofValueCase_ == OneofValueOneofCase.FractionValueDeprecated ? (float) oneofValue_ : 0F; } + set { + oneofValue_ = value; + oneofValueCase_ = OneofValueOneofCase.FractionValueDeprecated; + } + } + + private object oneofValue_; + /// Enum of possible cases for the "oneof_value" oneof. + public enum OneofValueOneofCase { + None = 0, + NullValue = 1, + EmptyValue = 2, + FloatValue = 3, + DimensionValue = 13, + FractionValue = 14, + IntDecimalValue = 6, + IntHexadecimalValue = 7, + BooleanValue = 8, + ColorArgb8Value = 9, + ColorRgb8Value = 10, + ColorArgb4Value = 11, + ColorRgb4Value = 12, + DimensionValueDeprecated = 4, + FractionValueDeprecated = 5, + } + private OneofValueOneofCase oneofValueCase_ = OneofValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OneofValueOneofCase OneofValueCase { + get { return oneofValueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOneofValue() { + oneofValueCase_ = OneofValueOneofCase.None; + oneofValue_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Primitive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Primitive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(NullValue, other.NullValue)) return false; + if (!object.Equals(EmptyValue, other.EmptyValue)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FloatValue, other.FloatValue)) return false; + if (DimensionValue != other.DimensionValue) return false; + if (FractionValue != other.FractionValue) return false; + if (IntDecimalValue != other.IntDecimalValue) return false; + if (IntHexadecimalValue != other.IntHexadecimalValue) return false; + if (BooleanValue != other.BooleanValue) return false; + if (ColorArgb8Value != other.ColorArgb8Value) return false; + if (ColorRgb8Value != other.ColorRgb8Value) return false; + if (ColorArgb4Value != other.ColorArgb4Value) return false; + if (ColorRgb4Value != other.ColorRgb4Value) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DimensionValueDeprecated, other.DimensionValueDeprecated)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FractionValueDeprecated, other.FractionValueDeprecated)) return false; + if (OneofValueCase != other.OneofValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (oneofValueCase_ == OneofValueOneofCase.NullValue) hash ^= NullValue.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.EmptyValue) hash ^= EmptyValue.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.FloatValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FloatValue); + if (oneofValueCase_ == OneofValueOneofCase.DimensionValue) hash ^= DimensionValue.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.FractionValue) hash ^= FractionValue.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.IntDecimalValue) hash ^= IntDecimalValue.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.IntHexadecimalValue) hash ^= IntHexadecimalValue.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.BooleanValue) hash ^= BooleanValue.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.ColorArgb8Value) hash ^= ColorArgb8Value.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.ColorRgb8Value) hash ^= ColorRgb8Value.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.ColorArgb4Value) hash ^= ColorArgb4Value.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.ColorRgb4Value) hash ^= ColorRgb4Value.GetHashCode(); + if (oneofValueCase_ == OneofValueOneofCase.DimensionValueDeprecated) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DimensionValueDeprecated); + if (oneofValueCase_ == OneofValueOneofCase.FractionValueDeprecated) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FractionValueDeprecated); + hash ^= (int) oneofValueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (oneofValueCase_ == OneofValueOneofCase.NullValue) { + output.WriteRawTag(10); + output.WriteMessage(NullValue); + } + if (oneofValueCase_ == OneofValueOneofCase.EmptyValue) { + output.WriteRawTag(18); + output.WriteMessage(EmptyValue); + } + if (oneofValueCase_ == OneofValueOneofCase.FloatValue) { + output.WriteRawTag(29); + output.WriteFloat(FloatValue); + } + if (oneofValueCase_ == OneofValueOneofCase.DimensionValueDeprecated) { + output.WriteRawTag(37); + output.WriteFloat(DimensionValueDeprecated); + } + if (oneofValueCase_ == OneofValueOneofCase.FractionValueDeprecated) { + output.WriteRawTag(45); + output.WriteFloat(FractionValueDeprecated); + } + if (oneofValueCase_ == OneofValueOneofCase.IntDecimalValue) { + output.WriteRawTag(48); + output.WriteInt32(IntDecimalValue); + } + if (oneofValueCase_ == OneofValueOneofCase.IntHexadecimalValue) { + output.WriteRawTag(56); + output.WriteUInt32(IntHexadecimalValue); + } + if (oneofValueCase_ == OneofValueOneofCase.BooleanValue) { + output.WriteRawTag(64); + output.WriteBool(BooleanValue); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorArgb8Value) { + output.WriteRawTag(72); + output.WriteUInt32(ColorArgb8Value); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorRgb8Value) { + output.WriteRawTag(80); + output.WriteUInt32(ColorRgb8Value); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorArgb4Value) { + output.WriteRawTag(88); + output.WriteUInt32(ColorArgb4Value); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorRgb4Value) { + output.WriteRawTag(96); + output.WriteUInt32(ColorRgb4Value); + } + if (oneofValueCase_ == OneofValueOneofCase.DimensionValue) { + output.WriteRawTag(104); + output.WriteUInt32(DimensionValue); + } + if (oneofValueCase_ == OneofValueOneofCase.FractionValue) { + output.WriteRawTag(112); + output.WriteUInt32(FractionValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (oneofValueCase_ == OneofValueOneofCase.NullValue) { + output.WriteRawTag(10); + output.WriteMessage(NullValue); + } + if (oneofValueCase_ == OneofValueOneofCase.EmptyValue) { + output.WriteRawTag(18); + output.WriteMessage(EmptyValue); + } + if (oneofValueCase_ == OneofValueOneofCase.FloatValue) { + output.WriteRawTag(29); + output.WriteFloat(FloatValue); + } + if (oneofValueCase_ == OneofValueOneofCase.DimensionValueDeprecated) { + output.WriteRawTag(37); + output.WriteFloat(DimensionValueDeprecated); + } + if (oneofValueCase_ == OneofValueOneofCase.FractionValueDeprecated) { + output.WriteRawTag(45); + output.WriteFloat(FractionValueDeprecated); + } + if (oneofValueCase_ == OneofValueOneofCase.IntDecimalValue) { + output.WriteRawTag(48); + output.WriteInt32(IntDecimalValue); + } + if (oneofValueCase_ == OneofValueOneofCase.IntHexadecimalValue) { + output.WriteRawTag(56); + output.WriteUInt32(IntHexadecimalValue); + } + if (oneofValueCase_ == OneofValueOneofCase.BooleanValue) { + output.WriteRawTag(64); + output.WriteBool(BooleanValue); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorArgb8Value) { + output.WriteRawTag(72); + output.WriteUInt32(ColorArgb8Value); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorRgb8Value) { + output.WriteRawTag(80); + output.WriteUInt32(ColorRgb8Value); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorArgb4Value) { + output.WriteRawTag(88); + output.WriteUInt32(ColorArgb4Value); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorRgb4Value) { + output.WriteRawTag(96); + output.WriteUInt32(ColorRgb4Value); + } + if (oneofValueCase_ == OneofValueOneofCase.DimensionValue) { + output.WriteRawTag(104); + output.WriteUInt32(DimensionValue); + } + if (oneofValueCase_ == OneofValueOneofCase.FractionValue) { + output.WriteRawTag(112); + output.WriteUInt32(FractionValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (oneofValueCase_ == OneofValueOneofCase.NullValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NullValue); + } + if (oneofValueCase_ == OneofValueOneofCase.EmptyValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmptyValue); + } + if (oneofValueCase_ == OneofValueOneofCase.FloatValue) { + size += 1 + 4; + } + if (oneofValueCase_ == OneofValueOneofCase.DimensionValue) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DimensionValue); + } + if (oneofValueCase_ == OneofValueOneofCase.FractionValue) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FractionValue); + } + if (oneofValueCase_ == OneofValueOneofCase.IntDecimalValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntDecimalValue); + } + if (oneofValueCase_ == OneofValueOneofCase.IntHexadecimalValue) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(IntHexadecimalValue); + } + if (oneofValueCase_ == OneofValueOneofCase.BooleanValue) { + size += 1 + 1; + } + if (oneofValueCase_ == OneofValueOneofCase.ColorArgb8Value) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ColorArgb8Value); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorRgb8Value) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ColorRgb8Value); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorArgb4Value) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ColorArgb4Value); + } + if (oneofValueCase_ == OneofValueOneofCase.ColorRgb4Value) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ColorRgb4Value); + } + if (oneofValueCase_ == OneofValueOneofCase.DimensionValueDeprecated) { + size += 1 + 4; + } + if (oneofValueCase_ == OneofValueOneofCase.FractionValueDeprecated) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Primitive other) { + if (other == null) { + return; + } + switch (other.OneofValueCase) { + case OneofValueOneofCase.NullValue: + if (NullValue == null) { + NullValue = new global::Aapt.Pb.Primitive.Types.NullType(); + } + NullValue.MergeFrom(other.NullValue); + break; + case OneofValueOneofCase.EmptyValue: + if (EmptyValue == null) { + EmptyValue = new global::Aapt.Pb.Primitive.Types.EmptyType(); + } + EmptyValue.MergeFrom(other.EmptyValue); + break; + case OneofValueOneofCase.FloatValue: + FloatValue = other.FloatValue; + break; + case OneofValueOneofCase.DimensionValue: + DimensionValue = other.DimensionValue; + break; + case OneofValueOneofCase.FractionValue: + FractionValue = other.FractionValue; + break; + case OneofValueOneofCase.IntDecimalValue: + IntDecimalValue = other.IntDecimalValue; + break; + case OneofValueOneofCase.IntHexadecimalValue: + IntHexadecimalValue = other.IntHexadecimalValue; + break; + case OneofValueOneofCase.BooleanValue: + BooleanValue = other.BooleanValue; + break; + case OneofValueOneofCase.ColorArgb8Value: + ColorArgb8Value = other.ColorArgb8Value; + break; + case OneofValueOneofCase.ColorRgb8Value: + ColorRgb8Value = other.ColorRgb8Value; + break; + case OneofValueOneofCase.ColorArgb4Value: + ColorArgb4Value = other.ColorArgb4Value; + break; + case OneofValueOneofCase.ColorRgb4Value: + ColorRgb4Value = other.ColorRgb4Value; + break; + case OneofValueOneofCase.DimensionValueDeprecated: + DimensionValueDeprecated = other.DimensionValueDeprecated; + break; + case OneofValueOneofCase.FractionValueDeprecated: + FractionValueDeprecated = other.FractionValueDeprecated; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Aapt.Pb.Primitive.Types.NullType subBuilder = new global::Aapt.Pb.Primitive.Types.NullType(); + if (oneofValueCase_ == OneofValueOneofCase.NullValue) { + subBuilder.MergeFrom(NullValue); + } + input.ReadMessage(subBuilder); + NullValue = subBuilder; + break; + } + case 18: { + global::Aapt.Pb.Primitive.Types.EmptyType subBuilder = new global::Aapt.Pb.Primitive.Types.EmptyType(); + if (oneofValueCase_ == OneofValueOneofCase.EmptyValue) { + subBuilder.MergeFrom(EmptyValue); + } + input.ReadMessage(subBuilder); + EmptyValue = subBuilder; + break; + } + case 29: { + FloatValue = input.ReadFloat(); + break; + } + case 37: { + DimensionValueDeprecated = input.ReadFloat(); + break; + } + case 45: { + FractionValueDeprecated = input.ReadFloat(); + break; + } + case 48: { + IntDecimalValue = input.ReadInt32(); + break; + } + case 56: { + IntHexadecimalValue = input.ReadUInt32(); + break; + } + case 64: { + BooleanValue = input.ReadBool(); + break; + } + case 72: { + ColorArgb8Value = input.ReadUInt32(); + break; + } + case 80: { + ColorRgb8Value = input.ReadUInt32(); + break; + } + case 88: { + ColorArgb4Value = input.ReadUInt32(); + break; + } + case 96: { + ColorRgb4Value = input.ReadUInt32(); + break; + } + case 104: { + DimensionValue = input.ReadUInt32(); + break; + } + case 112: { + FractionValue = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Aapt.Pb.Primitive.Types.NullType subBuilder = new global::Aapt.Pb.Primitive.Types.NullType(); + if (oneofValueCase_ == OneofValueOneofCase.NullValue) { + subBuilder.MergeFrom(NullValue); + } + input.ReadMessage(subBuilder); + NullValue = subBuilder; + break; + } + case 18: { + global::Aapt.Pb.Primitive.Types.EmptyType subBuilder = new global::Aapt.Pb.Primitive.Types.EmptyType(); + if (oneofValueCase_ == OneofValueOneofCase.EmptyValue) { + subBuilder.MergeFrom(EmptyValue); + } + input.ReadMessage(subBuilder); + EmptyValue = subBuilder; + break; + } + case 29: { + FloatValue = input.ReadFloat(); + break; + } + case 37: { + DimensionValueDeprecated = input.ReadFloat(); + break; + } + case 45: { + FractionValueDeprecated = input.ReadFloat(); + break; + } + case 48: { + IntDecimalValue = input.ReadInt32(); + break; + } + case 56: { + IntHexadecimalValue = input.ReadUInt32(); + break; + } + case 64: { + BooleanValue = input.ReadBool(); + break; + } + case 72: { + ColorArgb8Value = input.ReadUInt32(); + break; + } + case 80: { + ColorRgb8Value = input.ReadUInt32(); + break; + } + case 88: { + ColorArgb4Value = input.ReadUInt32(); + break; + } + case 96: { + ColorRgb4Value = input.ReadUInt32(); + break; + } + case 104: { + DimensionValue = input.ReadUInt32(); + break; + } + case 112: { + FractionValue = input.ReadUInt32(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Primitive message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class NullType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NullType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.Primitive.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NullType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NullType(NullType other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NullType Clone() { + return new NullType(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NullType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NullType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NullType other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class EmptyType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmptyType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.Primitive.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EmptyType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EmptyType(EmptyType other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EmptyType Clone() { + return new EmptyType(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EmptyType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EmptyType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EmptyType other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A value that represents an XML attribute and what values it accepts. + /// + public sealed partial class Attribute : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Attribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.ResourcesReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attribute(Attribute other) : this() { + formatFlags_ = other.formatFlags_; + minInt_ = other.minInt_; + maxInt_ = other.maxInt_; + symbol_ = other.symbol_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attribute Clone() { + return new Attribute(this); + } + + /// Field number for the "format_flags" field. + public const int FormatFlagsFieldNumber = 1; + private uint formatFlags_; + /// + /// A bitmask of types that this XML attribute accepts. Corresponds to the flags in the + /// enum FormatFlags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FormatFlags { + get { return formatFlags_; } + set { + formatFlags_ = value; + } + } + + /// Field number for the "min_int" field. + public const int MinIntFieldNumber = 2; + private int minInt_; + /// + /// The smallest integer allowed for this XML attribute. Only makes sense if the format includes + /// FormatFlags::INTEGER. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinInt { + get { return minInt_; } + set { + minInt_ = value; + } + } + + /// Field number for the "max_int" field. + public const int MaxIntFieldNumber = 3; + private int maxInt_; + /// + /// The largest integer allowed for this XML attribute. Only makes sense if the format includes + /// FormatFlags::INTEGER. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxInt { + get { return maxInt_; } + set { + maxInt_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_symbol_codec + = pb::FieldCodec.ForMessage(34, global::Aapt.Pb.Attribute.Types.Symbol.Parser); + private readonly pbc::RepeatedField symbol_ = new pbc::RepeatedField(); + /// + /// The set of enums/flags defined in this attribute. Only makes sense if the format includes + /// either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Symbol { + get { return symbol_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Attribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Attribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FormatFlags != other.FormatFlags) return false; + if (MinInt != other.MinInt) return false; + if (MaxInt != other.MaxInt) return false; + if(!symbol_.Equals(other.symbol_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FormatFlags != 0) hash ^= FormatFlags.GetHashCode(); + if (MinInt != 0) hash ^= MinInt.GetHashCode(); + if (MaxInt != 0) hash ^= MaxInt.GetHashCode(); + hash ^= symbol_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FormatFlags != 0) { + output.WriteRawTag(8); + output.WriteUInt32(FormatFlags); + } + if (MinInt != 0) { + output.WriteRawTag(16); + output.WriteInt32(MinInt); + } + if (MaxInt != 0) { + output.WriteRawTag(24); + output.WriteInt32(MaxInt); + } + symbol_.WriteTo(output, _repeated_symbol_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FormatFlags != 0) { + output.WriteRawTag(8); + output.WriteUInt32(FormatFlags); + } + if (MinInt != 0) { + output.WriteRawTag(16); + output.WriteInt32(MinInt); + } + if (MaxInt != 0) { + output.WriteRawTag(24); + output.WriteInt32(MaxInt); + } + symbol_.WriteTo(ref output, _repeated_symbol_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FormatFlags != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FormatFlags); + } + if (MinInt != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinInt); + } + if (MaxInt != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxInt); + } + size += symbol_.CalculateSize(_repeated_symbol_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Attribute other) { + if (other == null) { + return; + } + if (other.FormatFlags != 0) { + FormatFlags = other.FormatFlags; + } + if (other.MinInt != 0) { + MinInt = other.MinInt; + } + if (other.MaxInt != 0) { + MaxInt = other.MaxInt; + } + symbol_.Add(other.symbol_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + FormatFlags = input.ReadUInt32(); + break; + } + case 16: { + MinInt = input.ReadInt32(); + break; + } + case 24: { + MaxInt = input.ReadInt32(); + break; + } + case 34: { + symbol_.AddEntriesFrom(input, _repeated_symbol_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + FormatFlags = input.ReadUInt32(); + break; + } + case 16: { + MinInt = input.ReadInt32(); + break; + } + case 24: { + MaxInt = input.ReadInt32(); + break; + } + case 34: { + symbol_.AddEntriesFrom(ref input, _repeated_symbol_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Attribute message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Bitmask of formats allowed for an attribute. + /// + public enum FormatFlags { + /// + /// Proto3 requires a default of 0. + /// + [pbr::OriginalName("NONE")] None = 0, + /// + /// Allows any type except ENUM and FLAGS. + /// + [pbr::OriginalName("ANY")] Any = 65535, + /// + /// Allows Reference values. + /// + [pbr::OriginalName("REFERENCE")] Reference = 1, + /// + /// Allows String/StyledString values. + /// + [pbr::OriginalName("STRING")] String = 2, + /// + /// Allows any integer BinaryPrimitive values. + /// + [pbr::OriginalName("INTEGER")] Integer = 4, + /// + /// Allows any boolean BinaryPrimitive values. + /// + [pbr::OriginalName("BOOLEAN")] Boolean = 8, + /// + /// Allows any color BinaryPrimitive values. + /// + [pbr::OriginalName("COLOR")] Color = 16, + /// + /// Allows any float BinaryPrimitive values. + /// + [pbr::OriginalName("FLOAT")] Float = 32, + /// + /// Allows any dimension BinaryPrimitive values. + /// + [pbr::OriginalName("DIMENSION")] Dimension = 64, + /// + /// Allows any fraction BinaryPrimitive values. + /// + [pbr::OriginalName("FRACTION")] Fraction = 128, + /// + /// Allows enums that are defined in the Attribute's symbols. + /// + [pbr::OriginalName("ENUM")] Enum = 65536, + /// + /// ENUM and FLAGS cannot BOTH be set. + /// + [pbr::OriginalName("FLAGS")] Flags = 131072, + } + + /// + /// A Symbol used to represent an enum or a flag. + /// + public sealed partial class Symbol : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Symbol()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Aapt.Pb.Attribute.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Symbol() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Symbol(Symbol other) : this() { + source_ = other.source_ != null ? other.source_.Clone() : null; + comment_ = other.comment_; + name_ = other.name_ != null ? other.name_.Clone() : null; + value_ = other.value_; + type_ = other.type_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Symbol Clone() { + return new Symbol(this); + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 1; + private global::Aapt.Pb.Source source_; + /// + /// Where the enum/flag item was defined. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Source Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "comment" field. + public const int CommentFieldNumber = 2; + private string comment_ = ""; + /// + /// Any comments associated with the enum or flag. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Comment { + get { return comment_; } + set { + comment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private global::Aapt.Pb.Reference name_; + /// + /// The name of the enum/flag as a reference. Enums/flag items are generated as ID resource + /// values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Aapt.Pb.Reference Name { + get { return name_; } + set { + name_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 4; + private uint value_; + /// + /// The value of the enum/flag. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Value { + get { return value_; } + set { + value_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 5; + private uint type_; + /// + /// The data type of the enum/flag as defined in android::Res_value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Type { + get { return type_; } + set { + type_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Symbol); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Symbol other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Source, other.Source)) return false; + if (Comment != other.Comment) return false; + if (!object.Equals(Name, other.Name)) return false; + if (Value != other.Value) return false; + if (Type != other.Type) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (source_ != null) hash ^= Source.GetHashCode(); + if (Comment.Length != 0) hash ^= Comment.GetHashCode(); + if (name_ != null) hash ^= Name.GetHashCode(); + if (Value != 0) hash ^= Value.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (source_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Source); + } + if (Comment.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Comment); + } + if (name_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Name); + } + if (Value != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Value); + } + if (Type != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (source_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Source); + } + if (Comment.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Comment); + } + if (name_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Name); + } + if (Value != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Value); + } + if (Type != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (source_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source); + } + if (Comment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Comment); + } + if (name_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Name); + } + if (Value != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Type); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Symbol other) { + if (other == null) { + return; + } + if (other.source_ != null) { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + Source.MergeFrom(other.Source); + } + if (other.Comment.Length != 0) { + Comment = other.Comment; + } + if (other.name_ != null) { + if (name_ == null) { + Name = new global::Aapt.Pb.Reference(); + } + Name.MergeFrom(other.Name); + } + if (other.Value != 0) { + Value = other.Value; + } + if (other.Type != 0) { + Type = other.Type; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 18: { + Comment = input.ReadString(); + break; + } + case 26: { + if (name_ == null) { + Name = new global::Aapt.Pb.Reference(); + } + input.ReadMessage(Name); + break; + } + case 32: { + Value = input.ReadUInt32(); + break; + } + case 40: { + Type = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (source_ == null) { + Source = new global::Aapt.Pb.Source(); + } + input.ReadMessage(Source); + break; + } + case 18: { + Comment = input.ReadString(); + break; + } + case 26: { + if (name_ == null) { + Name = new global::Aapt.Pb.Reference(); + } + input.ReadMessage(Name); + break; + } + case 32: { + Value = input.ReadUInt32(); + break; + } + case 40: { + Type = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A value that represents a style. + /// + public sealed partial class Style : pb::IMessage