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

441 lines
10 KiB
C#

using System;
using System.Diagnostics;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200001D RID: 29
public sealed class Method : IMessage<Method>, IMessage, IEquatable<Method>, IDeepCloneable<Method>
{
// Token: 0x1700003A RID: 58
// (get) Token: 0x06000188 RID: 392 RVA: 0x0000863E File Offset: 0x0000683E
[DebuggerNonUserCode]
public static MessageParser<Method> Parser
{
get
{
return Method._parser;
}
}
// Token: 0x1700003B RID: 59
// (get) Token: 0x06000189 RID: 393 RVA: 0x00008645 File Offset: 0x00006845
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return ApiReflection.Descriptor.MessageTypes[1];
}
}
// Token: 0x1700003C RID: 60
// (get) Token: 0x0600018A RID: 394 RVA: 0x00008657 File Offset: 0x00006857
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Method.Descriptor;
}
}
// Token: 0x0600018B RID: 395 RVA: 0x0000865E File Offset: 0x0000685E
[DebuggerNonUserCode]
public Method()
{
}
// Token: 0x0600018C RID: 396 RVA: 0x00008694 File Offset: 0x00006894
[DebuggerNonUserCode]
public Method(Method other)
: this()
{
this.name_ = other.name_;
this.requestTypeUrl_ = other.requestTypeUrl_;
this.requestStreaming_ = other.requestStreaming_;
this.responseTypeUrl_ = other.responseTypeUrl_;
this.responseStreaming_ = other.responseStreaming_;
this.options_ = other.options_.Clone();
this.syntax_ = other.syntax_;
}
// Token: 0x0600018D RID: 397 RVA: 0x00008700 File Offset: 0x00006900
[DebuggerNonUserCode]
public Method Clone()
{
return new Method(this);
}
// Token: 0x1700003D RID: 61
// (get) Token: 0x0600018E RID: 398 RVA: 0x00008708 File Offset: 0x00006908
// (set) Token: 0x0600018F RID: 399 RVA: 0x00008710 File Offset: 0x00006910
[DebuggerNonUserCode]
public string Name
{
get
{
return this.name_;
}
set
{
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x1700003E RID: 62
// (get) Token: 0x06000190 RID: 400 RVA: 0x00008723 File Offset: 0x00006923
// (set) Token: 0x06000191 RID: 401 RVA: 0x0000872B File Offset: 0x0000692B
[DebuggerNonUserCode]
public string RequestTypeUrl
{
get
{
return this.requestTypeUrl_;
}
set
{
this.requestTypeUrl_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x1700003F RID: 63
// (get) Token: 0x06000192 RID: 402 RVA: 0x0000873E File Offset: 0x0000693E
// (set) Token: 0x06000193 RID: 403 RVA: 0x00008746 File Offset: 0x00006946
[DebuggerNonUserCode]
public bool RequestStreaming
{
get
{
return this.requestStreaming_;
}
set
{
this.requestStreaming_ = value;
}
}
// Token: 0x17000040 RID: 64
// (get) Token: 0x06000194 RID: 404 RVA: 0x0000874F File Offset: 0x0000694F
// (set) Token: 0x06000195 RID: 405 RVA: 0x00008757 File Offset: 0x00006957
[DebuggerNonUserCode]
public string ResponseTypeUrl
{
get
{
return this.responseTypeUrl_;
}
set
{
this.responseTypeUrl_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x17000041 RID: 65
// (get) Token: 0x06000196 RID: 406 RVA: 0x0000876A File Offset: 0x0000696A
// (set) Token: 0x06000197 RID: 407 RVA: 0x00008772 File Offset: 0x00006972
[DebuggerNonUserCode]
public bool ResponseStreaming
{
get
{
return this.responseStreaming_;
}
set
{
this.responseStreaming_ = value;
}
}
// Token: 0x17000042 RID: 66
// (get) Token: 0x06000198 RID: 408 RVA: 0x0000877B File Offset: 0x0000697B
[DebuggerNonUserCode]
public RepeatedField<Option> Options
{
get
{
return this.options_;
}
}
// Token: 0x17000043 RID: 67
// (get) Token: 0x06000199 RID: 409 RVA: 0x00008783 File Offset: 0x00006983
// (set) Token: 0x0600019A RID: 410 RVA: 0x0000878B File Offset: 0x0000698B
[DebuggerNonUserCode]
public Syntax Syntax
{
get
{
return this.syntax_;
}
set
{
this.syntax_ = value;
}
}
// Token: 0x0600019B RID: 411 RVA: 0x00008794 File Offset: 0x00006994
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Method);
}
// Token: 0x0600019C RID: 412 RVA: 0x000087A4 File Offset: 0x000069A4
[DebuggerNonUserCode]
public bool Equals(Method other)
{
return other != null && (other == this || (!(this.Name != other.Name) && !(this.RequestTypeUrl != other.RequestTypeUrl) && this.RequestStreaming == other.RequestStreaming && !(this.ResponseTypeUrl != other.ResponseTypeUrl) && this.ResponseStreaming == other.ResponseStreaming && this.options_.Equals(other.options_) && this.Syntax == other.Syntax));
}
// Token: 0x0600019D RID: 413 RVA: 0x00008844 File Offset: 0x00006A44
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Name.Length != 0)
{
num ^= this.Name.GetHashCode();
}
if (this.RequestTypeUrl.Length != 0)
{
num ^= this.RequestTypeUrl.GetHashCode();
}
if (this.RequestStreaming)
{
num ^= this.RequestStreaming.GetHashCode();
}
if (this.ResponseTypeUrl.Length != 0)
{
num ^= this.ResponseTypeUrl.GetHashCode();
}
if (this.ResponseStreaming)
{
num ^= this.ResponseStreaming.GetHashCode();
}
num ^= this.options_.GetHashCode();
if (this.Syntax != Syntax.Proto2)
{
num ^= this.Syntax.GetHashCode();
}
return num;
}
// Token: 0x0600019E RID: 414 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x0600019F RID: 415 RVA: 0x00008904 File Offset: 0x00006B04
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Name.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.Name);
}
if (this.RequestTypeUrl.Length != 0)
{
output.WriteRawTag(18);
output.WriteString(this.RequestTypeUrl);
}
if (this.RequestStreaming)
{
output.WriteRawTag(24);
output.WriteBool(this.RequestStreaming);
}
if (this.ResponseTypeUrl.Length != 0)
{
output.WriteRawTag(34);
output.WriteString(this.ResponseTypeUrl);
}
if (this.ResponseStreaming)
{
output.WriteRawTag(40);
output.WriteBool(this.ResponseStreaming);
}
this.options_.WriteTo(output, Method._repeated_options_codec);
if (this.Syntax != Syntax.Proto2)
{
output.WriteRawTag(56);
output.WriteEnum((int)this.Syntax);
}
}
// Token: 0x060001A0 RID: 416 RVA: 0x000089DC File Offset: 0x00006BDC
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Name.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
}
if (this.RequestTypeUrl.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.RequestTypeUrl);
}
if (this.RequestStreaming)
{
num += 2;
}
if (this.ResponseTypeUrl.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.ResponseTypeUrl);
}
if (this.ResponseStreaming)
{
num += 2;
}
num += this.options_.CalculateSize(Method._repeated_options_codec);
if (this.Syntax != Syntax.Proto2)
{
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Syntax);
}
return num;
}
// Token: 0x060001A1 RID: 417 RVA: 0x00008A88 File Offset: 0x00006C88
[DebuggerNonUserCode]
public void MergeFrom(Method other)
{
if (other == null)
{
return;
}
if (other.Name.Length != 0)
{
this.Name = other.Name;
}
if (other.RequestTypeUrl.Length != 0)
{
this.RequestTypeUrl = other.RequestTypeUrl;
}
if (other.RequestStreaming)
{
this.RequestStreaming = other.RequestStreaming;
}
if (other.ResponseTypeUrl.Length != 0)
{
this.ResponseTypeUrl = other.ResponseTypeUrl;
}
if (other.ResponseStreaming)
{
this.ResponseStreaming = other.ResponseStreaming;
}
this.options_.Add(other.options_);
if (other.Syntax != Syntax.Proto2)
{
this.Syntax = other.Syntax;
}
}
// Token: 0x060001A2 RID: 418 RVA: 0x00008B34 File Offset: 0x00006D34
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num <= 24U)
{
if (num == 10U)
{
this.Name = input.ReadString();
continue;
}
if (num == 18U)
{
this.RequestTypeUrl = input.ReadString();
continue;
}
if (num == 24U)
{
this.RequestStreaming = input.ReadBool();
continue;
}
}
else if (num <= 40U)
{
if (num == 34U)
{
this.ResponseTypeUrl = input.ReadString();
continue;
}
if (num == 40U)
{
this.ResponseStreaming = input.ReadBool();
continue;
}
}
else
{
if (num == 50U)
{
this.options_.AddEntriesFrom(input, Method._repeated_options_codec);
continue;
}
if (num == 56U)
{
this.syntax_ = (Syntax)input.ReadEnum();
continue;
}
}
input.SkipLastField();
}
}
// Token: 0x04000068 RID: 104
private static readonly MessageParser<Method> _parser = new MessageParser<Method>(() => new Method());
// Token: 0x04000069 RID: 105
public const int NameFieldNumber = 1;
// Token: 0x0400006A RID: 106
private string name_ = "";
// Token: 0x0400006B RID: 107
public const int RequestTypeUrlFieldNumber = 2;
// Token: 0x0400006C RID: 108
private string requestTypeUrl_ = "";
// Token: 0x0400006D RID: 109
public const int RequestStreamingFieldNumber = 3;
// Token: 0x0400006E RID: 110
private bool requestStreaming_;
// Token: 0x0400006F RID: 111
public const int ResponseTypeUrlFieldNumber = 4;
// Token: 0x04000070 RID: 112
private string responseTypeUrl_ = "";
// Token: 0x04000071 RID: 113
public const int ResponseStreamingFieldNumber = 5;
// Token: 0x04000072 RID: 114
private bool responseStreaming_;
// Token: 0x04000073 RID: 115
public const int OptionsFieldNumber = 6;
// Token: 0x04000074 RID: 116
private static readonly FieldCodec<Option> _repeated_options_codec = FieldCodec.ForMessage<Option>(50U, Option.Parser);
// Token: 0x04000075 RID: 117
private readonly RepeatedField<Option> options_ = new RepeatedField<Option>();
// Token: 0x04000076 RID: 118
public const int SyntaxFieldNumber = 7;
// Token: 0x04000077 RID: 119
private Syntax syntax_;
}
}