// ------------------------------------------------------------------------------
// <auto-generated>
//    Generated by avrogen, version 1.11.1
//    Changes to this file may cause incorrect behavior and will be lost if code
//    is regenerated
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Azure.Iot.Operations.Protocol.UnitTests.Serialization
{
	using System;
	using System.Collections.Generic;
	using System.Text;
	using global::Avro;
	using global::Avro.Specific;
	
	[global::System.CodeDom.Compiler.GeneratedCodeAttribute("avrogen", "1.11.1")]
	public partial class AvroCountTelemetry : global::Avro.Specific.ISpecificRecord
	{
		public static global::Avro.Schema _SCHEMA = global::Avro.Schema.Parse("{\"type\":\"record\",\"name\":\"AvroCountTelemetry\",\"namespace\":\"Azure.Iot.Operations.Protocol.UnitTests.Serialization\",\"fields\":[{\"name\":\"count\",\"type\":[\"null\",\"int\"]}]}");
		private System.Nullable<System.Int32> _count;
		public virtual global::Avro.Schema Schema
		{
			get
			{
				return AvroCountTelemetry._SCHEMA;
			}
		}
		public System.Nullable<System.Int32> count
		{
			get
			{
				return this._count;
			}
			set
			{
				this._count = value;
			}
		}
		public virtual object Get(int fieldPos)
		{
			switch (fieldPos)
			{
			case 0: return this.count;
			default: throw new global::Avro.AvroRuntimeException("Bad index " + fieldPos + " in Get()");
			};
		}
		public virtual void Put(int fieldPos, object fieldValue)
		{
			switch (fieldPos)
			{
			case 0: this.count = (System.Nullable<System.Int32>)fieldValue; break;
			default: throw new global::Avro.AvroRuntimeException("Bad index " + fieldPos + " in Put()");
			};
		}
	}
}
