public void MergeFrom(SubmitReportRequest other) { if (other == null) { return; } if (other.HasAgentId) { if (!HasAgentId) { AgentId = new global::Bgs.Protocol.Account.V1.GameAccountHandle(); } AgentId.MergeFrom(other.AgentId); } if (other.HasReportType) { if (!HasReportType) { ReportType = new global::Bgs.Protocol.Report.V1.ReportType(); } ReportType.MergeFrom(other.ReportType); } if (other.HasProgram) { Program = other.Program; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(SubscribeRequest other) { if (other == null) { return; } if (other.agentId_ != null) { if (agentId_ == null) { agentId_ = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } if (other.ObjectId != 0UL) { ObjectId = other.ObjectId; } program_.Add(other.program_); if (other.FlagPublic != false) { FlagPublic = other.FlagPublic; } }
public void MergeFrom(UnsubscribeRequest other) { if (other == null) { return; } if (other.agentId_ != null) { if (agentId_ == null) { agentId_ = new global::Bgs.Protocol.EntityId(); } AgentId.MergeFrom(other.AgentId); } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } if (other.ObjectId != 0UL) { ObjectId = other.ObjectId; } }
public void MergeFrom(SubmitReportRequest other) { if (other == null) { return; } if (other.HasAgentId) { if (!HasAgentId) { AgentId = new global::Bgs.Protocol.Account.V1.AccountId(); } AgentId.MergeFrom(other.AgentId); } if (other.HasUserDescription) { UserDescription = other.UserDescription; } switch (other.TypeCase) { case TypeOneofCase.UserOptions: if (UserOptions == null) { UserOptions = new global::Bgs.Protocol.Report.V2.UserOptions(); } UserOptions.MergeFrom(other.UserOptions); break; case TypeOneofCase.ClubOptions: if (ClubOptions == null) { ClubOptions = new global::Bgs.Protocol.Report.V2.ClubOptions(); } ClubOptions.MergeFrom(other.ClubOptions); break; case TypeOneofCase.EntityOptions: if (EntityOptions == null) { EntityOptions = new global::Bgs.Protocol.Report.V2.EntityOptions(); } EntityOptions.MergeFrom(other.EntityOptions); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }