public void MergeFrom(RecordedPhoneCall other) { if (other == null) { return; } if (other.id_ != null) { if (id_ == null) { id_ = new global::HOLMS.Types.Operations.PBXEvents.PbxEventIndicator(); } Id.MergeFrom(other.Id); } if (other.length_ != null) { if (length_ == null) { length_ = new global::Google.Protobuf.WellKnownTypes.Duration(); } Length.MergeFrom(other.Length); } if (other.OriginatingTrunk.Length != 0) { OriginatingTrunk = other.OriginatingTrunk; } if (other.NumberDialed.Length != 0) { NumberDialed = other.NumberDialed; } if (other.charged_ != null) { if (charged_ == null) { charged_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Charged.MergeFrom(other.Charged); } if (other.property_ != null) { if (property_ == null) { property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator(); } Property.MergeFrom(other.Property); } if (other.recordedAt_ != null) { if (recordedAt_ == null) { recordedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } RecordedAt.MergeFrom(other.RecordedAt); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (id_ == null) { id_ = new global::HOLMS.Types.Operations.PBXEvents.PbxEventIndicator(); } input.ReadMessage(id_); break; } case 18: { if (length_ == null) { length_ = new global::Google.Protobuf.WellKnownTypes.Duration(); } input.ReadMessage(length_); break; } case 26: { OriginatingTrunk = input.ReadString(); break; } case 34: { NumberDialed = input.ReadString(); break; } case 42: { if (charged_ == null) { charged_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(charged_); break; } case 50: { if (property_ == null) { property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator(); } input.ReadMessage(property_); break; } case 58: { if (recordedAt_ == null) { recordedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(recordedAt_); break; } } } }