|
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: WeatherReport.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 SocialWeather.Protobuf {
/// <summary>Holder for reflection information generated from WeatherReport.proto</summary>
public static partial class WeatherReportReflection {
#region Descriptor
/// <summary>File descriptor for WeatherReport.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static WeatherReportReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChxQcm90b2J1Zi9XZWF0aGVyUmVwb3J0LnByb3RvIuIBCg1XZWF0aGVyUmVw",
"b3J0EhMKC1RlbXBlcmF0dXJlGAEgASgFEhIKClJlcG9ydFRpbWUYAiABKAMS",
"KwoHV2VhdGhlchgDIAEoDjIaLldlYXRoZXJSZXBvcnQuV2VhdGhlcktpbmQS",
"DwoHWmlwQ29kZRgEIAEoCSJqCgtXZWF0aGVyS2luZBIJCgVTdW5ueRAAEg8K",
"C01vc3RseVN1bm55EAESDwoLUGFydGx5U3VubnkQAhIQCgxQYXJ0bHlDbG91",
"ZHkQAxIQCgxNb3N0bHlDbG91ZHkQBBIKCgZDbG91ZHkQBUIZqgIWU29jaWFs",
"V2VhdGhlci5Qcm90b2J1ZmIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::SocialWeather.Protobuf.WeatherReport), global::SocialWeather.Protobuf.WeatherReport.Parser, new[]{ "Temperature", "ReportTime", "Weather", "ZipCode" }, null, new[]{ typeof(global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind) }, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class WeatherReport : pb::IMessage<WeatherReport>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<WeatherReport> _parser = new pb::MessageParser<WeatherReport>(() => new WeatherReport());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<WeatherReport> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::SocialWeather.Protobuf.WeatherReportReflection.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 WeatherReport() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WeatherReport(WeatherReport other) : this() {
temperature_ = other.temperature_;
reportTime_ = other.reportTime_;
weather_ = other.weather_;
zipCode_ = other.zipCode_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WeatherReport Clone() {
return new WeatherReport(this);
}
/// <summary>Field number for the "Temperature" field.</summary>
public const int TemperatureFieldNumber = 1;
private int temperature_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Temperature {
get { return temperature_; }
set {
temperature_ = value;
}
}
/// <summary>Field number for the "ReportTime" field.</summary>
public const int ReportTimeFieldNumber = 2;
private long reportTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long ReportTime {
get { return reportTime_; }
set {
reportTime_ = value;
}
}
/// <summary>Field number for the "Weather" field.</summary>
public const int WeatherFieldNumber = 3;
private global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind weather_ = global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind.Sunny;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind Weather {
get { return weather_; }
set {
weather_ = value;
}
}
/// <summary>Field number for the "ZipCode" field.</summary>
public const int ZipCodeFieldNumber = 4;
private string zipCode_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ZipCode {
get { return zipCode_; }
set {
zipCode_ = 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 WeatherReport);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(WeatherReport other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Temperature != other.Temperature) return false;
if (ReportTime != other.ReportTime) return false;
if (Weather != other.Weather) return false;
if (ZipCode != other.ZipCode) 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 (Temperature != 0) hash ^= Temperature.GetHashCode();
if (ReportTime != 0L) hash ^= ReportTime.GetHashCode();
if (Weather != global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind.Sunny) hash ^= Weather.GetHashCode();
if (ZipCode.Length != 0) hash ^= ZipCode.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 (Temperature != 0) {
output.WriteRawTag(8);
output.WriteInt32(Temperature);
}
if (ReportTime != 0L) {
output.WriteRawTag(16);
output.WriteInt64(ReportTime);
}
if (Weather != global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind.Sunny) {
output.WriteRawTag(24);
output.WriteEnum((int) Weather);
}
if (ZipCode.Length != 0) {
output.WriteRawTag(34);
output.WriteString(ZipCode);
}
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 (Temperature != 0) {
output.WriteRawTag(8);
output.WriteInt32(Temperature);
}
if (ReportTime != 0L) {
output.WriteRawTag(16);
output.WriteInt64(ReportTime);
}
if (Weather != global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind.Sunny) {
output.WriteRawTag(24);
output.WriteEnum((int) Weather);
}
if (ZipCode.Length != 0) {
output.WriteRawTag(34);
output.WriteString(ZipCode);
}
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 (Temperature != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Temperature);
}
if (ReportTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(ReportTime);
}
if (Weather != global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind.Sunny) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Weather);
}
if (ZipCode.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ZipCode);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(WeatherReport other) {
if (other == null) {
return;
}
if (other.Temperature != 0) {
Temperature = other.Temperature;
}
if (other.ReportTime != 0L) {
ReportTime = other.ReportTime;
}
if (other.Weather != global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind.Sunny) {
Weather = other.Weather;
}
if (other.ZipCode.Length != 0) {
ZipCode = other.ZipCode;
}
_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) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Temperature = input.ReadInt32();
break;
}
case 16: {
ReportTime = input.ReadInt64();
break;
}
case 24: {
Weather = (global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind) input.ReadEnum();
break;
}
case 34: {
ZipCode = input.ReadString();
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) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Temperature = input.ReadInt32();
break;
}
case 16: {
ReportTime = input.ReadInt64();
break;
}
case 24: {
Weather = (global::SocialWeather.Protobuf.WeatherReport.Types.WeatherKind) input.ReadEnum();
break;
}
case 34: {
ZipCode = input.ReadString();
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the WeatherReport message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public enum WeatherKind {
[pbr::OriginalName("Sunny")] Sunny = 0,
[pbr::OriginalName("MostlySunny")] MostlySunny = 1,
[pbr::OriginalName("PartlySunny")] PartlySunny = 2,
[pbr::OriginalName("PartlyCloudy")] PartlyCloudy = 3,
[pbr::OriginalName("MostlyCloudy")] MostlyCloudy = 4,
[pbr::OriginalName("Cloudy")] Cloudy = 5,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code
|