This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,231 @@
using System;
using System.Diagnostics;
namespace Google.Protobuf.Reflection
{
// Token: 0x02000045 RID: 69
internal sealed class OneofDescriptorProto : IMessage<OneofDescriptorProto>, IMessage, IEquatable<OneofDescriptorProto>, IDeepCloneable<OneofDescriptorProto>
{
// Token: 0x170000F3 RID: 243
// (get) Token: 0x060003FD RID: 1021 RVA: 0x0000FA85 File Offset: 0x0000DC85
[DebuggerNonUserCode]
public static MessageParser<OneofDescriptorProto> Parser
{
get
{
return OneofDescriptorProto._parser;
}
}
// Token: 0x170000F4 RID: 244
// (get) Token: 0x060003FE RID: 1022 RVA: 0x0000FA8C File Offset: 0x0000DC8C
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return DescriptorReflection.Descriptor.MessageTypes[4];
}
}
// Token: 0x170000F5 RID: 245
// (get) Token: 0x060003FF RID: 1023 RVA: 0x0000FA9E File Offset: 0x0000DC9E
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return OneofDescriptorProto.Descriptor;
}
}
// Token: 0x06000400 RID: 1024 RVA: 0x0000FAA5 File Offset: 0x0000DCA5
[DebuggerNonUserCode]
public OneofDescriptorProto()
{
}
// Token: 0x06000401 RID: 1025 RVA: 0x0000FAB8 File Offset: 0x0000DCB8
[DebuggerNonUserCode]
public OneofDescriptorProto(OneofDescriptorProto other)
: this()
{
this.name_ = other.name_;
this.Options = ((other.options_ != null) ? other.Options.Clone() : null);
}
// Token: 0x06000402 RID: 1026 RVA: 0x0000FAE8 File Offset: 0x0000DCE8
[DebuggerNonUserCode]
public OneofDescriptorProto Clone()
{
return new OneofDescriptorProto(this);
}
// Token: 0x170000F6 RID: 246
// (get) Token: 0x06000403 RID: 1027 RVA: 0x0000FAF0 File Offset: 0x0000DCF0
// (set) Token: 0x06000404 RID: 1028 RVA: 0x0000FAF8 File Offset: 0x0000DCF8
[DebuggerNonUserCode]
public string Name
{
get
{
return this.name_;
}
set
{
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x170000F7 RID: 247
// (get) Token: 0x06000405 RID: 1029 RVA: 0x0000FB0B File Offset: 0x0000DD0B
// (set) Token: 0x06000406 RID: 1030 RVA: 0x0000FB13 File Offset: 0x0000DD13
[DebuggerNonUserCode]
public OneofOptions Options
{
get
{
return this.options_;
}
set
{
this.options_ = value;
}
}
// Token: 0x06000407 RID: 1031 RVA: 0x0000FB1C File Offset: 0x0000DD1C
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as OneofDescriptorProto);
}
// Token: 0x06000408 RID: 1032 RVA: 0x0000FB2A File Offset: 0x0000DD2A
[DebuggerNonUserCode]
public bool Equals(OneofDescriptorProto other)
{
return other != null && (other == this || (!(this.Name != other.Name) && object.Equals(this.Options, other.Options)));
}
// Token: 0x06000409 RID: 1033 RVA: 0x0000FB64 File Offset: 0x0000DD64
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Name.Length != 0)
{
num ^= this.Name.GetHashCode();
}
if (this.options_ != null)
{
num ^= this.Options.GetHashCode();
}
return num;
}
// Token: 0x0600040A RID: 1034 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x0600040B RID: 1035 RVA: 0x0000FBA5 File Offset: 0x0000DDA5
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Name.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.Name);
}
if (this.options_ != null)
{
output.WriteRawTag(18);
output.WriteMessage(this.Options);
}
}
// Token: 0x0600040C RID: 1036 RVA: 0x0000FBE4 File Offset: 0x0000DDE4
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Name.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
}
if (this.options_ != null)
{
num += 1 + CodedOutputStream.ComputeMessageSize(this.Options);
}
return num;
}
// Token: 0x0600040D RID: 1037 RVA: 0x0000FC2C File Offset: 0x0000DE2C
[DebuggerNonUserCode]
public void MergeFrom(OneofDescriptorProto other)
{
if (other == null)
{
return;
}
if (other.Name.Length != 0)
{
this.Name = other.Name;
}
if (other.options_ != null)
{
if (this.options_ == null)
{
this.options_ = new OneofOptions();
}
this.Options.MergeFrom(other.Options);
}
}
// Token: 0x0600040E RID: 1038 RVA: 0x0000FC84 File Offset: 0x0000DE84
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 10U)
{
if (num != 18U)
{
input.SkipLastField();
}
else
{
if (this.options_ == null)
{
this.options_ = new OneofOptions();
}
input.ReadMessage(this.options_);
}
}
else
{
this.Name = input.ReadString();
}
}
}
// Token: 0x0400016B RID: 363
private static readonly MessageParser<OneofDescriptorProto> _parser = new MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
// Token: 0x0400016C RID: 364
public const int NameFieldNumber = 1;
// Token: 0x0400016D RID: 365
private string name_ = "";
// Token: 0x0400016E RID: 366
public const int OptionsFieldNumber = 2;
// Token: 0x0400016F RID: 367
private OneofOptions options_;
}
}