208 lines
5.4 KiB
C#
208 lines
5.4 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using Google.Protobuf.Collections;
|
|
|
|
namespace Google.Protobuf.Reflection
|
|
{
|
|
// Token: 0x02000050 RID: 80
|
|
internal sealed class ServiceOptions : IMessage<ServiceOptions>, IMessage, IEquatable<ServiceOptions>, IDeepCloneable<ServiceOptions>
|
|
{
|
|
// Token: 0x17000146 RID: 326
|
|
// (get) Token: 0x060004FF RID: 1279 RVA: 0x000126F0 File Offset: 0x000108F0
|
|
[DebuggerNonUserCode]
|
|
public static MessageParser<ServiceOptions> Parser
|
|
{
|
|
get
|
|
{
|
|
return ServiceOptions._parser;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000147 RID: 327
|
|
// (get) Token: 0x06000500 RID: 1280 RVA: 0x000126F7 File Offset: 0x000108F7
|
|
[DebuggerNonUserCode]
|
|
public static MessageDescriptor Descriptor
|
|
{
|
|
get
|
|
{
|
|
return DescriptorReflection.Descriptor.MessageTypes[15];
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000148 RID: 328
|
|
// (get) Token: 0x06000501 RID: 1281 RVA: 0x0001270A File Offset: 0x0001090A
|
|
[DebuggerNonUserCode]
|
|
MessageDescriptor IMessage.Descriptor
|
|
{
|
|
get
|
|
{
|
|
return ServiceOptions.Descriptor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000502 RID: 1282 RVA: 0x00012711 File Offset: 0x00010911
|
|
[DebuggerNonUserCode]
|
|
public ServiceOptions()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000503 RID: 1283 RVA: 0x00012724 File Offset: 0x00010924
|
|
[DebuggerNonUserCode]
|
|
public ServiceOptions(ServiceOptions other)
|
|
: this()
|
|
{
|
|
this.deprecated_ = other.deprecated_;
|
|
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
|
}
|
|
|
|
// Token: 0x06000504 RID: 1284 RVA: 0x00012749 File Offset: 0x00010949
|
|
[DebuggerNonUserCode]
|
|
public ServiceOptions Clone()
|
|
{
|
|
return new ServiceOptions(this);
|
|
}
|
|
|
|
// Token: 0x17000149 RID: 329
|
|
// (get) Token: 0x06000505 RID: 1285 RVA: 0x00012751 File Offset: 0x00010951
|
|
// (set) Token: 0x06000506 RID: 1286 RVA: 0x00012759 File Offset: 0x00010959
|
|
[DebuggerNonUserCode]
|
|
public bool Deprecated
|
|
{
|
|
get
|
|
{
|
|
return this.deprecated_;
|
|
}
|
|
set
|
|
{
|
|
this.deprecated_ = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700014A RID: 330
|
|
// (get) Token: 0x06000507 RID: 1287 RVA: 0x00012762 File Offset: 0x00010962
|
|
[DebuggerNonUserCode]
|
|
public RepeatedField<UninterpretedOption> UninterpretedOption
|
|
{
|
|
get
|
|
{
|
|
return this.uninterpretedOption_;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000508 RID: 1288 RVA: 0x0001276A File Offset: 0x0001096A
|
|
[DebuggerNonUserCode]
|
|
public override bool Equals(object other)
|
|
{
|
|
return this.Equals(other as ServiceOptions);
|
|
}
|
|
|
|
// Token: 0x06000509 RID: 1289 RVA: 0x00012778 File Offset: 0x00010978
|
|
[DebuggerNonUserCode]
|
|
public bool Equals(ServiceOptions other)
|
|
{
|
|
return other != null && (other == this || (this.Deprecated == other.Deprecated && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
|
|
}
|
|
|
|
// Token: 0x0600050A RID: 1290 RVA: 0x000127AC File Offset: 0x000109AC
|
|
[DebuggerNonUserCode]
|
|
public override int GetHashCode()
|
|
{
|
|
int num = 1;
|
|
if (this.Deprecated)
|
|
{
|
|
num ^= this.Deprecated.GetHashCode();
|
|
}
|
|
return num ^ this.uninterpretedOption_.GetHashCode();
|
|
}
|
|
|
|
// Token: 0x0600050B RID: 1291 RVA: 0x00007C02 File Offset: 0x00005E02
|
|
[DebuggerNonUserCode]
|
|
public override string ToString()
|
|
{
|
|
return JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
// Token: 0x0600050C RID: 1292 RVA: 0x000127E3 File Offset: 0x000109E3
|
|
[DebuggerNonUserCode]
|
|
public void WriteTo(CodedOutputStream output)
|
|
{
|
|
if (this.Deprecated)
|
|
{
|
|
output.WriteRawTag(136, 2);
|
|
output.WriteBool(this.Deprecated);
|
|
}
|
|
this.uninterpretedOption_.WriteTo(output, ServiceOptions._repeated_uninterpretedOption_codec);
|
|
}
|
|
|
|
// Token: 0x0600050D RID: 1293 RVA: 0x00012818 File Offset: 0x00010A18
|
|
[DebuggerNonUserCode]
|
|
public int CalculateSize()
|
|
{
|
|
int num = 0;
|
|
if (this.Deprecated)
|
|
{
|
|
num += 3;
|
|
}
|
|
return num + this.uninterpretedOption_.CalculateSize(ServiceOptions._repeated_uninterpretedOption_codec);
|
|
}
|
|
|
|
// Token: 0x0600050E RID: 1294 RVA: 0x00012847 File Offset: 0x00010A47
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(ServiceOptions other)
|
|
{
|
|
if (other == null)
|
|
{
|
|
return;
|
|
}
|
|
if (other.Deprecated)
|
|
{
|
|
this.Deprecated = other.Deprecated;
|
|
}
|
|
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
|
}
|
|
|
|
// Token: 0x0600050F RID: 1295 RVA: 0x00012874 File Offset: 0x00010A74
|
|
[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, ServiceOptions._repeated_uninterpretedOption_codec);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.Deprecated = input.ReadBool();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x040001E2 RID: 482
|
|
private static readonly MessageParser<ServiceOptions> _parser = new MessageParser<ServiceOptions>(() => new ServiceOptions());
|
|
|
|
// Token: 0x040001E3 RID: 483
|
|
public const int DeprecatedFieldNumber = 33;
|
|
|
|
// Token: 0x040001E4 RID: 484
|
|
private bool deprecated_;
|
|
|
|
// Token: 0x040001E5 RID: 485
|
|
public const int UninterpretedOptionFieldNumber = 999;
|
|
|
|
// Token: 0x040001E6 RID: 486
|
|
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
|
|
|
// Token: 0x040001E7 RID: 487
|
|
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
|
}
|
|
}
|