Ejemplo n.º 1
0
        public void MergeFrom(PlatformMetricData other)
        {
            if (other == null)
            {
                return;
            }
            if (other.commonTelemetry_ != null)
            {
                if (commonTelemetry_ == null)
                {
                    CommonTelemetry = new global::WUProtos.Data.Telemetry.TelemetryCommon();
                }
                CommonTelemetry.MergeFrom(other.CommonTelemetry);
            }
            if (other.MetricKind != 0)
            {
                MetricKind = other.MetricKind;
            }
            switch (other.DatapointValueCase)
            {
            case DatapointValueOneofCase.LongValue:
                LongValue = other.LongValue;
                break;

            case DatapointValueOneofCase.DoubleValue:
                DoubleValue = other.DoubleValue;
                break;

            case DatapointValueOneofCase.BooleanValue:
                BooleanValue = other.BooleanValue;
                break;

            case DatapointValueOneofCase.Distribution:
                if (Distribution == null)
                {
                    Distribution = new global::WUProtos.Data.Distribution();
                }
                Distribution.MergeFrom(other.Distribution);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
 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);
 }