コード例 #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (commonTelemetry_ == null)
                    {
                        commonTelemetry_ = new global::POGOProtos.Networking.Platform.Telemetry.TelemetryCommon();
                    }
                    input.ReadMessage(commonTelemetry_);
                    break;
                }

                case 16: {
                    LongValue = input.ReadInt64();
                    break;
                }

                case 25: {
                    DoubleValue = input.ReadDouble();
                    break;
                }

                case 32: {
                    BooleanValue = input.ReadBool();
                    break;
                }

                case 42: {
                    if (distribution_ == null)
                    {
                        distribution_ = new global::POGOProtos.Networking.Platform.Telemetry.Distribution();
                    }
                    input.ReadMessage(distribution_);
                    break;
                }

                case 48: {
                    metricKind_ = (global::POGOProtos.Networking.Platform.Telemetry.PlatformMetricData.Types.Kind)input.ReadEnum();
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(PlatformMetricData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.commonTelemetry_ != null)
     {
         if (commonTelemetry_ == null)
         {
             commonTelemetry_ = new global::POGOProtos.Networking.Platform.Telemetry.TelemetryCommon();
         }
         CommonTelemetry.MergeFrom(other.CommonTelemetry);
     }
     if (other.LongValue != 0L)
     {
         LongValue = other.LongValue;
     }
     if (other.DoubleValue != 0D)
     {
         DoubleValue = other.DoubleValue;
     }
     if (other.BooleanValue != false)
     {
         BooleanValue = other.BooleanValue;
     }
     if (other.distribution_ != null)
     {
         if (distribution_ == null)
         {
             distribution_ = new global::POGOProtos.Networking.Platform.Telemetry.Distribution();
         }
         Distribution.MergeFrom(other.Distribution);
     }
     if (other.MetricKind != 0)
     {
         MetricKind = other.MetricKind;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }