Protobuf...
This commit is contained in:
391
VariantData.cs
Normal file
391
VariantData.cs
Normal file
@@ -0,0 +1,391 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: circuits/static/ev/variant_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.EV.Protobuf {
|
||||
|
||||
/// <summary>Holder for reflection information generated from circuits/static/ev/variant_data.proto</summary>
|
||||
public static partial class VariantDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for circuits/static/ev/variant_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static VariantDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CiVjaXJjdWl0cy9zdGF0aWMvZXYvdmFyaWFudF9kYXRhLnByb3RvEghjaXJj",
|
||||
"dWl0cyJUCgtWYXJpYW50RGF0YRIMCgRib29sGAEgASgIEgsKA2kzMhgCIAEo",
|
||||
"BRILCgNmMzIYAyABKAISDgoGc3RyaW5nGAQgASgJEg0KBWJ5dGVzGAUgASgM",
|
||||
"Qh6qAhtDaXJjdWl0cy5TdGF0aWMuRVYuUHJvdG9idWZiBnByb3RvMw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Circuits.Static.EV.Protobuf.VariantData), global::Circuits.Static.EV.Protobuf.VariantData.Parser, new[]{ "Bool", "I32", "F32", "String", "Bytes" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class VariantData : pb::IMessage<VariantData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<VariantData> _parser = new pb::MessageParser<VariantData>(() => new VariantData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<VariantData> 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.EV.Protobuf.VariantDataReflection.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 VariantData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public VariantData(VariantData other) : this() {
|
||||
bool_ = other.bool_;
|
||||
i32_ = other.i32_;
|
||||
f32_ = other.f32_;
|
||||
string_ = other.string_;
|
||||
bytes_ = other.bytes_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public VariantData Clone() {
|
||||
return new VariantData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "bool" field.</summary>
|
||||
public const int BoolFieldNumber = 1;
|
||||
private bool bool_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Bool {
|
||||
get { return bool_; }
|
||||
set {
|
||||
bool_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "i32" field.</summary>
|
||||
public const int I32FieldNumber = 2;
|
||||
private int i32_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int I32 {
|
||||
get { return i32_; }
|
||||
set {
|
||||
i32_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "f32" field.</summary>
|
||||
public const int F32FieldNumber = 3;
|
||||
private float f32_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float F32 {
|
||||
get { return f32_; }
|
||||
set {
|
||||
f32_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "string" field.</summary>
|
||||
public const int StringFieldNumber = 4;
|
||||
private string string_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string String {
|
||||
get { return string_; }
|
||||
set {
|
||||
string_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "bytes" field.</summary>
|
||||
public const int BytesFieldNumber = 5;
|
||||
private pb::ByteString bytes_ = pb::ByteString.Empty;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pb::ByteString Bytes {
|
||||
get { return bytes_; }
|
||||
set {
|
||||
bytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as VariantData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(VariantData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Bool != other.Bool) return false;
|
||||
if (I32 != other.I32) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(F32, other.F32)) return false;
|
||||
if (String != other.String) return false;
|
||||
if (Bytes != other.Bytes) 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 (Bool != false) hash ^= Bool.GetHashCode();
|
||||
if (I32 != 0) hash ^= I32.GetHashCode();
|
||||
if (F32 != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(F32);
|
||||
if (String.Length != 0) hash ^= String.GetHashCode();
|
||||
if (Bytes.Length != 0) hash ^= Bytes.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 (Bool != false) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(Bool);
|
||||
}
|
||||
if (I32 != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(I32);
|
||||
}
|
||||
if (F32 != 0F) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(F32);
|
||||
}
|
||||
if (String.Length != 0) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(String);
|
||||
}
|
||||
if (Bytes.Length != 0) {
|
||||
output.WriteRawTag(42);
|
||||
output.WriteBytes(Bytes);
|
||||
}
|
||||
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 (Bool != false) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(Bool);
|
||||
}
|
||||
if (I32 != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(I32);
|
||||
}
|
||||
if (F32 != 0F) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(F32);
|
||||
}
|
||||
if (String.Length != 0) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(String);
|
||||
}
|
||||
if (Bytes.Length != 0) {
|
||||
output.WriteRawTag(42);
|
||||
output.WriteBytes(Bytes);
|
||||
}
|
||||
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 (Bool != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (I32 != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(I32);
|
||||
}
|
||||
if (F32 != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (String.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(String);
|
||||
}
|
||||
if (Bytes.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Bytes);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(VariantData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Bool != false) {
|
||||
Bool = other.Bool;
|
||||
}
|
||||
if (other.I32 != 0) {
|
||||
I32 = other.I32;
|
||||
}
|
||||
if (other.F32 != 0F) {
|
||||
F32 = other.F32;
|
||||
}
|
||||
if (other.String.Length != 0) {
|
||||
String = other.String;
|
||||
}
|
||||
if (other.Bytes.Length != 0) {
|
||||
Bytes = other.Bytes;
|
||||
}
|
||||
_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 8: {
|
||||
Bool = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
I32 = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
F32 = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
String = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
Bytes = input.ReadBytes();
|
||||
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 8: {
|
||||
Bool = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
I32 = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
F32 = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
String = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
Bytes = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user