Protobuf...
This commit is contained in:
395
CloudDataLedgerEntryData.cs
Normal file
395
CloudDataLedgerEntryData.cs
Normal file
@@ -0,0 +1,395 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: circuits_v2/cloud_data_ledger_entry_data.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021, 8981
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace CircuitsV2.Protobuf {
|
||||
|
||||
/// <summary>Holder for reflection information generated from circuits_v2/cloud_data_ledger_entry_data.proto</summary>
|
||||
public static partial class CloudDataLedgerEntryDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for circuits_v2/cloud_data_ledger_entry_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static CloudDataLedgerEntryDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Ci5jaXJjdWl0c192Mi9jbG91ZF9kYXRhX2xlZGdlcl9lbnRyeV9kYXRhLnBy",
|
||||
"b3RvEgtjaXJjdWl0c192MhoUY29yZS9ndWlkX2RhdGEucHJvdG8aKGNpcmN1",
|
||||
"aXRzX3YyL2Nsb3VkX2RhdGFfbGVkZ2VyX3R5cGUucHJvdG8iowEKGENsb3Vk",
|
||||
"RGF0YUxlZGdlckVudHJ5RGF0YRIMCgRuYW1lGAEgASgJEhwKBGd1aWQYAiAB",
|
||||
"KAsyDi5jb3JlLkd1aWREYXRhEhAKCHN1YnJvb21zGAMgAygDEhMKC3Byb3Nw",
|
||||
"ZWN0aXZlGAQgASgIEjQKCmxlZGdlclR5cGUYBSABKA4yIC5jaXJjdWl0c192",
|
||||
"Mi5DbG91ZERhdGFMZWRnZXJUeXBlQhaqAhNDaXJjdWl0c1YyLlByb3RvYnVm",
|
||||
"YgZwcm90bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::RecRoom.Protobuf.Core.GuidDataReflection.Descriptor, global::CircuitsV2.Protobuf.CloudDataLedgerTypeReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::CircuitsV2.Protobuf.CloudDataLedgerEntryData), global::CircuitsV2.Protobuf.CloudDataLedgerEntryData.Parser, new[]{ "Name", "Guid", "Subrooms", "Prospective", "LedgerType" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class CloudDataLedgerEntryData : pb::IMessage<CloudDataLedgerEntryData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<CloudDataLedgerEntryData> _parser = new pb::MessageParser<CloudDataLedgerEntryData>(() => new CloudDataLedgerEntryData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<CloudDataLedgerEntryData> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::CircuitsV2.Protobuf.CloudDataLedgerEntryDataReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CloudDataLedgerEntryData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CloudDataLedgerEntryData(CloudDataLedgerEntryData other) : this() {
|
||||
name_ = other.name_;
|
||||
guid_ = other.guid_ != null ? other.guid_.Clone() : null;
|
||||
subrooms_ = other.subrooms_.Clone();
|
||||
prospective_ = other.prospective_;
|
||||
ledgerType_ = other.ledgerType_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CloudDataLedgerEntryData Clone() {
|
||||
return new CloudDataLedgerEntryData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "name" field.</summary>
|
||||
public const int NameFieldNumber = 1;
|
||||
private string name_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string Name {
|
||||
get { return name_; }
|
||||
set {
|
||||
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "guid" field.</summary>
|
||||
public const int GuidFieldNumber = 2;
|
||||
private global::RecRoom.Protobuf.Core.GuidData guid_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::RecRoom.Protobuf.Core.GuidData Guid {
|
||||
get { return guid_; }
|
||||
set {
|
||||
guid_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "subrooms" field.</summary>
|
||||
public const int SubroomsFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<long> _repeated_subrooms_codec
|
||||
= pb::FieldCodec.ForInt64(26);
|
||||
private readonly pbc::RepeatedField<long> subrooms_ = new pbc::RepeatedField<long>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<long> Subrooms {
|
||||
get { return subrooms_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "prospective" field.</summary>
|
||||
public const int ProspectiveFieldNumber = 4;
|
||||
private bool prospective_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Prospective {
|
||||
get { return prospective_; }
|
||||
set {
|
||||
prospective_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "ledgerType" field.</summary>
|
||||
public const int LedgerTypeFieldNumber = 5;
|
||||
private global::CircuitsV2.Protobuf.CloudDataLedgerType ledgerType_ = global::CircuitsV2.Protobuf.CloudDataLedgerType.Bool;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::CircuitsV2.Protobuf.CloudDataLedgerType LedgerType {
|
||||
get { return ledgerType_; }
|
||||
set {
|
||||
ledgerType_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as CloudDataLedgerEntryData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(CloudDataLedgerEntryData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Name != other.Name) return false;
|
||||
if (!object.Equals(Guid, other.Guid)) return false;
|
||||
if(!subrooms_.Equals(other.subrooms_)) return false;
|
||||
if (Prospective != other.Prospective) return false;
|
||||
if (LedgerType != other.LedgerType) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
||||
if (guid_ != null) hash ^= Guid.GetHashCode();
|
||||
hash ^= subrooms_.GetHashCode();
|
||||
if (Prospective != false) hash ^= Prospective.GetHashCode();
|
||||
if (LedgerType != global::CircuitsV2.Protobuf.CloudDataLedgerType.Bool) hash ^= LedgerType.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (Name.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(Name);
|
||||
}
|
||||
if (guid_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Guid);
|
||||
}
|
||||
subrooms_.WriteTo(output, _repeated_subrooms_codec);
|
||||
if (Prospective != false) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(Prospective);
|
||||
}
|
||||
if (LedgerType != global::CircuitsV2.Protobuf.CloudDataLedgerType.Bool) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteEnum((int) LedgerType);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (Name.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(Name);
|
||||
}
|
||||
if (guid_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Guid);
|
||||
}
|
||||
subrooms_.WriteTo(ref output, _repeated_subrooms_codec);
|
||||
if (Prospective != false) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(Prospective);
|
||||
}
|
||||
if (LedgerType != global::CircuitsV2.Protobuf.CloudDataLedgerType.Bool) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteEnum((int) LedgerType);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (Name.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
||||
}
|
||||
if (guid_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Guid);
|
||||
}
|
||||
size += subrooms_.CalculateSize(_repeated_subrooms_codec);
|
||||
if (Prospective != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (LedgerType != global::CircuitsV2.Protobuf.CloudDataLedgerType.Bool) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LedgerType);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(CloudDataLedgerEntryData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Name.Length != 0) {
|
||||
Name = other.Name;
|
||||
}
|
||||
if (other.guid_ != null) {
|
||||
if (guid_ == null) {
|
||||
Guid = new global::RecRoom.Protobuf.Core.GuidData();
|
||||
}
|
||||
Guid.MergeFrom(other.Guid);
|
||||
}
|
||||
subrooms_.Add(other.subrooms_);
|
||||
if (other.Prospective != false) {
|
||||
Prospective = other.Prospective;
|
||||
}
|
||||
if (other.LedgerType != global::CircuitsV2.Protobuf.CloudDataLedgerType.Bool) {
|
||||
LedgerType = other.LedgerType;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
if ((tag & 7) == 4) {
|
||||
// Abort on any end group tag.
|
||||
return;
|
||||
}
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
Name = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (guid_ == null) {
|
||||
Guid = new global::RecRoom.Protobuf.Core.GuidData();
|
||||
}
|
||||
input.ReadMessage(Guid);
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 24: {
|
||||
subrooms_.AddEntriesFrom(input, _repeated_subrooms_codec);
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Prospective = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
LedgerType = (global::CircuitsV2.Protobuf.CloudDataLedgerType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
if ((tag & 7) == 4) {
|
||||
// Abort on any end group tag.
|
||||
return;
|
||||
}
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10: {
|
||||
Name = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (guid_ == null) {
|
||||
Guid = new global::RecRoom.Protobuf.Core.GuidData();
|
||||
}
|
||||
input.ReadMessage(Guid);
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 24: {
|
||||
subrooms_.AddEntriesFrom(ref input, _repeated_subrooms_codec);
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Prospective = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
LedgerType = (global::CircuitsV2.Protobuf.CloudDataLedgerType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user