Files
2026-06-04 11:42:34 +02:00

208 lines
5.3 KiB
C#

using System;
using System.Diagnostics;
using Google.Protobuf.Collections;
namespace Google.Protobuf.Reflection
{
// Token: 0x02000051 RID: 81
internal sealed class MethodOptions : IMessage<MethodOptions>, IMessage, IEquatable<MethodOptions>, IDeepCloneable<MethodOptions>
{
// Token: 0x1700014B RID: 331
// (get) Token: 0x06000511 RID: 1297 RVA: 0x000128F4 File Offset: 0x00010AF4
[DebuggerNonUserCode]
public static MessageParser<MethodOptions> Parser
{
get
{
return MethodOptions._parser;
}
}
// Token: 0x1700014C RID: 332
// (get) Token: 0x06000512 RID: 1298 RVA: 0x000128FB File Offset: 0x00010AFB
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return DescriptorReflection.Descriptor.MessageTypes[16];
}
}
// Token: 0x1700014D RID: 333
// (get) Token: 0x06000513 RID: 1299 RVA: 0x0001290E File Offset: 0x00010B0E
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return MethodOptions.Descriptor;
}
}
// Token: 0x06000514 RID: 1300 RVA: 0x00012915 File Offset: 0x00010B15
[DebuggerNonUserCode]
public MethodOptions()
{
}
// Token: 0x06000515 RID: 1301 RVA: 0x00012928 File Offset: 0x00010B28
[DebuggerNonUserCode]
public MethodOptions(MethodOptions other)
: this()
{
this.deprecated_ = other.deprecated_;
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
}
// Token: 0x06000516 RID: 1302 RVA: 0x0001294D File Offset: 0x00010B4D
[DebuggerNonUserCode]
public MethodOptions Clone()
{
return new MethodOptions(this);
}
// Token: 0x1700014E RID: 334
// (get) Token: 0x06000517 RID: 1303 RVA: 0x00012955 File Offset: 0x00010B55
// (set) Token: 0x06000518 RID: 1304 RVA: 0x0001295D File Offset: 0x00010B5D
[DebuggerNonUserCode]
public bool Deprecated
{
get
{
return this.deprecated_;
}
set
{
this.deprecated_ = value;
}
}
// Token: 0x1700014F RID: 335
// (get) Token: 0x06000519 RID: 1305 RVA: 0x00012966 File Offset: 0x00010B66
[DebuggerNonUserCode]
public RepeatedField<UninterpretedOption> UninterpretedOption
{
get
{
return this.uninterpretedOption_;
}
}
// Token: 0x0600051A RID: 1306 RVA: 0x0001296E File Offset: 0x00010B6E
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as MethodOptions);
}
// Token: 0x0600051B RID: 1307 RVA: 0x0001297C File Offset: 0x00010B7C
[DebuggerNonUserCode]
public bool Equals(MethodOptions other)
{
return other != null && (other == this || (this.Deprecated == other.Deprecated && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
}
// Token: 0x0600051C RID: 1308 RVA: 0x000129B0 File Offset: 0x00010BB0
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Deprecated)
{
num ^= this.Deprecated.GetHashCode();
}
return num ^ this.uninterpretedOption_.GetHashCode();
}
// Token: 0x0600051D RID: 1309 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x0600051E RID: 1310 RVA: 0x000129E7 File Offset: 0x00010BE7
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Deprecated)
{
output.WriteRawTag(136, 2);
output.WriteBool(this.Deprecated);
}
this.uninterpretedOption_.WriteTo(output, MethodOptions._repeated_uninterpretedOption_codec);
}
// Token: 0x0600051F RID: 1311 RVA: 0x00012A1C File Offset: 0x00010C1C
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Deprecated)
{
num += 3;
}
return num + this.uninterpretedOption_.CalculateSize(MethodOptions._repeated_uninterpretedOption_codec);
}
// Token: 0x06000520 RID: 1312 RVA: 0x00012A4B File Offset: 0x00010C4B
[DebuggerNonUserCode]
public void MergeFrom(MethodOptions other)
{
if (other == null)
{
return;
}
if (other.Deprecated)
{
this.Deprecated = other.Deprecated;
}
this.uninterpretedOption_.Add(other.uninterpretedOption_);
}
// Token: 0x06000521 RID: 1313 RVA: 0x00012A78 File Offset: 0x00010C78
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 264U)
{
if (num != 7994U)
{
input.SkipLastField();
}
else
{
this.uninterpretedOption_.AddEntriesFrom(input, MethodOptions._repeated_uninterpretedOption_codec);
}
}
else
{
this.Deprecated = input.ReadBool();
}
}
}
// Token: 0x040001E8 RID: 488
private static readonly MessageParser<MethodOptions> _parser = new MessageParser<MethodOptions>(() => new MethodOptions());
// Token: 0x040001E9 RID: 489
public const int DeprecatedFieldNumber = 33;
// Token: 0x040001EA RID: 490
private bool deprecated_;
// Token: 0x040001EB RID: 491
public const int UninterpretedOptionFieldNumber = 999;
// Token: 0x040001EC RID: 492
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
// Token: 0x040001ED RID: 493
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
}
}