// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MainCardStoredData.proto
#pragma warning disable 1591, 0612, 3021
#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 Tango.PMR.EmbeddedParameters {
/// Holder for reflection information generated from MainCardStoredData.proto
public static partial class MainCardStoredDataReflection {
#region Descriptor
/// File descriptor for MainCardStoredData.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static MainCardStoredDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChhNYWluQ2FyZFN0b3JlZERhdGEucHJvdG8SHFRhbmdvLlBNUi5FbWJlZGRl",
"ZFBhcmFtZXRlcnMaGE1haW5DYXJkU3RvcmVkSXRlbS5wcm90byJvChJNYWlu",
"Q2FyZFN0b3JlZERhdGESEwoLTWFpbkNhcmRTX04YASABKAkSRAoKU3RvcmVk",
"SXRlbRgCIAMoCzIwLlRhbmdvLlBNUi5FbWJlZGRlZFBhcmFtZXRlcnMuTWFp",
"bkNhcmRTdG9yZWRJdGVtQigKJmNvbS50d2luZS50YW5nby5wbXIuZW1iZWRk",
"ZWRwYXJhbWV0ZXJzYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.EmbeddedParameters.MainCardStoredItemReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.EmbeddedParameters.MainCardStoredData), global::Tango.PMR.EmbeddedParameters.MainCardStoredData.Parser, new[]{ "MainCardSN", "StoredItem" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class MainCardStoredData : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MainCardStoredData());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tango.PMR.EmbeddedParameters.MainCardStoredDataReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MainCardStoredData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MainCardStoredData(MainCardStoredData other) : this() {
mainCardSN_ = other.mainCardSN_;
storedItem_ = other.storedItem_.Clone();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MainCardStoredData Clone() {
return new MainCardStoredData(this);
}
/// Field number for the "MainCardS_N" field.
public const int MainCardSNFieldNumber = 1;
private string mainCardSN_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string MainCardSN {
get { return mainCardSN_; }
set {
mainCardSN_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "StoredItem" field.
public const int StoredItemFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_storedItem_codec
= pb::FieldCodec.ForMessage(18, global::Tango.PMR.EmbeddedParameters.MainCardStoredItem.Parser);
private readonly pbc::RepeatedField storedItem_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField StoredItem {
get { return storedItem_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MainCardStoredData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MainCardStoredData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (MainCardSN != other.MainCardSN) return false;
if(!storedItem_.Equals(other.storedItem_)) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (MainCardSN.Length != 0) hash ^= MainCardSN.GetHashCode();
hash ^= storedItem_.GetHashCode();
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (MainCardSN.Length != 0) {
output.WriteRawTag(10);
output.WriteString(MainCardSN);
}
storedItem_.WriteTo(output, _repeated_storedItem_codec);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (MainCardSN.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(MainCardSN);
}
size += storedItem_.CalculateSize(_repeated_storedItem_codec);
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MainCardStoredData other) {
if (other == null) {
return;
}
if (other.MainCardSN.Length != 0) {
MainCardSN = other.MainCardSN;
}
storedItem_.Add(other.storedItem_);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 10: {
MainCardSN = input.ReadString();
break;
}
case 18: {
storedItem_.AddEntriesFrom(input, _repeated_storedItem_codec);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code