示例#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 10: {
                    if (!HasAccountId)
                    {
                        AccountId = new global::Bgs.Protocol.Account.V1.AccountId();
                    }
                    input.ReadMessage(AccountId);
                    break;
                }

                case 16: {
                    UniqueId = input.ReadUInt64();
                    break;
                }
                }
            }
        }
示例#2
0
 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);
 }
示例#3
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 10: {
                    if (!HasSubscriberId)
                    {
                        SubscriberId = new global::Bgs.Protocol.Account.V1.AccountId();
                    }
                    input.ReadMessage(SubscriberId);
                    break;
                }

                case 18: {
                    state_.AddEntriesFrom(input, _repeated_state_codec);
                    break;
                }
                }
            }
        }
示例#4
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 10: {
                    if (!HasAgentId)
                    {
                        AgentId = new global::Bgs.Protocol.Account.V1.AccountId();
                    }
                    input.ReadMessage(AgentId);
                    break;
                }

                case 18: {
                    UserDescription = input.ReadString();
                    break;
                }

                case 24: {
                    Program = input.ReadUInt32();
                    break;
                }

                case 82: {
                    global::Bgs.Protocol.Report.V2.UserOptions subBuilder = new global::Bgs.Protocol.Report.V2.UserOptions();
                    if (HasUserOptions)
                    {
                        subBuilder.MergeFrom(UserOptions);
                    }
                    input.ReadMessage(subBuilder);
                    UserOptions = subBuilder;
                    break;
                }

                case 90: {
                    global::Bgs.Protocol.Report.V2.ClubOptions subBuilder = new global::Bgs.Protocol.Report.V2.ClubOptions();
                    if (HasClubOptions)
                    {
                        subBuilder.MergeFrom(ClubOptions);
                    }
                    input.ReadMessage(subBuilder);
                    ClubOptions = subBuilder;
                    break;
                }
                }
            }
        }
示例#5
0
 public void MergeFrom(StateChangedNotification other) {
   if (other == null) {
     return;
   }
   if (other.HasSubscriberId) {
     if (!HasSubscriberId) {
       SubscriberId = new global::Bgs.Protocol.Account.V1.AccountId();
     }
     SubscriberId.MergeFrom(other.SubscriberId);
   }
   state_.Add(other.state_);
   _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#6
0
        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);
        }
示例#7
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 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;
                }
                }
            }
        }
示例#8
0
 public void MergeFrom(MemberId other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HasAccountId)
     {
         if (!HasAccountId)
         {
             AccountId = new global::Bgs.Protocol.Account.V1.AccountId();
         }
         AccountId.MergeFrom(other.AccountId);
     }
     if (other.HasUniqueId)
     {
         UniqueId = other.UniqueId;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#9
0
 public void ClearAgentId()
 {
     agentId_ = null;
 }
示例#10
0
 public void ClearTargetId()
 {
     targetId_ = null;
 }
示例#11
0
 public void ClearAccountId()
 {
     accountId_ = null;
 }
示例#12
0
 public void ClearSubscriberId() {
   subscriberId_ = null;
 }