示例#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::WUProtos.Data.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: {
                    global::WUProtos.Data.Distribution subBuilder = new global::WUProtos.Data.Distribution();
                    if (datapointValueCase_ == DatapointValueOneofCase.Distribution)
                    {
                        subBuilder.MergeFrom(Distribution);
                    }
                    input.ReadMessage(subBuilder);
                    Distribution = subBuilder;
                    break;
                }

                case 48: {
                    MetricKind = (global::WUProtos.Data.Telemetry.PlatformMetricData.Types.Kind)input.ReadEnum();
                    break;
                }
                }
            }
        }
示例#2
0
 public void MergeFrom(PlatformEventData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.commonTelemetry_ != null)
     {
         if (commonTelemetry_ == null)
         {
             CommonTelemetry = new global::WUProtos.Data.Telemetry.TelemetryCommon();
         }
         CommonTelemetry.MergeFrom(other.CommonTelemetry);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#3
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);
        }
示例#4
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::WUProtos.Data.Telemetry.TelemetryCommon();
                    }
                    input.ReadMessage(CommonTelemetry);
                    break;
                }
                }
            }
        }