Protobuf...
This commit is contained in:
310
NodesData.cs
Normal file
310
NodesData.cs
Normal file
@@ -0,0 +1,310 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: circuits/static/core/graph_system/nodes_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 Circuits.Static.Core.GraphSystem.Protobuf {
|
||||
|
||||
/// <summary>Holder for reflection information generated from circuits/static/core/graph_system/nodes_data.proto</summary>
|
||||
public static partial class NodesDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for circuits/static/core/graph_system/nodes_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static NodesDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjJjaXJjdWl0cy9zdGF0aWMvY29yZS9ncmFwaF9zeXN0ZW0vbm9kZXNfZGF0",
|
||||
"YS5wcm90bxIIY2lyY3VpdHMaOGNpcmN1aXRzL3N0YXRpYy9jb3JlL2dyYXBo",
|
||||
"X3N5c3RlbS9ub2RlX2lucHV0c19kYXRhLnByb3RvGjljaXJjdWl0cy9zdGF0",
|
||||
"aWMvY29yZS9ncmFwaF9zeXN0ZW0vbm9kZV9vdXRwdXRzX2RhdGEucHJvdG8a",
|
||||
"LmNpcmN1aXRzL3NoYXJlZC91dGlsaXRpZXMvc29hX2lkXzMyX2RhdGEucHJv",
|
||||
"dG8ihQEKCU5vZGVzRGF0YRIiCgNpZHMYASABKAsyFS5jaXJjdWl0cy5TT0FJ",
|
||||
"ZDMyRGF0YRIoCgZpbnB1dHMYAiADKAsyGC5jaXJjdWl0cy5Ob2RlSW5wdXRz",
|
||||
"RGF0YRIqCgdvdXRwdXRzGAMgAygLMhkuY2lyY3VpdHMuTm9kZU91dHB1dHNE",
|
||||
"YXRhQiyqAilDaXJjdWl0cy5TdGF0aWMuQ29yZS5HcmFwaFN5c3RlbS5Qcm90",
|
||||
"b2J1ZmIGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Circuits.Static.Core.GraphSystem.Protobuf.NodeInputsDataReflection.Descriptor, global::Circuits.Static.Core.GraphSystem.Protobuf.NodeOutputsDataReflection.Descriptor, global::Circuits.Shared.Utilities.Protobuf.SoaId32DataReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Circuits.Static.Core.GraphSystem.Protobuf.NodesData), global::Circuits.Static.Core.GraphSystem.Protobuf.NodesData.Parser, new[]{ "Ids", "Inputs", "Outputs" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class NodesData : pb::IMessage<NodesData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<NodesData> _parser = new pb::MessageParser<NodesData>(() => new NodesData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<NodesData> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Circuits.Static.Core.GraphSystem.Protobuf.NodesDataReflection.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 NodesData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public NodesData(NodesData other) : this() {
|
||||
ids_ = other.ids_ != null ? other.ids_.Clone() : null;
|
||||
inputs_ = other.inputs_.Clone();
|
||||
outputs_ = other.outputs_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public NodesData Clone() {
|
||||
return new NodesData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "ids" field.</summary>
|
||||
public const int IdsFieldNumber = 1;
|
||||
private global::Circuits.Shared.Utilities.Protobuf.SOAId32Data ids_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Circuits.Shared.Utilities.Protobuf.SOAId32Data Ids {
|
||||
get { return ids_; }
|
||||
set {
|
||||
ids_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "inputs" field.</summary>
|
||||
public const int InputsFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<global::Circuits.Static.Core.GraphSystem.Protobuf.NodeInputsData> _repeated_inputs_codec
|
||||
= pb::FieldCodec.ForMessage(18, global::Circuits.Static.Core.GraphSystem.Protobuf.NodeInputsData.Parser);
|
||||
private readonly pbc::RepeatedField<global::Circuits.Static.Core.GraphSystem.Protobuf.NodeInputsData> inputs_ = new pbc::RepeatedField<global::Circuits.Static.Core.GraphSystem.Protobuf.NodeInputsData>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Circuits.Static.Core.GraphSystem.Protobuf.NodeInputsData> Inputs {
|
||||
get { return inputs_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "outputs" field.</summary>
|
||||
public const int OutputsFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<global::Circuits.Static.Core.GraphSystem.Protobuf.NodeOutputsData> _repeated_outputs_codec
|
||||
= pb::FieldCodec.ForMessage(26, global::Circuits.Static.Core.GraphSystem.Protobuf.NodeOutputsData.Parser);
|
||||
private readonly pbc::RepeatedField<global::Circuits.Static.Core.GraphSystem.Protobuf.NodeOutputsData> outputs_ = new pbc::RepeatedField<global::Circuits.Static.Core.GraphSystem.Protobuf.NodeOutputsData>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Circuits.Static.Core.GraphSystem.Protobuf.NodeOutputsData> Outputs {
|
||||
get { return outputs_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as NodesData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(NodesData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(Ids, other.Ids)) return false;
|
||||
if(!inputs_.Equals(other.inputs_)) return false;
|
||||
if(!outputs_.Equals(other.outputs_)) 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 (ids_ != null) hash ^= Ids.GetHashCode();
|
||||
hash ^= inputs_.GetHashCode();
|
||||
hash ^= outputs_.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 (ids_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Ids);
|
||||
}
|
||||
inputs_.WriteTo(output, _repeated_inputs_codec);
|
||||
outputs_.WriteTo(output, _repeated_outputs_codec);
|
||||
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 (ids_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Ids);
|
||||
}
|
||||
inputs_.WriteTo(ref output, _repeated_inputs_codec);
|
||||
outputs_.WriteTo(ref output, _repeated_outputs_codec);
|
||||
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 (ids_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ids);
|
||||
}
|
||||
size += inputs_.CalculateSize(_repeated_inputs_codec);
|
||||
size += outputs_.CalculateSize(_repeated_outputs_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(NodesData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.ids_ != null) {
|
||||
if (ids_ == null) {
|
||||
Ids = new global::Circuits.Shared.Utilities.Protobuf.SOAId32Data();
|
||||
}
|
||||
Ids.MergeFrom(other.Ids);
|
||||
}
|
||||
inputs_.Add(other.inputs_);
|
||||
outputs_.Add(other.outputs_);
|
||||
_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: {
|
||||
if (ids_ == null) {
|
||||
Ids = new global::Circuits.Shared.Utilities.Protobuf.SOAId32Data();
|
||||
}
|
||||
input.ReadMessage(Ids);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
inputs_.AddEntriesFrom(input, _repeated_inputs_codec);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
outputs_.AddEntriesFrom(input, _repeated_outputs_codec);
|
||||
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: {
|
||||
if (ids_ == null) {
|
||||
Ids = new global::Circuits.Shared.Utilities.Protobuf.SOAId32Data();
|
||||
}
|
||||
input.ReadMessage(Ids);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
inputs_.AddEntriesFrom(ref input, _repeated_inputs_codec);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
outputs_.AddEntriesFrom(ref input, _repeated_outputs_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user