public void MergeFrom(UserOptions other) { if (other == null) { return; } if (other.HasTargetId) { if (!HasTargetId) { TargetId = new global::Bgs.Protocol.Account.V1.AccountId(); } TargetId.MergeFrom(other.TargetId); } if (other.HasType) { Type = other.Type; } if (other.HasSource) { Source = other.Source; } if (other.HasItem) { if (!HasItem) { Item = new global::Bgs.Protocol.Report.V2.ReportItem(); } Item.MergeFrom(other.Item); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(ClubOptions other) { if (other == null) { return; } if (other.HasClubId) { ClubId = other.ClubId; } if (other.HasStreamId) { StreamId = other.StreamId; } if (other.HasType) { Type = other.Type; } if (other.HasSource) { Source = other.Source; } if (other.HasItem) { if (!HasItem) { Item = new global::Bgs.Protocol.Report.V2.ReportItem(); } Item.MergeFrom(other.Item); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { ClubId = input.ReadUInt64(); break; } case 16: { StreamId = input.ReadUInt64(); break; } case 24: { Type = (global::Bgs.Protocol.Report.V2.IssueType)input.ReadEnum(); break; } case 32: { Source = (global::Bgs.Protocol.Report.V2.ClubSource)input.ReadEnum(); break; } case 42: { if (!HasItem) { Item = new global::Bgs.Protocol.Report.V2.ReportItem(); } input.ReadMessage(Item); break; } } } }
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 (!HasTargetId) { TargetId = new global::Bgs.Protocol.Account.V1.AccountId(); } input.ReadMessage(TargetId); break; } case 16: { Type = (global::Bgs.Protocol.Report.V2.IssueType)input.ReadEnum(); break; } case 24: { Source = (global::Bgs.Protocol.Report.V2.UserSource)input.ReadEnum(); break; } case 34: { if (!HasItem) { Item = new global::Bgs.Protocol.Report.V2.ReportItem(); } input.ReadMessage(Item); break; } } } }
public void ClearItem() { item_ = null; }