Exemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    sameProc_ = (global::Apollo.Cyber.Proto.OptionalMode)input.ReadEnum();
                    break;
                }

                case 16: {
                    diffProc_ = (global::Apollo.Cyber.Proto.OptionalMode)input.ReadEnum();
                    break;
                }

                case 24: {
                    diffHost_ = (global::Apollo.Cyber.Proto.OptionalMode)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(CommunicationMode other)
 {
     if (other == null)
     {
         return;
     }
     if (other.SameProc != 0)
     {
         SameProc = other.SameProc;
     }
     if (other.DiffProc != 0)
     {
         DiffProc = other.DiffProc;
     }
     if (other.DiffHost != 0)
     {
         DiffHost = other.DiffHost;
     }
 }