scripts
This commit is contained in:
@@ -0,0 +1,177 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Reflection;
|
||||
|
||||
namespace Google.Protobuf.WellKnownTypes
|
||||
{
|
||||
// Token: 0x0200003F RID: 63
|
||||
public sealed class BytesValue : IMessage<BytesValue>, IMessage, IEquatable<BytesValue>, IDeepCloneable<BytesValue>
|
||||
{
|
||||
// Token: 0x170000C1 RID: 193
|
||||
// (get) Token: 0x0600037B RID: 891 RVA: 0x0000D182 File Offset: 0x0000B382
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<BytesValue> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return BytesValue._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000C2 RID: 194
|
||||
// (get) Token: 0x0600037C RID: 892 RVA: 0x0000D189 File Offset: 0x0000B389
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return WrappersReflection.Descriptor.MessageTypes[8];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000C3 RID: 195
|
||||
// (get) Token: 0x0600037D RID: 893 RVA: 0x0000D19B File Offset: 0x0000B39B
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return BytesValue.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600037E RID: 894 RVA: 0x0000D1A2 File Offset: 0x0000B3A2
|
||||
[DebuggerNonUserCode]
|
||||
public BytesValue()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600037F RID: 895 RVA: 0x0000D1B5 File Offset: 0x0000B3B5
|
||||
[DebuggerNonUserCode]
|
||||
public BytesValue(BytesValue other)
|
||||
: this()
|
||||
{
|
||||
this.value_ = other.value_;
|
||||
}
|
||||
|
||||
// Token: 0x06000380 RID: 896 RVA: 0x0000D1C9 File Offset: 0x0000B3C9
|
||||
[DebuggerNonUserCode]
|
||||
public BytesValue Clone()
|
||||
{
|
||||
return new BytesValue(this);
|
||||
}
|
||||
|
||||
// Token: 0x170000C4 RID: 196
|
||||
// (get) Token: 0x06000381 RID: 897 RVA: 0x0000D1D1 File Offset: 0x0000B3D1
|
||||
// (set) Token: 0x06000382 RID: 898 RVA: 0x0000D1D9 File Offset: 0x0000B3D9
|
||||
[DebuggerNonUserCode]
|
||||
public ByteString Value
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.value_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.value_ = ProtoPreconditions.CheckNotNull<ByteString>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000383 RID: 899 RVA: 0x0000D1EC File Offset: 0x0000B3EC
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as BytesValue);
|
||||
}
|
||||
|
||||
// Token: 0x06000384 RID: 900 RVA: 0x0000D1FA File Offset: 0x0000B3FA
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(BytesValue other)
|
||||
{
|
||||
return other != null && (other == this || !(this.Value != other.Value));
|
||||
}
|
||||
|
||||
// Token: 0x06000385 RID: 901 RVA: 0x0000D220 File Offset: 0x0000B420
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Value.Length != 0)
|
||||
{
|
||||
num ^= this.Value.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000386 RID: 902 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x06000387 RID: 903 RVA: 0x0000D24B File Offset: 0x0000B44B
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Value.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteBytes(this.Value);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000388 RID: 904 RVA: 0x0000D270 File Offset: 0x0000B470
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Value.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeBytesSize(this.Value);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000389 RID: 905 RVA: 0x0000D29D File Offset: 0x0000B49D
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(BytesValue other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Value.Length != 0)
|
||||
{
|
||||
this.Value = other.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600038A RID: 906 RVA: 0x0000D2BC File Offset: 0x0000B4BC
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 10U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Value = input.ReadBytes();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000111 RID: 273
|
||||
private static readonly MessageParser<BytesValue> _parser = new MessageParser<BytesValue>(() => new BytesValue());
|
||||
|
||||
// Token: 0x04000112 RID: 274
|
||||
public const int ValueFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000113 RID: 275
|
||||
private ByteString value_ = ByteString.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user