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: { TraceId = input.ReadString(); break; } case 18: { SpanId = input.ReadString(); break; } case 26: { ParentSpanId = input.ReadString(); break; } case 34: { SpanName = input.ReadString(); break; } case 42: { if (startTime_ == null) { startTime_ = new global::Istio.Policy.V1Beta1.TimeStamp(); } input.ReadMessage(startTime_); break; } case 50: { if (endTime_ == null) { endTime_ = new global::Istio.Policy.V1Beta1.TimeStamp(); } input.ReadMessage(endTime_); break; } case 58: { spanTags_.AddEntriesFrom(input, _map_spanTags_codec); break; } case 64: { HttpStatusCode = input.ReadInt64(); break; } case 72: { ClientSpan = input.ReadBool(); break; } case 80: { RewriteClientSpanId = input.ReadBool(); break; } case 90: { SourceName = input.ReadString(); break; } case 98: { if (sourceIp_ == null) { sourceIp_ = new global::Istio.Policy.V1Beta1.IPAddress(); } input.ReadMessage(sourceIp_); break; } case 106: { DestinationName = input.ReadString(); break; } case 114: { if (destinationIp_ == null) { destinationIp_ = new global::Istio.Policy.V1Beta1.IPAddress(); } input.ReadMessage(destinationIp_); break; } case 120: { RequestSize = input.ReadInt64(); break; } case 128: { RequestTotalSize = input.ReadInt64(); break; } case 136: { ResponseSize = input.ReadInt64(); break; } case 144: { ResponseTotalSize = input.ReadInt64(); break; } case 154: { ApiProtocol = input.ReadString(); break; } } } }
public void MergeFrom(Template other) { if (other == null) { return; } if (other.TraceId.Length != 0) { TraceId = other.TraceId; } if (other.SpanId.Length != 0) { SpanId = other.SpanId; } if (other.ParentSpanId.Length != 0) { ParentSpanId = other.ParentSpanId; } if (other.SpanName.Length != 0) { SpanName = other.SpanName; } if (other.startTime_ != null) { if (startTime_ == null) { startTime_ = new global::Istio.Policy.V1Beta1.TimeStamp(); } StartTime.MergeFrom(other.StartTime); } if (other.endTime_ != null) { if (endTime_ == null) { endTime_ = new global::Istio.Policy.V1Beta1.TimeStamp(); } EndTime.MergeFrom(other.EndTime); } spanTags_.Add(other.spanTags_); if (other.HttpStatusCode != 0L) { HttpStatusCode = other.HttpStatusCode; } if (other.ClientSpan != false) { ClientSpan = other.ClientSpan; } if (other.RewriteClientSpanId != false) { RewriteClientSpanId = other.RewriteClientSpanId; } if (other.SourceName.Length != 0) { SourceName = other.SourceName; } if (other.sourceIp_ != null) { if (sourceIp_ == null) { sourceIp_ = new global::Istio.Policy.V1Beta1.IPAddress(); } SourceIp.MergeFrom(other.SourceIp); } if (other.DestinationName.Length != 0) { DestinationName = other.DestinationName; } if (other.destinationIp_ != null) { if (destinationIp_ == null) { destinationIp_ = new global::Istio.Policy.V1Beta1.IPAddress(); } DestinationIp.MergeFrom(other.DestinationIp); } if (other.RequestSize != 0L) { RequestSize = other.RequestSize; } if (other.RequestTotalSize != 0L) { RequestTotalSize = other.RequestTotalSize; } if (other.ResponseSize != 0L) { ResponseSize = other.ResponseSize; } if (other.ResponseTotalSize != 0L) { ResponseTotalSize = other.ResponseTotalSize; } if (other.ApiProtocol.Length != 0) { ApiProtocol = other.ApiProtocol; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }