using System; using System.Diagnostics; using Google.Protobuf.Collections; namespace Google.Protobuf.Reflection { // Token: 0x0200004A RID: 74 internal sealed class FileOptions : IMessage, IMessage, IEquatable, IDeepCloneable { // Token: 0x17000113 RID: 275 // (get) Token: 0x06000468 RID: 1128 RVA: 0x00010C01 File Offset: 0x0000EE01 [DebuggerNonUserCode] public static MessageParser Parser { get { return FileOptions._parser; } } // Token: 0x17000114 RID: 276 // (get) Token: 0x06000469 RID: 1129 RVA: 0x00010C08 File Offset: 0x0000EE08 [DebuggerNonUserCode] public static MessageDescriptor Descriptor { get { return DescriptorReflection.Descriptor.MessageTypes[9]; } } // Token: 0x17000115 RID: 277 // (get) Token: 0x0600046A RID: 1130 RVA: 0x00010C1B File Offset: 0x0000EE1B [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor { get { return FileOptions.Descriptor; } } // Token: 0x0600046B RID: 1131 RVA: 0x00010C24 File Offset: 0x0000EE24 [DebuggerNonUserCode] public FileOptions() { } // Token: 0x0600046C RID: 1132 RVA: 0x00010C7C File Offset: 0x0000EE7C [DebuggerNonUserCode] public FileOptions(FileOptions other) : this() { this.javaPackage_ = other.javaPackage_; this.javaOuterClassname_ = other.javaOuterClassname_; this.javaMultipleFiles_ = other.javaMultipleFiles_; this.javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_; this.javaStringCheckUtf8_ = other.javaStringCheckUtf8_; this.optimizeFor_ = other.optimizeFor_; this.goPackage_ = other.goPackage_; this.ccGenericServices_ = other.ccGenericServices_; this.javaGenericServices_ = other.javaGenericServices_; this.pyGenericServices_ = other.pyGenericServices_; this.deprecated_ = other.deprecated_; this.ccEnableArenas_ = other.ccEnableArenas_; this.objcClassPrefix_ = other.objcClassPrefix_; this.csharpNamespace_ = other.csharpNamespace_; this.uninterpretedOption_ = other.uninterpretedOption_.Clone(); } // Token: 0x0600046D RID: 1133 RVA: 0x00010D48 File Offset: 0x0000EF48 [DebuggerNonUserCode] public FileOptions Clone() { return new FileOptions(this); } // Token: 0x17000116 RID: 278 // (get) Token: 0x0600046E RID: 1134 RVA: 0x00010D50 File Offset: 0x0000EF50 // (set) Token: 0x0600046F RID: 1135 RVA: 0x00010D58 File Offset: 0x0000EF58 [DebuggerNonUserCode] public string JavaPackage { get { return this.javaPackage_; } set { this.javaPackage_ = ProtoPreconditions.CheckNotNull(value, "value"); } } // Token: 0x17000117 RID: 279 // (get) Token: 0x06000470 RID: 1136 RVA: 0x00010D6B File Offset: 0x0000EF6B // (set) Token: 0x06000471 RID: 1137 RVA: 0x00010D73 File Offset: 0x0000EF73 [DebuggerNonUserCode] public string JavaOuterClassname { get { return this.javaOuterClassname_; } set { this.javaOuterClassname_ = ProtoPreconditions.CheckNotNull(value, "value"); } } // Token: 0x17000118 RID: 280 // (get) Token: 0x06000472 RID: 1138 RVA: 0x00010D86 File Offset: 0x0000EF86 // (set) Token: 0x06000473 RID: 1139 RVA: 0x00010D8E File Offset: 0x0000EF8E [DebuggerNonUserCode] public bool JavaMultipleFiles { get { return this.javaMultipleFiles_; } set { this.javaMultipleFiles_ = value; } } // Token: 0x17000119 RID: 281 // (get) Token: 0x06000474 RID: 1140 RVA: 0x00010D97 File Offset: 0x0000EF97 // (set) Token: 0x06000475 RID: 1141 RVA: 0x00010D9F File Offset: 0x0000EF9F [Obsolete] [DebuggerNonUserCode] public bool JavaGenerateEqualsAndHash { get { return this.javaGenerateEqualsAndHash_; } set { this.javaGenerateEqualsAndHash_ = value; } } // Token: 0x1700011A RID: 282 // (get) Token: 0x06000476 RID: 1142 RVA: 0x00010DA8 File Offset: 0x0000EFA8 // (set) Token: 0x06000477 RID: 1143 RVA: 0x00010DB0 File Offset: 0x0000EFB0 [DebuggerNonUserCode] public bool JavaStringCheckUtf8 { get { return this.javaStringCheckUtf8_; } set { this.javaStringCheckUtf8_ = value; } } // Token: 0x1700011B RID: 283 // (get) Token: 0x06000478 RID: 1144 RVA: 0x00010DB9 File Offset: 0x0000EFB9 // (set) Token: 0x06000479 RID: 1145 RVA: 0x00010DC1 File Offset: 0x0000EFC1 [DebuggerNonUserCode] public FileOptions.Types.OptimizeMode OptimizeFor { get { return this.optimizeFor_; } set { this.optimizeFor_ = value; } } // Token: 0x1700011C RID: 284 // (get) Token: 0x0600047A RID: 1146 RVA: 0x00010DCA File Offset: 0x0000EFCA // (set) Token: 0x0600047B RID: 1147 RVA: 0x00010DD2 File Offset: 0x0000EFD2 [DebuggerNonUserCode] public string GoPackage { get { return this.goPackage_; } set { this.goPackage_ = ProtoPreconditions.CheckNotNull(value, "value"); } } // Token: 0x1700011D RID: 285 // (get) Token: 0x0600047C RID: 1148 RVA: 0x00010DE5 File Offset: 0x0000EFE5 // (set) Token: 0x0600047D RID: 1149 RVA: 0x00010DED File Offset: 0x0000EFED [DebuggerNonUserCode] public bool CcGenericServices { get { return this.ccGenericServices_; } set { this.ccGenericServices_ = value; } } // Token: 0x1700011E RID: 286 // (get) Token: 0x0600047E RID: 1150 RVA: 0x00010DF6 File Offset: 0x0000EFF6 // (set) Token: 0x0600047F RID: 1151 RVA: 0x00010DFE File Offset: 0x0000EFFE [DebuggerNonUserCode] public bool JavaGenericServices { get { return this.javaGenericServices_; } set { this.javaGenericServices_ = value; } } // Token: 0x1700011F RID: 287 // (get) Token: 0x06000480 RID: 1152 RVA: 0x00010E07 File Offset: 0x0000F007 // (set) Token: 0x06000481 RID: 1153 RVA: 0x00010E0F File Offset: 0x0000F00F [DebuggerNonUserCode] public bool PyGenericServices { get { return this.pyGenericServices_; } set { this.pyGenericServices_ = value; } } // Token: 0x17000120 RID: 288 // (get) Token: 0x06000482 RID: 1154 RVA: 0x00010E18 File Offset: 0x0000F018 // (set) Token: 0x06000483 RID: 1155 RVA: 0x00010E20 File Offset: 0x0000F020 [DebuggerNonUserCode] public bool Deprecated { get { return this.deprecated_; } set { this.deprecated_ = value; } } // Token: 0x17000121 RID: 289 // (get) Token: 0x06000484 RID: 1156 RVA: 0x00010E29 File Offset: 0x0000F029 // (set) Token: 0x06000485 RID: 1157 RVA: 0x00010E31 File Offset: 0x0000F031 [DebuggerNonUserCode] public bool CcEnableArenas { get { return this.ccEnableArenas_; } set { this.ccEnableArenas_ = value; } } // Token: 0x17000122 RID: 290 // (get) Token: 0x06000486 RID: 1158 RVA: 0x00010E3A File Offset: 0x0000F03A // (set) Token: 0x06000487 RID: 1159 RVA: 0x00010E42 File Offset: 0x0000F042 [DebuggerNonUserCode] public string ObjcClassPrefix { get { return this.objcClassPrefix_; } set { this.objcClassPrefix_ = ProtoPreconditions.CheckNotNull(value, "value"); } } // Token: 0x17000123 RID: 291 // (get) Token: 0x06000488 RID: 1160 RVA: 0x00010E55 File Offset: 0x0000F055 // (set) Token: 0x06000489 RID: 1161 RVA: 0x00010E5D File Offset: 0x0000F05D [DebuggerNonUserCode] public string CsharpNamespace { get { return this.csharpNamespace_; } set { this.csharpNamespace_ = ProtoPreconditions.CheckNotNull(value, "value"); } } // Token: 0x17000124 RID: 292 // (get) Token: 0x0600048A RID: 1162 RVA: 0x00010E70 File Offset: 0x0000F070 [DebuggerNonUserCode] public RepeatedField UninterpretedOption { get { return this.uninterpretedOption_; } } // Token: 0x0600048B RID: 1163 RVA: 0x00010E78 File Offset: 0x0000F078 [DebuggerNonUserCode] public override bool Equals(object other) { return this.Equals(other as FileOptions); } // Token: 0x0600048C RID: 1164 RVA: 0x00010E88 File Offset: 0x0000F088 [DebuggerNonUserCode] public bool Equals(FileOptions other) { return other != null && (other == this || (!(this.JavaPackage != other.JavaPackage) && !(this.JavaOuterClassname != other.JavaOuterClassname) && this.JavaMultipleFiles == other.JavaMultipleFiles && this.JavaGenerateEqualsAndHash == other.JavaGenerateEqualsAndHash && this.JavaStringCheckUtf8 == other.JavaStringCheckUtf8 && this.OptimizeFor == other.OptimizeFor && !(this.GoPackage != other.GoPackage) && this.CcGenericServices == other.CcGenericServices && this.JavaGenericServices == other.JavaGenericServices && this.PyGenericServices == other.PyGenericServices && this.Deprecated == other.Deprecated && this.CcEnableArenas == other.CcEnableArenas && !(this.ObjcClassPrefix != other.ObjcClassPrefix) && !(this.CsharpNamespace != other.CsharpNamespace) && this.uninterpretedOption_.Equals(other.uninterpretedOption_))); } // Token: 0x0600048D RID: 1165 RVA: 0x00010FB0 File Offset: 0x0000F1B0 [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (this.JavaPackage.Length != 0) { num ^= this.JavaPackage.GetHashCode(); } if (this.JavaOuterClassname.Length != 0) { num ^= this.JavaOuterClassname.GetHashCode(); } if (this.JavaMultipleFiles) { num ^= this.JavaMultipleFiles.GetHashCode(); } if (this.JavaGenerateEqualsAndHash) { num ^= this.JavaGenerateEqualsAndHash.GetHashCode(); } if (this.JavaStringCheckUtf8) { num ^= this.JavaStringCheckUtf8.GetHashCode(); } if (this.OptimizeFor != (FileOptions.Types.OptimizeMode)0) { num ^= this.OptimizeFor.GetHashCode(); } if (this.GoPackage.Length != 0) { num ^= this.GoPackage.GetHashCode(); } if (this.CcGenericServices) { num ^= this.CcGenericServices.GetHashCode(); } if (this.JavaGenericServices) { num ^= this.JavaGenericServices.GetHashCode(); } if (this.PyGenericServices) { num ^= this.PyGenericServices.GetHashCode(); } if (this.Deprecated) { num ^= this.Deprecated.GetHashCode(); } if (this.CcEnableArenas) { num ^= this.CcEnableArenas.GetHashCode(); } if (this.ObjcClassPrefix.Length != 0) { num ^= this.ObjcClassPrefix.GetHashCode(); } if (this.CsharpNamespace.Length != 0) { num ^= this.CsharpNamespace.GetHashCode(); } return num ^ this.uninterpretedOption_.GetHashCode(); } // Token: 0x0600048E RID: 1166 RVA: 0x00007C02 File Offset: 0x00005E02 [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString(this); } // Token: 0x0600048F RID: 1167 RVA: 0x0001113C File Offset: 0x0000F33C [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (this.JavaPackage.Length != 0) { output.WriteRawTag(10); output.WriteString(this.JavaPackage); } if (this.JavaOuterClassname.Length != 0) { output.WriteRawTag(66); output.WriteString(this.JavaOuterClassname); } if (this.OptimizeFor != (FileOptions.Types.OptimizeMode)0) { output.WriteRawTag(72); output.WriteEnum((int)this.OptimizeFor); } if (this.JavaMultipleFiles) { output.WriteRawTag(80); output.WriteBool(this.JavaMultipleFiles); } if (this.GoPackage.Length != 0) { output.WriteRawTag(90); output.WriteString(this.GoPackage); } if (this.CcGenericServices) { output.WriteRawTag(128, 1); output.WriteBool(this.CcGenericServices); } if (this.JavaGenericServices) { output.WriteRawTag(136, 1); output.WriteBool(this.JavaGenericServices); } if (this.PyGenericServices) { output.WriteRawTag(144, 1); output.WriteBool(this.PyGenericServices); } if (this.JavaGenerateEqualsAndHash) { output.WriteRawTag(160, 1); output.WriteBool(this.JavaGenerateEqualsAndHash); } if (this.Deprecated) { output.WriteRawTag(184, 1); output.WriteBool(this.Deprecated); } if (this.JavaStringCheckUtf8) { output.WriteRawTag(216, 1); output.WriteBool(this.JavaStringCheckUtf8); } if (this.CcEnableArenas) { output.WriteRawTag(248, 1); output.WriteBool(this.CcEnableArenas); } if (this.ObjcClassPrefix.Length != 0) { output.WriteRawTag(162, 2); output.WriteString(this.ObjcClassPrefix); } if (this.CsharpNamespace.Length != 0) { output.WriteRawTag(170, 2); output.WriteString(this.CsharpNamespace); } this.uninterpretedOption_.WriteTo(output, FileOptions._repeated_uninterpretedOption_codec); } // Token: 0x06000490 RID: 1168 RVA: 0x00011320 File Offset: 0x0000F520 [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (this.JavaPackage.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(this.JavaPackage); } if (this.JavaOuterClassname.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(this.JavaOuterClassname); } if (this.JavaMultipleFiles) { num += 2; } if (this.JavaGenerateEqualsAndHash) { num += 3; } if (this.JavaStringCheckUtf8) { num += 3; } if (this.OptimizeFor != (FileOptions.Types.OptimizeMode)0) { num += 1 + CodedOutputStream.ComputeEnumSize((int)this.OptimizeFor); } if (this.GoPackage.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(this.GoPackage); } if (this.CcGenericServices) { num += 3; } if (this.JavaGenericServices) { num += 3; } if (this.PyGenericServices) { num += 3; } if (this.Deprecated) { num += 3; } if (this.CcEnableArenas) { num += 3; } if (this.ObjcClassPrefix.Length != 0) { num += 2 + CodedOutputStream.ComputeStringSize(this.ObjcClassPrefix); } if (this.CsharpNamespace.Length != 0) { num += 2 + CodedOutputStream.ComputeStringSize(this.CsharpNamespace); } return num + this.uninterpretedOption_.CalculateSize(FileOptions._repeated_uninterpretedOption_codec); } // Token: 0x06000491 RID: 1169 RVA: 0x0001144C File Offset: 0x0000F64C [DebuggerNonUserCode] public void MergeFrom(FileOptions other) { if (other == null) { return; } if (other.JavaPackage.Length != 0) { this.JavaPackage = other.JavaPackage; } if (other.JavaOuterClassname.Length != 0) { this.JavaOuterClassname = other.JavaOuterClassname; } if (other.JavaMultipleFiles) { this.JavaMultipleFiles = other.JavaMultipleFiles; } if (other.JavaGenerateEqualsAndHash) { this.JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash; } if (other.JavaStringCheckUtf8) { this.JavaStringCheckUtf8 = other.JavaStringCheckUtf8; } if (other.OptimizeFor != (FileOptions.Types.OptimizeMode)0) { this.OptimizeFor = other.OptimizeFor; } if (other.GoPackage.Length != 0) { this.GoPackage = other.GoPackage; } if (other.CcGenericServices) { this.CcGenericServices = other.CcGenericServices; } if (other.JavaGenericServices) { this.JavaGenericServices = other.JavaGenericServices; } if (other.PyGenericServices) { this.PyGenericServices = other.PyGenericServices; } if (other.Deprecated) { this.Deprecated = other.Deprecated; } if (other.CcEnableArenas) { this.CcEnableArenas = other.CcEnableArenas; } if (other.ObjcClassPrefix.Length != 0) { this.ObjcClassPrefix = other.ObjcClassPrefix; } if (other.CsharpNamespace.Length != 0) { this.CsharpNamespace = other.CsharpNamespace; } this.uninterpretedOption_.Add(other.uninterpretedOption_); } // Token: 0x06000492 RID: 1170 RVA: 0x000115A0 File Offset: 0x0000F7A0 [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0U) { if (num <= 136U) { if (num <= 72U) { if (num == 10U) { this.JavaPackage = input.ReadString(); continue; } if (num == 66U) { this.JavaOuterClassname = input.ReadString(); continue; } if (num == 72U) { this.optimizeFor_ = (FileOptions.Types.OptimizeMode)input.ReadEnum(); continue; } } else if (num <= 90U) { if (num == 80U) { this.JavaMultipleFiles = input.ReadBool(); continue; } if (num == 90U) { this.GoPackage = input.ReadString(); continue; } } else { if (num == 128U) { this.CcGenericServices = input.ReadBool(); continue; } if (num == 136U) { this.JavaGenericServices = input.ReadBool(); continue; } } } else if (num <= 216U) { if (num <= 160U) { if (num == 144U) { this.PyGenericServices = input.ReadBool(); continue; } if (num == 160U) { this.JavaGenerateEqualsAndHash = input.ReadBool(); continue; } } else { if (num == 184U) { this.Deprecated = input.ReadBool(); continue; } if (num == 216U) { this.JavaStringCheckUtf8 = input.ReadBool(); continue; } } } else if (num <= 290U) { if (num == 248U) { this.CcEnableArenas = input.ReadBool(); continue; } if (num == 290U) { this.ObjcClassPrefix = input.ReadString(); continue; } } else { if (num == 298U) { this.CsharpNamespace = input.ReadString(); continue; } if (num == 7994U) { this.uninterpretedOption_.AddEntriesFrom(input, FileOptions._repeated_uninterpretedOption_codec); continue; } } input.SkipLastField(); } } // Token: 0x04000194 RID: 404 private static readonly MessageParser _parser = new MessageParser(() => new FileOptions()); // Token: 0x04000195 RID: 405 public const int JavaPackageFieldNumber = 1; // Token: 0x04000196 RID: 406 private string javaPackage_ = ""; // Token: 0x04000197 RID: 407 public const int JavaOuterClassnameFieldNumber = 8; // Token: 0x04000198 RID: 408 private string javaOuterClassname_ = ""; // Token: 0x04000199 RID: 409 public const int JavaMultipleFilesFieldNumber = 10; // Token: 0x0400019A RID: 410 private bool javaMultipleFiles_; // Token: 0x0400019B RID: 411 public const int JavaGenerateEqualsAndHashFieldNumber = 20; // Token: 0x0400019C RID: 412 private bool javaGenerateEqualsAndHash_; // Token: 0x0400019D RID: 413 public const int JavaStringCheckUtf8FieldNumber = 27; // Token: 0x0400019E RID: 414 private bool javaStringCheckUtf8_; // Token: 0x0400019F RID: 415 public const int OptimizeForFieldNumber = 9; // Token: 0x040001A0 RID: 416 private FileOptions.Types.OptimizeMode optimizeFor_; // Token: 0x040001A1 RID: 417 public const int GoPackageFieldNumber = 11; // Token: 0x040001A2 RID: 418 private string goPackage_ = ""; // Token: 0x040001A3 RID: 419 public const int CcGenericServicesFieldNumber = 16; // Token: 0x040001A4 RID: 420 private bool ccGenericServices_; // Token: 0x040001A5 RID: 421 public const int JavaGenericServicesFieldNumber = 17; // Token: 0x040001A6 RID: 422 private bool javaGenericServices_; // Token: 0x040001A7 RID: 423 public const int PyGenericServicesFieldNumber = 18; // Token: 0x040001A8 RID: 424 private bool pyGenericServices_; // Token: 0x040001A9 RID: 425 public const int DeprecatedFieldNumber = 23; // Token: 0x040001AA RID: 426 private bool deprecated_; // Token: 0x040001AB RID: 427 public const int CcEnableArenasFieldNumber = 31; // Token: 0x040001AC RID: 428 private bool ccEnableArenas_; // Token: 0x040001AD RID: 429 public const int ObjcClassPrefixFieldNumber = 36; // Token: 0x040001AE RID: 430 private string objcClassPrefix_ = ""; // Token: 0x040001AF RID: 431 public const int CsharpNamespaceFieldNumber = 37; // Token: 0x040001B0 RID: 432 private string csharpNamespace_ = ""; // Token: 0x040001B1 RID: 433 public const int UninterpretedOptionFieldNumber = 999; // Token: 0x040001B2 RID: 434 private static readonly FieldCodec _repeated_uninterpretedOption_codec = FieldCodec.ForMessage(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser); // Token: 0x040001B3 RID: 435 private readonly RepeatedField uninterpretedOption_ = new RepeatedField(); // Token: 0x020000AD RID: 173 [DebuggerNonUserCode] public static class Types { // Token: 0x020000D9 RID: 217 internal enum OptimizeMode { // Token: 0x04000366 RID: 870 [OriginalName("SPEED")] Speed = 1, // Token: 0x04000367 RID: 871 [OriginalName("CODE_SIZE")] CodeSize, // Token: 0x04000368 RID: 872 [OriginalName("LITE_RUNTIME")] LiteRuntime } } } }