예제 #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 8: {
                StartTime = input.ReadInt64();
                break;
            }

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

            case 26: {
                SourceServiceName = input.ReadString();
                break;
            }

            case 32: {
                SourceServiceId = input.ReadInt32();
                break;
            }

            case 42: {
                SourceServiceInstance = input.ReadString();
                break;
            }

            case 48: {
                SourceServiceInstanceId = input.ReadInt32();
                break;
            }

            case 58: {
                DestServiceName = input.ReadString();
                break;
            }

            case 64: {
                DestServiceId = input.ReadInt32();
                break;
            }

            case 74: {
                DestServiceInstance = input.ReadString();
                break;
            }

            case 80: {
                DestServiceInstanceId = input.ReadInt32();
                break;
            }

            case 90: {
                Endpoint = input.ReadString();
                break;
            }

            case 96: {
                Latency = input.ReadInt32();
                break;
            }

            case 104: {
                ResponseCode = input.ReadInt32();
                break;
            }

            case 112: {
                Status = input.ReadBool();
                break;
            }

            case 120: {
                protocol_ = (global::Protocol)input.ReadEnum();
                break;
            }

            case 128: {
                detectPoint_ = (global::SkyWalking.NetworkProtocol.DetectPoint)input.ReadEnum();
                break;
            }
            }
        }
    }
예제 #2
0
 public void MergeFrom(ServiceMeshMetric other)
 {
     if (other == null)
     {
         return;
     }
     if (other.StartTime != 0L)
     {
         StartTime = other.StartTime;
     }
     if (other.EndTime != 0L)
     {
         EndTime = other.EndTime;
     }
     if (other.SourceServiceName.Length != 0)
     {
         SourceServiceName = other.SourceServiceName;
     }
     if (other.SourceServiceId != 0)
     {
         SourceServiceId = other.SourceServiceId;
     }
     if (other.SourceServiceInstance.Length != 0)
     {
         SourceServiceInstance = other.SourceServiceInstance;
     }
     if (other.SourceServiceInstanceId != 0)
     {
         SourceServiceInstanceId = other.SourceServiceInstanceId;
     }
     if (other.DestServiceName.Length != 0)
     {
         DestServiceName = other.DestServiceName;
     }
     if (other.DestServiceId != 0)
     {
         DestServiceId = other.DestServiceId;
     }
     if (other.DestServiceInstance.Length != 0)
     {
         DestServiceInstance = other.DestServiceInstance;
     }
     if (other.DestServiceInstanceId != 0)
     {
         DestServiceInstanceId = other.DestServiceInstanceId;
     }
     if (other.Endpoint.Length != 0)
     {
         Endpoint = other.Endpoint;
     }
     if (other.Latency != 0)
     {
         Latency = other.Latency;
     }
     if (other.ResponseCode != 0)
     {
         ResponseCode = other.ResponseCode;
     }
     if (other.Status != false)
     {
         Status = other.Status;
     }
     if (other.Protocol != 0)
     {
         Protocol = other.Protocol;
     }
     if (other.DetectPoint != 0)
     {
         DetectPoint = other.DetectPoint;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }